sm

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: CC0-1.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterSecretsByPrefix

func FilterSecretsByPrefix(cfg aws.Config, prefix string) ([]smt.SecretListEntry, error)

func GetSecretValue

func GetSecretValue(cfg aws.Config, secretID string) (string, error)

func Pivot

func Pivot(secretID string) func(context.Context) (aws.Credentials, error)

func SecretExists added in v0.0.5

func SecretExists(cfg aws.Config, secretID string) bool

func StoreSecret added in v0.0.7

func StoreSecret(cfg aws.Config, s *Secret, kmsKeyID string) error

func StoreSecrets added in v0.0.7

func StoreSecrets(sess aws.Config, sec []*Secret, kms string) error

func StoreValue added in v0.0.7

func StoreValue(cfg aws.Config, s *Secret, kmsKeyID string) error

Types

type Secret

type Secret struct {
	ID       string    `json:"ID,omitempty"`
	KeyID    string    `json:"keyID,omitempty"`
	Name     string    `json:"name,omitempty"`
	Type     string    `json:"type,omitempty"`
	Updated  time.Time `json:"updated,omitempty"`
	Username string    `json:"username,omitempty"`
	Value    string    `json:"value,omitempty"`
}

func GetSecret

func GetSecret(cfg aws.Config, secretID string) (Secret, error)

func (*Secret) ToJSON

func (s *Secret) ToJSON() (string, error)

Jump to

Keyboard shortcuts

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