migrate

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunFoundationMigrationWithConfig

func RunFoundationMigrationWithConfig(c config.Config, ctx context.Context) error

Types

type BoshClient

type BoshClient interface {
	VMsAndStemcells(context.Context) ([]string, error)
}

type FoundationMigrator

type FoundationMigrator struct {
	WorkerCount   int
	AdditionalVMs []string
	// contains filtered or unexported fields
}

func NewFoundationMigrator

func NewFoundationMigrator(
	srcDatacenter string, boshClient BoshClient, vmMigrator *VMMigrator, updatableStdout *log.UpdatableStdout) *FoundationMigrator

func (*FoundationMigrator) Migrate

func (f *FoundationMigrator) Migrate(ctx context.Context) error

type VCenterClient

type VCenterClient interface {
	HostName() string
	FindVM(ctx context.Context, datacenter, vmName string) (*vcenter.VM, error)
}

type VMMigrator

type VMMigrator struct {
	// contains filtered or unexported fields
}

func NewVMMigrator

func NewVMMigrator(sourceVCenter, targetVCenter VCenterClient, sourceVMConverter *converter.Converter, vmRelocator VMRelocator, updatableStdout *log.UpdatableStdout) *VMMigrator

func (*VMMigrator) Migrate

func (m *VMMigrator) Migrate(ctx context.Context, srcDatacenter, srcVMName string) error

type VMRelocator

type VMRelocator interface {
	RelocateVM(ctx context.Context, srcVM *vcenter.VM, vmTargetSpec *vcenter.TargetSpec) error
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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