Documentation ¶
Overview ¶
Package secretbackends provides the api client for the secretbackends facade.
Index ¶
- type Client
- func (api *Client) AddSecretBackend(backend CreateSecretBackend) error
- func (api *Client) ListSecretBackends(names []string, reveal bool) ([]SecretBackend, error)
- func (api *Client) RemoveSecretBackend(name string, force bool) error
- func (api *Client) UpdateSecretBackend(arg UpdateSecretBackend, force bool) error
- type CreateSecretBackend
- type SecretBackend
- type UpdateSecretBackend
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 SecretBackends facade.
func NewClient ¶
func NewClient(caller base.APICallCloser) *Client
NewClient creates a secret backends api client.
func (*Client) AddSecretBackend ¶
func (api *Client) AddSecretBackend(backend CreateSecretBackend) error
AddSecretBackend adds the specified secret backend.
func (*Client) ListSecretBackends ¶
func (api *Client) ListSecretBackends(names []string, reveal bool) ([]SecretBackend, error)
ListSecretBackends lists the specified secret backends, or all available if no names are provided.
func (*Client) RemoveSecretBackend ¶
RemoveSecretBackend removes the specified secret backend.
func (*Client) UpdateSecretBackend ¶
func (api *Client) UpdateSecretBackend(arg UpdateSecretBackend, force bool) error
UpdateSecretBackend updates the specified secret backend.
type CreateSecretBackend ¶
type CreateSecretBackend struct { ID string Name string BackendType string TokenRotateInterval *time.Duration Config map[string]interface{} }
CreateSecretBackend holds details for creating a secret backend.
Click to show internal directories.
Click to hide internal directories.