ssm

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEntry added in v0.34.12

type CacheEntry struct {
	Parameter Parameter
	Value     string
}

type DefaultProvider

type DefaultProvider struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewDefaultProvider

func NewDefaultProvider(ssmapi ssmiface.SSMAPI, cache *cache.Cache) *DefaultProvider

func (*DefaultProvider) Get

func (p *DefaultProvider) Get(ctx context.Context, parameter Parameter) (string, error)

type Parameter added in v0.34.12

type Parameter struct {
	Name string
	// IsMutable indicates if the value associated with an SSM parameter is expected to change. An example of a mutable
	// parameter would be any of the "latest" or "recommended" AMI parameters which are updated each time a new AMI is
	// released. On the otherhand, we would consider a parameter parameter for a specific AMI version to be immutable.
	IsMutable bool
}

func (*Parameter) CacheKey added in v0.34.12

func (p *Parameter) CacheKey() string

func (*Parameter) GetParameterInput added in v0.34.12

func (p *Parameter) GetParameterInput() *ssm.GetParameterInput

type Provider

type Provider interface {
	Get(context.Context, Parameter) (string, error)
}

Jump to

Keyboard shortcuts

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