Documentation
¶
Overview ¶
Package secrets provides the api client for the secrets facade.
Index ¶
- type Client
- func (c *Client) CreateSecret(name, description string, data map[string]string) (string, error)
- func (c *Client) GrantSecret(uri *secrets.URI, name string, apps []string) ([]error, error)
- func (api *Client) ListSecrets(reveal bool, filter secrets.Filter) ([]SecretDetails, error)
- func (c *Client) RemoveSecret(uri *secrets.URI, name string, revision *int) error
- func (c *Client) RevokeSecret(uri *secrets.URI, name string, apps []string) ([]error, error)
- func (c *Client) UpdateSecret(uri *secrets.URI, name string, autoPrune *bool, newName string, ...) error
- type SecretDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base.ClientFacade // contains filtered or unexported fields }
Client is the api client for the Secrets facade.
func NewClient ¶
func NewClient(caller base.APICallCloser) *Client
NewClient creates a secrets api client.
func (*Client) CreateSecret ¶
func (*Client) GrantSecret ¶
GrantSecret grants access to a secret to the specified applications.
func (*Client) ListSecrets ¶
ListSecrets lists the available secrets.
func (*Client) RemoveSecret ¶
func (*Client) RevokeSecret ¶
RevokeSecret revokes access to a secret from the specified applications.
type SecretDetails ¶
type SecretDetails struct { Metadata secrets.SecretMetadata Access []secrets.AccessInfo Revisions []secrets.SecretRevisionMetadata Value secrets.SecretValue Error string }
SecretDetails holds a secret metadata and value.
Click to show internal directories.
Click to hide internal directories.