secrets

package
v0.9.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretRef

type SecretRef interface {
	Name() string
	Put([]byte) (SecretVersionRef, error)
	Version(string) SecretVersionRef
	Latest() SecretVersionRef
}

SecretRef - A reference to a secret

type SecretValue

type SecretValue interface {
	// Version - Returns a reference to the version of this value
	Version() SecretVersionRef
	// AsBytes - Returns the secret value as bytes
	AsBytes() []byte
	// AsString - Returns the secret value as a string
	AsString() string
}

SecretValue - Interface

type SecretVersionRef

type SecretVersionRef interface {
	// Access - Retrieve the value of the secret
	Access() (SecretValue, error)
	Secret() SecretRef
	Version() string
}

SecretVersionRef - A reference to a secret version

type Secrets

type Secrets interface {
	// Secret - Creates a new secret reference
	Secret(string) SecretRef
}

Secrets - Base client for the Nitric Secrets service

func New

func New() (Secrets, error)

New - Create a new Secrets client

Jump to

Keyboard shortcuts

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