ssmParameterStore

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMDDiff

func CMDDiff(paths []string, format string, directory string)

CMDDiff executes ssm-parameter-store diff from the CLI

func CMDPull

func CMDPull(paths []string, format string, directory string)

CMDPull handles the command line's ssm-parameter-store get

func CMDPush

func CMDPush(paths []string, format string, directory string, noInput bool)

CMDPush executes ssm-parameter-store push from the CLI

func Check

func Check(err error)

Check errors if exist and exit

Types

type Diff

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

Diff represents data to be added and removed

func (*Diff) AppendAddChange

func (diff *Diff) AppendAddChange(path, desiredValue, currentValue string, encryptionKey *string) error

AppendAddChange appends a line to delete

func (*Diff) AppendDeleteChange

func (diff *Diff) AppendDeleteChange(path string) error

AppendDeleteChange appends a line to delete

func (Diff) String

func (diff Diff) String() string

type ParameterState

type ParameterState struct {
	EncryptionKey *string           `json:"EncryptionKey,omitempty" yaml:"EncryptionKey,omitempty"`
	EncryptedKeys []string          `json:"EncryptedKeys,omitempty" yaml:"EncryptedKeys,omitempty"`
	Parameters    map[string]string `json:"Parameters,omitempty" yaml:"Parameters,omitempty"`
}

ParameterState struct represents a parameter store's value based on path

type ParameterStates

type ParameterStates map[string]*ParameterState

ParameterStates is the format written to or read from disk

func NewParameterStatesFromDisk

func NewParameterStatesFromDisk(paths []string, format, directory string) ParameterStates

NewParameterStatesFromDisk reads the saved parameter store and returns a ParameterStates

func NewParameterStatesFromSSM

func NewParameterStatesFromSSM(paths []string) (p ParameterStates)

NewParameterStatesFromSSM reads the current parameter store in AWS returns a ParameterStates

Jump to

Keyboard shortcuts

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