ssm

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client with AWS services

func New

func New(awsConfig aws.Config) (*Client, error)

func (*Client) DeleteObject added in v0.12.0

func (c *Client) DeleteObject(object *types.DeleteObjectInput) error

func (*Client) GetObject

func (c *Client) GetObject(object *types.GetObjectInput) (*types.GetObjectOutput, error)

GetObject returns a secret for given key

func (*Client) GetObjects

func (c *Client) GetObjects(object *types.GetObjectsInput) (*types.GetObjectsOuput, error)

GetObjects returns key value map for given pattern/prefix

func (*Client) PutObject

func (c *Client) PutObject(object *types.PutObjectInput) error

PutObject writes a given secret value on SSM it uses PutParameter API call https://docs.aws.amazon.com/systems-manager/latest/APIReference/API_PutParameter.html

type SSMClientInterface added in v0.13.0

type SSMClientInterface interface {
	GetParameter(context.Context, *ssm.GetParameterInput, ...func(*ssm.Options)) (*ssm.GetParameterOutput, error)
	PutParameter(context.Context, *ssm.PutParameterInput, ...func(*ssm.Options)) (*ssm.PutParameterOutput, error)
	GetParametersByPath(context.Context, *ssm.GetParametersByPathInput, ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
	DeleteParameter(context.Context, *ssm.DeleteParameterInput, ...func(*ssm.Options)) (*ssm.DeleteParameterOutput, error)
}

Jump to

Keyboard shortcuts

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