params

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 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 SSMStore

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

SSMStore store for buildkite related params which is backed by SSM

func New

func New(cfg *config.Config, ssmSvc *session.Session) *SSMStore

New create a new params store which is backed by SSM

func (*SSMStore) GetAgentConfig

func (st *SSMStore) GetAgentConfig(agentSSMConfigKey string) (*api.Agent, error)

GetAgentConfig retrieve the buildkite agent config from the params store

func (*SSMStore) GetAgentKey

func (st *SSMStore) GetAgentKey(agentSSMKey string) (string, error)

GetAgentKey retrieve the buildkite agent key from the params store

func (*SSMStore) SaveAgentConfig

func (st *SSMStore) SaveAgentConfig(agentSSMConfigKey string, agentConfig *api.Agent) error

SaveAgentConfig save the agent configuration to SSM so it can be retrieved by other lambda functions

type Store

type Store interface {
	GetAgentKey(string) (string, error)
	GetAgentConfig(string) (*api.Agent, error)
	SaveAgentConfig(string, *api.Agent) error
}

Store store for buildkite agent params

Jump to

Keyboard shortcuts

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