Documentation ¶
Index ¶
Constants ¶
View Source
const ( ERROR processingError = 2 DOWNGRADE processingError = 1 EQUAL processingError = 0 UPGRADE processingError = -1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateVM ¶
type CreateVM struct { StateFile string `long:"state-file" description:"File to output VM identifier info" default:"state.yml"` ImageFile string `long:"image-file" description:"VM image or yaml map of image locations depending on IaaS" required:"true"` Config string `long:"config" description:"The YAML configuration file" required:"true"` VarsFile []string `long:"vars-file" description:"Load variables from a YAML file for interpolation into config"` VarsEnv []string `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func NewCreateVMCommand ¶
type DeleteVM ¶
type DeleteVM struct { StateFile string `long:"state-file" description:"File containing the VM identifier info" required:"true"` Config string `long:"config" description:"The YAML configuration file" required:"true"` VarsFile []string `long:"vars-file" description:"Load variables from a YAML file for interpolation into config"` VarsEnv []string `` /* 144-byte string literal not displayed */ // contains filtered or unexported fields }
func NewDeleteVMCommand ¶
type ExportOpsmanConfig ¶
type ExportOpsmanConfig struct { StateFile string `long:"state-file" description:"File that contains the VM identifier info" required:"true"` ConfigFile string `long:"config-file" description:"File to write the opsman config to" default:"opsman.yml"` AWSRegion string `long:"aws-region" description:"Region that contains the VM defined in the state file"` AWSSecretAccessKey string `long:"aws-secret-access-key" description:"NOTE: only required if not using instance profile, AWS_SECRET_ACCESS_KEY"` AWSAccessKey string `long:"aws-access-key-id" description:"NOTE: only required if not using instance profile, AWS_ACCESS_KEY_ID"` AzureSubscriptionID string `long:"azure-subscription-id" description:"The subscription ID for target Azure account"` AzureTenantID string `long:"azure-tenant-id" description:"Tenant ID for the target Azure environment"` AzureClientID string `long:"azure-client-id" description:"The application (client) ID defined in Azure"` AzureClientSecret string `long:"azure-client-secret" description:"The application (client) secret defined in Azure"` AzureResourceGroup string `long:"azure-resource-group" description:"The resource group that contains the VM defined in the state file"` AzureCloudName string `` /* 183-byte string literal not displayed */ GCPServiceAccountJSON string `long:"gcp-service-account-json" description:"File that contains the service account json"` GCPProjectID string `long:"gcp-project-id" description:"The GCP project id that contains the VM defined in the state file"` GCPZone string `long:"gcp-zone" description:"The zone that contains the VM defined in the state file"` VSphereURL string `long:"vsphere-url" description:"The vCenter server URL"` VSphereUsername string `long:"vsphere-username" description:"The vCenter server username for login"` VSpherePassword string `long:"vsphere-password" description:"The vCenter server password for login"` VSphereInsecure bool `long:"vsphere-insecure" description:"If set, skip verification of the vSphere endpoint. Not recommended!"` // contains filtered or unexported fields }
func NewExportOpsmanConfigCommand ¶
func NewExportOpsmanConfigCommand(stdout, stderr io.Writer, initService initExportOpsmanConfigFunc) ExportOpsmanConfig
func (*ExportOpsmanConfig) Execute ¶
func (e *ExportOpsmanConfig) Execute(args []string) error
type PrepareTasksWithSecrets ¶
type PrepareTasksWithSecrets struct { TaskDir string `long:"task-dir" description:"Directory containing the task files to be modified in place" required:"true"` ConfigDir []string `` /* 128-byte string literal not displayed */ VarDir []string `long:"var-dir" description:"Directory containing the variable files with secrets to ignore"` // contains filtered or unexported fields }
func NewSecretsModifierCommand ¶
func NewSecretsModifierCommand(stdout, stderr io.Writer, service taskModifierService) PrepareTasksWithSecrets
func (*PrepareTasksWithSecrets) Execute ¶
func (c *PrepareTasksWithSecrets) Execute(args []string) error
type UpgradeOpsman ¶
type UpgradeOpsman struct { Recreate bool `long:"recreate" description:"Force recreate the Ops Manager VM"` ImportInstallation struct { Installation string `long:"installation" description:"Path to installation" required:"true"` EnvFile string `long:"env-file" description:"Ops Manager Environment File" required:"true"` } `group:"om import-installation flags"` CreateVM *CreateVM `group:"vm management flags"` DeleteVM *DeleteVM `no-flag:"true"` // contains filtered or unexported fields }
func NewUpgradeOpsman ¶
func (*UpgradeOpsman) Execute ¶
func (n *UpgradeOpsman) Execute(args []string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.