secret

package
v1.0.861 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// KMSConnection is the connection to the key management service
	// that's used to encrypt and decrypt secrets.
	KMSConnection string
)

Functions

func KeeperFromConnection

func KeeperFromConnection(ctx context.Context, connectionString string) (*secrets.Keeper, error)

Types

type Ciphertext added in v1.0.824

type Ciphertext []byte

func Encrypt added in v1.0.824

func Encrypt(ctx context.Context, sensitive Sensitive) (Ciphertext, error)

func ParseCiphertext added in v1.0.824

func ParseCiphertext(s string) (Ciphertext, error)

func (Ciphertext) MarshalJSON added in v1.0.824

func (t Ciphertext) MarshalJSON() ([]byte, error)

func (Ciphertext) MarshalText added in v1.0.824

func (t Ciphertext) MarshalText() ([]byte, error)

func (Ciphertext) String added in v1.0.824

func (t Ciphertext) String() string

type Sensitive added in v1.0.824

type Sensitive []byte

func Decrypt added in v1.0.824

func Decrypt(ctx context.Context, ciphertext Ciphertext) (Sensitive, error)

func (*Sensitive) Clear added in v1.0.824

func (t *Sensitive) Clear()

func (Sensitive) MarshalJSON added in v1.0.824

func (t Sensitive) MarshalJSON() ([]byte, error)

func (Sensitive) MarshalText added in v1.0.824

func (t Sensitive) MarshalText() ([]byte, error)

func (Sensitive) PlainText added in v1.0.824

func (t Sensitive) PlainText() string

func (Sensitive) String added in v1.0.824

func (t Sensitive) String() string

Jump to

Keyboard shortcuts

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