command

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COMMIT = "dev"
View Source
var VERSION = "0.0.0"

Functions

func GetFormattedVersion

func GetFormattedVersion() string

func GetVersion

func GetVersion() string

Types

type Migrate

type Migrate struct {
	BoshClientSecret      string `long:"bosh-client-secret" env:"BOSH_CLIENT_SECRET" description:"BoshClient client secret" required:"true"`
	VCenterSourcePassword string `long:"source-password" env:"SOURCE_PASSWORD"  description:"password for source vcenter" required:"true"`
	VCenterTargetPassword string `long:"target-password" env:"TARGET_PASSWORD"  description:"password for target vcenter" required:"false"`
	ConfigFilePath        string `long:"config"  description:"path to the migrate.yml, defaults to ./migrate.yml"`
	DryRun                bool   `long:"dry-run"  description:"does not perform any migration operations when true"`
	Debug                 bool   `long:"debug"  description:"sets log level to debug"`
}

func (*Migrate) Execute

func (m *Migrate) Execute([]string) error

Execute - runs the migration

type MigrateVM

type MigrateVM struct {
	SourceHost       string `long:"source-vcenter-host" env:"SOURCE_VCENTER_HOST"  description:"source vcenter hostname" required:"true"`
	SourceDatacenter string `long:"source-datacenter" description:"source datacenter name (where the vm is now)" required:"true"`
	SourceUsername   string `long:"source-username" env:"SOURCE_USERNAME"  description:"username for source vcenter" required:"true"`
	SourcePassword   string `long:"source-password" env:"SOURCE_PASSWORD"  description:"password for source vcenter" required:"true"`
	SourceVM         string `long:"source-vmname" description:"source virtual machine name" required:"true"`
	SourceInsecure   bool   `long:"source-insecure" env:"SOURCE_INSECURE" description:"true if using a self-signed cert" required:"false"`

	TargetHost         string `long:"target-vcenter-host" env:"TARGET_VCENTER_HOST"  description:"target vcenter hostname" required:"true"`
	TargetDatacenter   string `long:"target-datacenter" description:"target datacenter name (where you want the vm to go)" required:"true"`
	TargetCluster      string `long:"target-cluster" description:"target cluster name (where you want the vm to go)" required:"true"`
	TargetResourcePool string `long:"target-resourcepool" description:"target resource pool name"`
	TargetUsername     string `long:"target-username" env:"TARGET_USERNAME"  description:"username for target vcenter" required:"true"`
	TargetPassword     string `long:"target-password" env:"TARGET_PASSWORD"  description:"password for target vcenter" required:"true"`
	TargetInsecure     bool   `long:"target-insecure" env:"TARGET_INSECURE" description:"true if using a self-signed cert" required:"false"`

	NetworkMapping   map[string]string `long:"network-mapping" description:"source to target network name mappings"`
	DatastoreMapping map[string]string `long:"datastore-mapping" description:"source to target datastore name mappings" required:"true"`

	DryRun bool `long:"dry-run"  description:"does not perform any migration operations when true"`
	Debug  bool `long:"debug"  description:"sets log level to debug"`
}

func (*MigrateVM) Execute

func (m *MigrateVM) Execute([]string) error

type VersionCommand

type VersionCommand struct {
}

func (*VersionCommand) Execute

func (c *VersionCommand) Execute([]string) error

Execute - returns the version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL