Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSecretNotFound = errors.New("Secret does not exist")
Functions ¶
func Fetch ¶
func Fetch() (reqres.SecretFetchResponse, error)
Fetch fetches the up-to-date secret that has been registered to the workload.
secret, err := sentry.Fetch()
In case of a problem, Fetch will return an empty string and an error explaining what went wrong.
Fetch can ONLY be called from a registered workload; and it ONLY delivers the secret that the workload is associated with.
func Watch ¶
func Watch()
Watch synchronizes the internal state of the sidecar by talking to Aegis Safe regularly. It periodically calls Fetch behind-the-scenes to get its work done. Once it fetches the secrets, it saves it to the location defined in the `AEGIS_SIDECAR_SECRETS_PATH` environment variable (`/opt/aegis/secrets.json` by default).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.