Documentation
¶
Index ¶
- Constants
- type AWS
- type Azure
- type BOSH
- type GCP
- type Jumpbox
- type LB
- type Migrator
- func (m Migrator) Migrate(state State) (State, error)
- func (m Migrator) MigrateCloudConfigDir(bblDir, cloudConfigDir string) error
- func (m Migrator) MigrateDirectorState(state State, varsDir string) (State, error)
- func (m Migrator) MigrateDirectorVars(state State, varsDir string) (State, error)
- func (m Migrator) MigrateJumpboxState(state State, varsDir string) (State, error)
- func (m Migrator) MigrateJumpboxVars(state State, varsDir string) (State, error)
- func (m Migrator) MigrateTerraformState(state State, varsDir string) (State, error)
- func (m Migrator) MigrateTerraformTemplate(terraformDir string) error
- func (m Migrator) MigrateTerraformVars(varsDir string) error
- type State
- type StateBootstrap
- type Store
- func (s Store) GetBblOpsFilesDir() (string, error)
- func (s Store) GetCloudConfigDir() (string, error)
- func (s Store) GetDirectorDeploymentDir() (string, error)
- func (s Store) GetJumpboxDeploymentDir() (string, error)
- func (s Store) GetOldBblDir() string
- 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 = 14 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"`
}
type GCP ¶
type GCP struct {
ServiceAccountKey string `json:"-"`
// ideally we could get rid of ServiceAccountKeyPath,
// but this is how we are passing the key along to terraform
// ... we had trouble getting it to work with HEREDOC in go
ServiceAccountKeyPath string `json:"-"`
ProjectID string `json:"-"`
Zone string `json:"zone"`
Region string `json:"region"`
Zones []string `json:"zones"`
}
type Jumpbox ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func NewMigrator(store store, fs migratorFs) Migrator
func (Migrator) MigrateCloudConfigDir ¶
func (Migrator) MigrateDirectorState ¶
func (Migrator) MigrateDirectorVars ¶
func (Migrator) MigrateJumpboxState ¶
func (Migrator) MigrateJumpboxVars ¶
func (Migrator) MigrateTerraformState ¶
func (Migrator) MigrateTerraformTemplate ¶
func (Migrator) MigrateTerraformVars ¶
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) GetBblOpsFilesDir ¶
func (Store) GetCloudConfigDir ¶
func (Store) GetDirectorDeploymentDir ¶
func (Store) GetJumpboxDeploymentDir ¶
func (Store) GetOldBblDir ¶
func (Store) GetStateDir ¶
func (Store) GetTerraformDir ¶
func (Store) GetVarsDir ¶
Click to show internal directories.
Click to hide internal directories.