aws

package
v0.0.0-...-56aa1ee Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	AccessKeyID           string
	ATCSecurityGroup      string
	AZ                    string
	BlobstoreBucket       string
	CustomOperations      string
	DBCACert              string
	DBHost                string
	DBName                string
	DBPassword            string
	DBPort                string
	DBUsername            string
	DefaultKeyName        string
	DefaultSecurityGroups []string
	ExternalIP            string
	InternalCIDR          string
	InternalGateway       string
	InternalIP            string
	PrivateCIDR           string
	PrivateCIDRGateway    string
	PrivateCIDRReserved   string
	PrivateKey            string
	PrivateSubnetID       string
	PublicCIDR            string
	PublicCIDRGateway     string
	PublicCIDRReserved    string
	PublicCIDRStatic      string
	PublicSubnetID        string
	Region                string
	S3AWSAccessKeyID      string
	S3AWSSecretAccessKey  string
	SecretAccessKey       string
	Spot                  bool
	VMSecurityGroup       string
	WorkerType            string
}

Environment holds all the parameters AWS IAAS needs

func (Environment) ConfigureConcourseStemcell

func (e Environment) ConfigureConcourseStemcell() (string, error)

ConfigureConcourseStemcell returns the stemcell location string for an AWS specific stemcell for the required concourse version

func (Environment) ConfigureDirectorCloudConfig

func (e Environment) ConfigureDirectorCloudConfig() (string, error)

ConfigureDirectorCloudConfig inserts values from the environment into the config template passed as argument

func (Environment) ConfigureDirectorManifestCPI

func (e Environment) ConfigureDirectorManifestCPI() (string, error)

ConfigureDirectorManifestCPI interpolates all the Environment parameters and required release versions into ready to use Director manifest

func (Environment) IAASCheck

func (e Environment) IAASCheck() iaas.Name

IAASCheck returns the IAAS provider

type Store

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

Store holds the abstraction of a aws storage artifact

func NewStore

func NewStore(s3 s3iface.S3API, bucket string) *Store

NewStore returns a reference to a new Store

func (*Store) Get

func (s *Store) Get(key string) ([]byte, error)

Get returns the contents of a Store element identified with a key

func (*Store) Set

func (s *Store) Set(key string, value []byte) error

Set stores the contents of a Store element identified with a key

Jump to

Keyboard shortcuts

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