ExAcme.Account (ExAcme v0.2.0)

View Source

Represents an ACME Account object.

Provides functionalities to fetch account details from the ACME server.

Attributes

  • url - The URL of the account.
  • status - The current status of the account.
  • contact_urls - List of contact URLs.
  • terms_of_service_agreed - Boolean indicating agreement to terms of service.
  • external_account_binding - External account binding information.
  • orders_url - URL to fetch the list of orders.

Summary

Types

t()

ACME Account object

Functions

Fetches an account from the ACME server.

Types

t()

@type t() :: %ExAcme.Account{
  contact_urls: [String.t()],
  external_account_binding: String.t() | nil,
  orders_url: String.t(),
  status: String.t(),
  url: String.t()
}

ACME Account object

Functions

fetch(url, account_key, client)

@spec fetch(String.t(), ExAcme.AccountKey.t(), ExAcme.client()) ::
  {:ok, t()} | {:error, term()}

Fetches an account from the ACME server.

Parameters

  • url - The account URL.
  • account_key - The account key for authentication.
  • client - The ExAcme client agent.

Returns

  • {:ok, account} on success.
  • {:error, reason} on failure.