Method

FoundrySecretServicestore_api_key

unstable since: 1.1

Declaration [src]

DexFuture*
foundry_secret_service_store_api_key (
  FoundrySecretService* self,
  const char* host,
  const char* service,
  const char* api_key
)

Description [src]

Stores an API key in secret storage.

Available since: 1.1

Parameters

host

Type: const char*

The hostname of the api server.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
service

Type: const char*

The name of the service such as “gitlab”.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
api_key

Type: const char*

The actual API key.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: DexFuture

A DexFuture that resolves to any value on success or rejects with error.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.