gcp

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 {
	CustomOperations    string
	DirectorName        string
	ExternalIP          string
	GcpCredentialsJSON  string
	InternalCIDR        string
	InternalGW          string
	InternalIP          string
	Network             string
	PrivateCIDR         string
	PrivateCIDRGateway  string
	PrivateCIDRReserved string
	PrivateSubnetwork   string
	ProjectID           string
	PublicCIDR          string
	PublicCIDRGateway   string
	PublicCIDRReserved  string
	PublicCIDRStatic    string
	PublicKey           string
	PublicSubnetwork    string
	Spot                bool
	Tags                string
	Zone                string
}

Environment holds all the parameters GCP 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