client

package
v0.0.0-...-dc1866d Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OutputMasterKey          = "kmsKey"
	OutputSecretsDynamoTable = "secretsDynamoTable"
)

Variables

This section is empty.

Functions

func GetCreatedKMSCMKID

func GetCreatedKMSCMKID(stack *cloudformation.Stack) (string, error)

GetCreatedKMSCMKID returns the master key id for the created KMS Key from the cloudformation stack output

func GetCreatedSecretsTableName

func GetCreatedSecretsTableName(stack *cloudformation.Stack) (string, error)

GetSecretsTableName returns the dynamodb table created for storing secrets from the cloudformation stack output

func GetSecretsTableName

func GetSecretsTableName(appName string) string

GetSecretsTableName returns the DynamoDB table used for storing secrets

Types

type Client

Client defines a subset of the cloudformation client methods. The methods defined here are used to interact with Cloudformation service

type Stacker

type Stacker interface {
	CreateStack(appName string, createSecretsPrincipal string, fetchSecretsRole string) (*cloudformation.Stack, error)
	DeleteStack(appName string) error
}

Stacker defines an interface for creating the cloudformation stack required for saving and retrieving secrets

func NewStacker

func NewStacker(client Client) Stacker

NewStacker returns a new 'stacker' object that implements the Stacker interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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