secretstore
github.com/fastly/compute-sdk-go/secretstore
Package secretstore provides a read-only interface to Fastly Compute Secret Stores.
Secret stores are persistent, globally distributed stores for secrets. Secrets are decrypted as-needed at the edge.
See the Fastly Secret Store documentation for details.
Functions
| Open | Open returns a handle to the named secret store, if it exists. It will return [ErrSecretStoreNotFound] if it doesn't exist. |
| Plaintext | Plaintext decrypts and returns the secret value as a byte slice for the given secret store and secret name. |
| SecretFromBytes | FromBytes creates an instance of the Secret type for use with APIs that require it from the provided byte slice. |
Variables
Default: errors.New("invalid secret name")
ErrInvalidSecretName indicates that the given secret name is invalid.
Default: errors.New("invalid secret store name")
ErrInvalidSecretStoreName indicates that the given secret store name is invalid.
Default: errors.New("secret not found")
ErrSecretNotFound indicates that the named secret doesn't exist within this store.
Default: errors.New("secret store not found")
ErrSecretStoreNotFound indicates that the named secret store doesn't exist.
Default: errors.New("unexpected error")
ErrUnexpected indicates than an unexpected error occurred.