internal

package
v0.0.0-...-8528366 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sessions

func Sessions() (*session.Session, string)

Types

type Config

type Config struct {
	Prefix  string `yaml:"prefix"`
	Profile string `yaml:"profile"`
	Region  string `yaml:"region"`
}

func GetConfig

func GetConfig() *Config

func NewConfig

func NewConfig(prefix string, profile string, region string, env string) (*Config, error)

type Param

type Param struct {
	Name           string
	WithDecryption bool
	// contains filtered or unexported fields
}

func (*Param) DeleteValue

func (p *Param) DeleteValue() error

func (*Param) GetValue

func (p *Param) GetValue() (string, error)

func (*Param) PutValue

func (p *Param) PutValue(secret string, overwrite bool) error

type SSM

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

func NewSSMClient

func NewSSMClient() *SSM

func (*SSM) GetAllSecrets

func (s *SSM) GetAllSecrets(env string) ([]SecretValue, error)

func (*SSM) ListSecretNames

func (s *SSM) ListSecretNames(env string) ([]string, error)

func (*SSM) Param

func (s *SSM) Param(name string) *Param

type SecretValue

type SecretValue struct {
	Name  string
	Value string
}

Jump to

Keyboard shortcuts

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