sentry

package
v0.25.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: BSD-2-Clause Imports: 18 Imported by: 0

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 VSecM 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 `VSECM_SIDECAR_SECRETS_PATH` environment variable (`/opt/vsecm/secrets.json` by default).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL