ssmctl

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DescribeOptionEquals is a describe parameters API option means equals
	DescribeOptionEquals = "Equals"
	// DescribeOptionContains is a describe parameters API option means contains
	DescribeOptionContains = "Contains"
	// DescribeOptionBeginsWith is a describe parameters API option means beginsWith
	DescribeOptionBeginsWith = "BeginsWith"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameter added in v0.2.0

type Parameter struct {
	Name  string
	Value string
	Type  string
}

Parameter is the struct of SSM parameter.

type SSMClient added in v0.3.1

type SSMClient interface {
	API() ssmiface.SSMAPI
}

type SSMManager

type SSMManager interface {
	GetParameter(query string, withDecryption bool) (*Parameter, error)
	DescribeParameters(query string, option string) ([]*Parameter, error)
	PutParameter(key string, value string, isEncryption bool, kmsKeyId string, isForce bool) error
	DeleteParameter(key string) error
}

SSMManager is the wrapper of SSM API.

func New

func New(profile, region string) (SSMManager, error)

New returns a new SSMManager.

func NewMockSSMManager added in v0.3.1

func NewMockSSMManager() SSMManager

Jump to

Keyboard shortcuts

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