secretsmanager

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 NewManagerFactory

func NewManagerFactory() creds.ManagerFactory

func NewSecretsManagerFactory

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

Types

type Manager

type Manager 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 `` /* 186-byte string literal not displayed */
	TeamSecretTemplate     string `` /* 165-byte string literal not displayed */
	SecretManager          *SecretsManager
}

func (*Manager) Health

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

func (*Manager) Init

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

func (*Manager) IsConfigured

func (manager *Manager) IsConfigured() bool

func (*Manager) MarshalJSON

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

func (*Manager) NewVariablesFactory

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

func (*Manager) Validate

func (manager *Manager) Validate() error

type Secret

type Secret struct {
	Team     string
	Pipeline string
	Secret   string
}

type SecretsManager

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

func NewSecretsManager

func NewSecretsManager(log lager.Logger, api secretsmanageriface.SecretsManagerAPI, teamName string, pipelineName string, secretTemplates []*template.Template) *SecretsManager

func (*SecretsManager) Get

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

func (*SecretsManager) List

Jump to

Keyboard shortcuts

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