Versions in this module Expand all Collapse all v0 v0.1.3 Sep 15, 2021 v0.1.2 Aug 20, 2021 v0.1.1 Aug 20, 2021 v0.1.0 Aug 20, 2021 Changes in this version + const BurnEndpoint + const DefaultBaseURL + const GenerateEndpoint + const MetadataEndpoint + const RecentMetadataEndpoint + const SecretEndpoint + const ShareEndpoint + const StatusEndpoint + type BurnSecretResponse struct + Created int64 + CustID string + MetadataKey string + MetadataTTL int + PassphraseRequired bool + Recipient []string + SecretKey string + SecretTTL int + TTL int + Updated int64 + type Client struct + APIKey string + BaseURL string + HTTPClient HTTPClient + Username string + func NewClient(options ...ClientOption) *Client + func (c *Client) BurnSecret(ctx context.Context, metadataKey string) (*BurnSecretResponse, error) + func (c *Client) GenerateSecret(ctx context.Context, passphrase string, ttlSeconds int, recipient string) (*GenerateSecretResponse, error) + func (c *Client) GetMetadata(ctx context.Context, metadataKey string) (*GetMetadataResponse, error) + func (c *Client) GetRecentMetadata(ctx context.Context) (*[]GetRecentMetadataResponse, error) + func (c *Client) GetStatus(ctx context.Context) (*GetStatusResponse, error) + func (c *Client) RetrieveSecret(ctx context.Context, secretKey string, passphrase string) (*RetrieveSecretResponse, error) + func (c *Client) ShareSecret(ctx context.Context, secret string, passphrase string, ttlSeconds int, ...) (*ShareSecretResponse, error) + type ClientOption func(*Client) + func WithAPIKey(apiKey string) ClientOption + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(client HTTPClient) ClientOption + func WithUsername(username string) ClientOption + type GenerateSecretResponse struct + Created int64 + CustID string + MetadataKey string + MetadataTTL int + PassphraseRequired bool + Recipient []string + SecretKey string + SecretTTL int + TTL int + Updated int64 + Value string + type GetMetadataResponse struct + Created int64 + CustID string + MetadataKey string + MetadataTTL int + PassphraseRequired bool + Recipient []string + SecretKey string + SecretTTL int + TTL int + Updated int64 + type GetRecentMetadataResponse struct + Created int64 + CustID string + MetadataKey string + MetadataTTL int + PassphraseRequired bool + Recipient []string + SecretKey string + SecretTTL int + TTL int + Updated int64 + type GetStatusResponse struct + Status string + type HTTPClient interface + Do func(req *http.Request) (*http.Response, error) + type RetrieveSecretResponse struct + SecretKey string + Value string + type ShareSecretResponse struct + Created int64 + CustID string + MetadataKey string + MetadataTTL int + PassphraseRequired bool + Recipient []string + SecretKey string + SecretTTL int + TTL int + Updated int64