ssm

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: MIT Imports: 8 Imported by: 0

README

SSM Parameter

TODO

Documentation

Overview

Package ssm implements sidecred.SecretStore on top of AWS Parameter store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client SSMAPI, options ...option) sidecred.SecretStore

New creates a new sidecred.SecretStore using AWS Secrets Manager.

func WithKMSKeyID

func WithKMSKeyID(k string) option

WithKMSKeyID sets the default KMS key ID to use when encrypting the secret.

func WithSecretTemplate added in v0.7.0

func WithSecretTemplate(t string) option

WithSecretTemplate sets the path template when instantiating a new store.

Types

type SSMAPI

type SSMAPI interface {
	PutParameter(input *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
	GetParameter(input *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
	DeleteParameter(input *ssm.DeleteParameterInput) (*ssm.DeleteParameterOutput, error)
}

SSMAPI wraps the interface for the API and provides a mocked implementation.

func NewClient

func NewClient(sess *session.Session) SSMAPI

NewClient returns a new SSMAPI client.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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