converter

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TargetFolder added in v0.7.0

func TargetFolder(sourceVMFolder string, targetDatacenter string) (string, error)

Types

type AZ added in v0.6.0

type AZ struct {
	Datacenter   string
	Cluster      string
	ResourcePool string
	Name         string
}

func (AZ) Equals added in v0.6.0

func (a AZ) Equals(other AZ) bool

type AZMapping added in v0.6.0

type AZMapping struct {
	Source AZ
	Target AZ
}

type ComputeMapper added in v0.6.0

type ComputeMapper interface {
	TargetCompute(sourceVM *vcenter.VM) (AZ, error)
}

type Converter

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

func (*Converter) TargetSpec

func (c *Converter) TargetSpec(sourceVM *vcenter.VM) (*vcenter.TargetSpec, error)

type DatastoreMapper added in v0.2.0

type DatastoreMapper interface {
	TargetDatastores(sourceVM *vcenter.VM) (map[string]string, error)
}

type MappedCompute added in v0.6.0

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

func NewEmptyMappedCompute added in v0.6.0

func NewEmptyMappedCompute() *MappedCompute

func NewMappedCompute added in v0.6.0

func NewMappedCompute(azMappings []AZMapping) *MappedCompute

func (*MappedCompute) Add added in v0.6.0

func (c *MappedCompute) Add(source AZ, target AZ) *MappedCompute

func (*MappedCompute) TargetCompute added in v0.6.0

func (c *MappedCompute) TargetCompute(sourceVM *vcenter.VM) (AZ, error)

func (*MappedCompute) TargetComputeFromSourceAZ added in v0.6.0

func (c *MappedCompute) TargetComputeFromSourceAZ(srcAZ AZ) (AZ, error)

func (*MappedCompute) TargetComputesFromSourceAZ added in v0.6.0

func (c *MappedCompute) TargetComputesFromSourceAZ(srcCompute AZ) ([]AZ, error)

type MappedDS added in v0.2.0

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

func NewEmptyMappedDatastore added in v0.2.0

func NewEmptyMappedDatastore() *MappedDS

func NewMappedDatastore added in v0.2.0

func NewMappedDatastore(dsMap map[string]string) *MappedDS

func (*MappedDS) Add added in v0.2.0

func (m *MappedDS) Add(srcDS, targetDS string) *MappedDS

func (*MappedDS) TargetDatastores added in v0.2.0

func (m *MappedDS) TargetDatastores(sourceVM *vcenter.VM) (map[string]string, error)

type MappedNet

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

func NewEmptyMappedNetwork

func NewEmptyMappedNetwork() *MappedNet

func NewMappedNetwork

func NewMappedNetwork(networkMap map[string]string) *MappedNet

func (*MappedNet) Add

func (m *MappedNet) Add(srcNet, targetNet string) *MappedNet

func (*MappedNet) TargetNetworks

func (m *MappedNet) TargetNetworks(sourceVM *vcenter.VM) (map[string]string, error)

type NetworkMapper

type NetworkMapper interface {
	TargetNetworks(sourceVM *vcenter.VM) (map[string]string, error)
}

Jump to

Keyboard shortcuts

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