Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the GCP Secret Manager Client wrapper. Implements secretly.Client
func NewClient ¶
NewClient returns a GCP client wrapper with the options applied. Will error if authentication with the secret manager fails.
func (*Client) GetSecret ¶
GetSecret retrieves the latest secret version for name from GCP Secret Manager.
func (*Client) GetSecretWithVersion ¶
GetSecretWithVersion retrieves the specific secret version for name from GCP Secret Manager.
func (*Client) Process ¶
func (c *Client) Process(spec any, opts ...secretly.ProcessOption) error
Process resolves the provided specification using GCP Secret Manager. ProcessOptions can be provided to add additional processing for the fields, like reading version info from the env or a file.
(*Client).Process is a convenience for calling secretly.Process with the Client.