componentized/directory

componentized:services

interface

interface credential-store componentized:services/credential-store

Credential Stores allow a client to fetch credentials for a specific instance or 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-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(id: service-id) -> result<list<credential>, error>

Fetch credentials from the store for a specific instance or binding.

WIT

/// Credential Stores allow a client to fetch credentials for a specific instance or 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-id, credential, error};

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