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) MigrateDirectorVarsFile(varsDir string) error
- func (m Migrator) MigrateJumpboxState(state State, varsDir string) (State, error)
- func (m Migrator) MigrateJumpboxVars(state State, varsDir string) (State, error)
- func (m Migrator) MigrateJumpboxVarsFile(varsDir string) 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 OpenStack
- 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 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) MigrateDirectorVarsFile ¶
func (Migrator) MigrateJumpboxState ¶
func (Migrator) MigrateJumpboxVars ¶
func (Migrator) MigrateJumpboxVarsFile ¶
func (Migrator) MigrateTerraformState ¶
func (Migrator) MigrateTerraformTemplate ¶
func (Migrator) MigrateTerraformVars ¶
type OpenStack ¶
type OpenStack struct { InternalCidr string `json:"-"` ExternalIP string `json:"-"` AuthURL string `json:"-"` AZ string `json:"-"` DefaultKeyName string `json:"-"` DefaultSecurityGroup string `json:"-"` NetworkID string `json:"-"` Password string `json:"-"` Username string `json:"-"` Project string `json:"-"` Domain string `json:"-"` Region string `json:"-"` PrivateKey string `json:"-"` }
type State ¶
type State struct { Version int `json:"version"` BBLVersion string `json:"bblVersion"` IAAS string `json:"iaas"` ID string `json:"id"` EnvID string `json:"envID"` NoDirector bool `json:"noDirector"` AWS AWS `json:"aws,omitempty"` Azure Azure `json:"azure,omitempty"` GCP GCP `json:"gcp,omitempty"` VSphere VSphere `json:"vsphere,omitempty"` OpenStack OpenStack `json:"openstack,omitempty"` Jumpbox Jumpbox `json:"jumpbox,omitempty"` BOSH BOSH `json:"bosh,omitempty"` 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.