Documentation ¶
Overview ¶
Package github provides a plugin that implements the rotate.Storage interface to store the results of password rotation into the action secret store of a github project.
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 implements the rotate.SaveClient interface for storing keys following rotation.
To use this client, a GITHUB_TOKEN environment variable must be set to a github access token with adequate permissions to update action secrets.
func (*Client) LastSaved ¶
func (c *Client) LastSaved( ctx context.Context, store secret.Storage, key string, ) (time.Time, error)
LastSaved checks for the given key on the given project to see when it was last saved. It will return that value, if it has been stored previously. If it has not been stored previously, it returns the zero value.
Click to show internal directories.
Click to hide internal directories.