secrets

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(filePath string, secrets *Secrets) error

Types

type MapSecretReader

type MapSecretReader struct {
	// contains filtered or unexported fields
}

func NewMapReader

func NewMapReader(values MapSecrets) *MapSecretReader

func (*MapSecretReader) Get

func (reader *MapSecretReader) Get(name string) (*Secret, error)

func (*MapSecretReader) GetAuthSecret

func (reader *MapSecretReader) GetAuthSecret() *Secret

type MapSecrets

type MapSecrets map[string]Value

type Secret

type Secret = api.Secret

type SecretReader

type SecretReader interface {
	Get(name string) (*Secret, error)
	GetAuthSecret() *Secret
}

type Secrets

type Secrets struct {
	AuthSecret *Secret
	Secrets    map[string]Secret
}

func Read

func Read(filePath string) (*Secrets, error)

type Value

type Value map[string]interface{}

type VaultSecretReader

type VaultSecretReader struct {
	// contains filtered or unexported fields
}

func NewVaultReader

func NewVaultReader(vaultClient *vault.Client) *VaultSecretReader

func (*VaultSecretReader) Get

func (reader *VaultSecretReader) Get(name string) (*Secret, error)

func (*VaultSecretReader) GetAuthSecret

func (reader *VaultSecretReader) GetAuthSecret() *Secret

Jump to

Keyboard shortcuts

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