storage

package
v4.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATE_VERSION = 9

	OS_READ_WRITE_MODE = os.FileMode(0644)
	StateFileName      = "bbl-state.json"
)

Variables

View Source
var GetStateLogger logger

Functions

This section is empty.

Types

type AWS

type AWS struct {
	AccessKeyID     string `json:"accessKeyId,omitempty"`
	SecretAccessKey string `json:"secretAccessKey,omitempty"`
	Region          string `json:"region"`
}

type Azure

type Azure struct {
	SubscriptionID string `json:"subscriptionId"`
	TenantID       string `json:"tenantId"`
	ClientID       string `json:"clientId"`
	ClientSecret   string `json:"clientSecret"`
}

type BOSH

type BOSH struct {
	DirectorName           string                 `json:"directorName"`
	DirectorUsername       string                 `json:"directorUsername"`
	DirectorPassword       string                 `json:"directorPassword"`
	DirectorAddress        string                 `json:"directorAddress"`
	DirectorSSLCA          string                 `json:"directorSSLCA"`
	DirectorSSLCertificate string                 `json:"directorSSLCertificate"`
	DirectorSSLPrivateKey  string                 `json:"directorSSLPrivateKey"`
	Credentials            map[string]string      `json:"credentials"`
	Variables              string                 `json:"variables"`
	State                  map[string]interface{} `json:"state"`
	Manifest               string                 `json:"manifest"`
	UserOpsFile            string                 `json:"userOpsFile"`
}

func (BOSH) IsEmpty

func (b BOSH) IsEmpty() bool

type GCP

type GCP struct {
	ServiceAccountKey string   `json:"serviceAccountKey,omitempty"`
	ProjectID         string   `json:"projectID,omitempty"`
	Zone              string   `json:"zone"`
	Region            string   `json:"region"`
	Zones             []string `json:"zones"`
}

func (GCP) Empty

func (g GCP) Empty() bool

type Jumpbox

type Jumpbox struct {
	Enabled   bool                   `json:"enabled"`
	URL       string                 `json:"url"`
	Variables string                 `json:"variables"`
	Manifest  string                 `json:"manifest"`
	State     map[string]interface{} `json:"state"`
}

type KeyPair

type KeyPair struct {
	Name       string `json:"name"`
	PrivateKey string `json:"privateKey"`
	PublicKey  string `json:"publicKey"`
}

func (KeyPair) IsEmpty

func (k KeyPair) IsEmpty() bool

type LB

type LB struct {
	Type   string `json:"type"`
	Cert   string `json:"cert"`
	Key    string `json:"key"`
	Chain  string `json:"chain"`
	Domain string `json:"domain,omitempty"`
}

type Stack

type Stack struct {
	Name            string `json:"name"`
	LBType          string `json:"lbType"`
	CertificateName string `json:"certificateName"`
	BOSHAZ          string `json:"boshAZ"`
}

type State

type State struct {
	Version                    int     `json:"version"`
	IAAS                       string  `json:"iaas"`
	NoDirector                 bool    `json:"noDirector"`
	MigratedFromCloudFormation bool    `json:"migratedFromCloudFormation"`
	AWS                        AWS     `json:"aws,omitempty"`
	Azure                      Azure   `json:"azure,omitempty"`
	GCP                        GCP     `json:"gcp,omitempty"`
	KeyPair                    KeyPair `json:"keyPair,omitempty"`
	Jumpbox                    Jumpbox `json:"jumpbox,omitempty"`
	BOSH                       BOSH    `json:"bosh,omitempty"`
	Stack                      Stack   `json:"stack"`
	EnvID                      string  `json:"envID"`
	TFState                    string  `json:"tfState"`
	LB                         LB      `json:"lb"`
	LatestTFOutput             string  `json:"latestTFOutput"`
}

func GetState

func GetState(dir string) (State, error)

type Store

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

func NewStore

func NewStore(dir string) Store

func (Store) Set

func (s Store) Set(state State) error

Jump to

Keyboard shortcuts

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