componentized/directory

componentized:services

interface

interface credential-store componentized:services/credential-store

Credential Stores allow a client to fetch credentials for a specific binding. The platform typically implements this interface keeping the implementation details of credential storage hidden from the service lifecycle and users.

Types

use type service-binding-id

from componentized:services/types

  • string

use record credential

from componentized:services/types

  • key: string
  • value: string

use type error

from componentized:services/types

  • string

Functions

functionfetch: func( binding-id: service-binding-id, ) -> result<list<credential>, error>

Fetch credentials from the store for a specific binding.

WIT

/// Credential Stores allow a client to fetch credentials for a specific binding. The platform
/// typically implements this interface keeping the implementation details of credential storage
/// hidden from the service lifecycle and users.
interface credential-store {
  use types.{service-binding-id, credential, error};

  /// Fetch credentials from the store for a specific binding.
  fetch: func(binding-id: service-binding-id) -> result<list<credential>, error>;
}