ssm

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPipelineSecretTemplate = "/concourse/{{.Team}}/{{.Pipeline}}/{{.Secret}}"
View Source
const DefaultTeamSecretTemplate = "/concourse/{{.Team}}/{{.Secret}}"

Variables

This section is empty.

Functions

func NewSsmFactory

func NewSsmFactory(log lager.Logger, session *session.Session, secretTemplates []*template.Template) *ssmFactory

func NewSsmManagerFactory

func NewSsmManagerFactory() creds.ManagerFactory

Types

type Ssm

type Ssm struct {
	TeamName        string
	PipelineName    string
	SecretTemplates []*template.Template
	// contains filtered or unexported fields
}

func NewSsm

func NewSsm(log lager.Logger, api ssmiface.SSMAPI, teamName string, pipelineName string, secretTemplates []*template.Template) *Ssm

func (*Ssm) Get

func (s *Ssm) Get(varDef varTemplate.VariableDefinition) (interface{}, bool, error)

func (*Ssm) List

func (s *Ssm) List() ([]varTemplate.VariableDefinition, error)

type SsmManager

type SsmManager struct {
	AwsAccessKeyID         string `long:"access-key" description:"AWS Access key ID"`
	AwsSecretAccessKey     string `long:"secret-key" description:"AWS Secret Access Key"`
	AwsSessionToken        string `long:"session-token" description:"AWS Session Token"`
	AwsRegion              string `long:"region" description:"AWS region to send requests to" env:"AWS_REGION"`
	PipelineSecretTemplate string `` /* 171-byte string literal not displayed */
	TeamSecretTemplate     string `` /* 149-byte string literal not displayed */
	Ssm                    *Ssm
}

func (*SsmManager) Health

func (manager *SsmManager) Health() (*creds.HealthResponse, error)

func (*SsmManager) Init

func (manager *SsmManager) Init(log lager.Logger) error

func (*SsmManager) IsConfigured

func (manager *SsmManager) IsConfigured() bool

func (*SsmManager) MarshalJSON

func (manager *SsmManager) MarshalJSON() ([]byte, error)

func (*SsmManager) NewVariablesFactory

func (manager *SsmManager) NewVariablesFactory(log lager.Logger) (creds.VariablesFactory, error)

func (*SsmManager) Validate

func (manager *SsmManager) Validate() error

type SsmSecret

type SsmSecret struct {
	Team     string
	Pipeline string
	Secret   string
}

Jump to

Keyboard shortcuts

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