migrate

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 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 NullBoshClient added in v0.5.0

type NullBoshClient struct{}

func (NullBoshClient) VMsAndStemcells added in v0.5.0

func (c NullBoshClient) VMsAndStemcells(context.Context) ([]string, 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