sm

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 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 StoreKey

func StoreKey(cfg aws.Config, s *Secret, kms string) error

Types

type Secret

type Secret struct {
	ID       string    `json:"ID,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) StoreKeys

func (s *Secret) StoreKeys(sess aws.Config, sec []*Secret, kms string) 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