Documentation ¶
Index ¶
- Constants
- type AWS
- type Azure
- type BOSH
- type GCP
- type Jumpbox
- type LB
- type Migrator
- type State
- type StateBootstrap
- type Store
- func (s Store) GetBblDir() (string, error)
- func (s Store) GetCloudConfigDir() (string, error)
- func (s Store) GetDirectorDeploymentDir() (string, error)
- func (s Store) GetJumpboxDeploymentDir() (string, error)
- func (s Store) GetStateDir() string
- func (s Store) GetTerraformDir() (string, error)
- func (s Store) GetVarsDir() (string, error)
- func (s Store) Set(state State) error
- type VSphere
Constants ¶
View Source
const ( StateMode = 0740 ScriptMode = 0750 )
View Source
const ( STATE_SCHEMA = 13 OS_READ_WRITE_MODE = os.FileMode(0644) StateFileName = "bbl-state.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` Variables string `json:"variables"` State map[string]interface{} `json:"state"` Manifest string `json:"manifest"` UserOpsFile string `json:"userOpsFile"` }
type GCP ¶
type Jumpbox ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func NewMigrator(store store) Migrator
type State ¶
type State struct { Version int `json:"version"` BBLVersion string `json:"bblVersion"` IAAS string `json:"iaas"` ID string `json:"id"` NoDirector bool `json:"noDirector"` AWS AWS `json:"aws,omitempty"` Azure Azure `json:"azure,omitempty"` GCP GCP `json:"gcp,omitempty"` VSphere VSphere `json:"vsphere,omitempty"` Jumpbox Jumpbox `json:"jumpbox,omitempty"` BOSH BOSH `json:"bosh,omitempty"` EnvID string `json:"envID"` TFState string `json:"tfState"` LB LB `json:"lb"` LatestTFOutput string `json:"latestTFOutput"` }
type StateBootstrap ¶
type StateBootstrap struct {
// contains filtered or unexported fields
}
func NewStateBootstrap ¶
func NewStateBootstrap(logger logger, bblVersion string) StateBootstrap
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) GetCloudConfigDir ¶
func (Store) GetDirectorDeploymentDir ¶
func (Store) GetJumpboxDeploymentDir ¶
func (Store) GetStateDir ¶
func (Store) GetTerraformDir ¶
func (Store) GetVarsDir ¶
type VSphere ¶
type VSphere struct { Cluster string `json:"cluster,omitempty"` Network string `json:"network,omitempty"` Subnet string `json:"subnet,omitempty"` VCenterUser string `json:"vcenterUser,omitempty"` VCenterPassword string `json:"vcenterPassword,omitempty"` VCenterIP string `json:"vcenterIP,omitempty"` VCenterDC string `json:"vcenterDC,omitempty"` VCenterRP string `json:"vcenterRP,omitempty"` VCenterDS string `json:"vcenterDS,omitempty"` }
Click to show internal directories.
Click to hide internal directories.