sm

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: CC0-1.0 Imports: 8 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 StoreKey

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

Types

type Secret

type Secret struct {
	Username   string `json:"-"`
	KeyID      string `json:"-"`
	Secret     string
	SecretName string `json:"-"`
	SecretID   string `json:"-"`
	Type       string
}

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