storage

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	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"`
	SecretAccessKey string `json:"secretAccessKey"`
	Region          string `json:"region"`
}

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"`
	State                  map[string]interface{} `json:"state"`
	Manifest               string                 `json:"manifest"`
}

func (BOSH) IsEmpty

func (b BOSH) IsEmpty() bool

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 Stack

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

type State

type State struct {
	Version int     `json:"version"`
	AWS     AWS     `json:"aws"`
	KeyPair KeyPair `json:"keyPair,omitempty"`
	BOSH    BOSH    `json:"bosh,omitempty"`
	Stack   Stack   `json:"stack"`
	EnvID   string  `json:"envID"`
}

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