awsssm

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package awsssm provides the Source that reads values from AWS SSM Parameters Store.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrClientRequired     = errors.New("ssm client is required")
	ErrPathPrefixRequired = errors.New("path prefix is required")
)

Functions

This section is empty.

Types

type Option

type Option func(*config)

Option is a function configures a Source's behavior.

func WithClient

func WithClient(client SSMClient) Option

WithClient indicates the Source to use given SSM client.

func WithContext

func WithContext(ctx context.Context) Option

WithContext indicates the Source to use given context.

func WithPathPrefix

func WithPathPrefix(pathPrefix string) Option

WithPathPrefix indicates the Source to get parameters with given path prefix.

type SSMClient

type SSMClient interface {
	GetParametersByPath(ctx context.Context, params *ssm.GetParametersByPathInput, optFns ...func(*ssm.Options)) (*ssm.GetParametersByPathOutput, error)
}

type Source

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

func New

func New(opts ...Option) (*Source, error)

func (*Source) FillValue

func (s *Source) FillValue(path unstruct.Path, target reflect.Value) error

Jump to

Keyboard shortcuts

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