Documentation ¶
Index ¶
- Constants
- type AWS
- type Azure
- type BOSH
- type GCP
- type GarbageCollector
- 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 PatchDetector
- type State
- type StateBootstrap
- type Store
- 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) GetRuntimeConfigDir() (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 = 14 STATE_FILE = "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,omitempty"` State map[string]interface{} `json:"state,omitempty"` Manifest string `json:"manifest,omitempty"` }
type GCP ¶
type GarbageCollector ¶
type GarbageCollector struct {
// contains filtered or unexported fields
}
func NewGarbageCollector ¶
func NewGarbageCollector(fs fs) GarbageCollector
func (GarbageCollector) Remove ¶
func (g GarbageCollector) Remove(dir string) error
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 PatchDetector ¶
type PatchDetector struct {
// contains filtered or unexported fields
}
func NewPatchDetector ¶
func NewPatchDetector(path string, logger detectorLogger) PatchDetector
func (PatchDetector) Find ¶
func (p PatchDetector) Find() error
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"` 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"` StorageBucket string `json:"storageBucket,omitempty"` }
type StateBootstrap ¶
type StateBootstrap struct {
// contains filtered or unexported fields
}
func NewStateBootstrap ¶
func NewStateBootstrap(bootstrapLogger bootstrapLogger, bblVersion string) StateBootstrap
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (Store) GetCloudConfigDir ¶
func (Store) GetDirectorDeploymentDir ¶
func (Store) GetJumpboxDeploymentDir ¶
func (Store) GetOldBblDir ¶
func (Store) GetRuntimeConfigDir ¶
func (Store) GetStateDir ¶
func (Store) GetTerraformDir ¶
func (Store) GetVarsDir ¶
type VSphere ¶
type VSphere struct { Network string `json:"-"` SubnetCIDR string `json:"-"` VCenterCluster string `json:"-"` VCenterUser string `json:"-"` VCenterPassword string `json:"-"` VCenterIP string `json:"-"` VCenterDC string `json:"-"` VCenterRP string `json:"-"` VCenterDS string `json:"-"` VCenterDisks string `json:"-"` VCenterTemplates string `json:"-"` VCenterVMs string `json:"-"` }
Click to show internal directories.
Click to hide internal directories.