converter

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterMapper added in v0.4.0

type ClusterMapper interface {
	TargetCluster(sourceVM *vcenter.VM) (string, error)
}

type Converter

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

func New

func New(net NetworkMapper, rp ResourcePoolMapper, ds DatastoreMapper, cm ClusterMapper, targetDatacenter string) *Converter

func (*Converter) TargetDatacenter added in v0.2.0

func (c *Converter) TargetDatacenter() string

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 ExplicitRP

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

func NewExplicitResourcePool

func NewExplicitResourcePool(target string) *ExplicitRP

func (*ExplicitRP) TargetResourcePool

func (c *ExplicitRP) TargetResourcePool(sourceVM *vcenter.VM) (string, error)

type MappedCluster added in v0.4.0

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

func NewEmptyMappedCluster added in v0.4.0

func NewEmptyMappedCluster() *MappedCluster

func NewMappedCluster added in v0.4.0

func NewMappedCluster(clusterMap map[string]string) *MappedCluster

func (*MappedCluster) Add added in v0.4.0

func (c *MappedCluster) Add(srcCluster, targetCluster string) *MappedCluster

func (*MappedCluster) TargetCluster added in v0.4.0

func (c *MappedCluster) TargetCluster(sourceVM *vcenter.VM) (string, error)

func (*MappedCluster) TargetClusterFromSource added in v0.4.0

func (c *MappedCluster) TargetClusterFromSource(sourceCluster string) (string, 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 MappedRP

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

func NewMappedResourcePool

func NewMappedResourcePool(rpMap map[string]string) *MappedRP

func (*MappedRP) TargetResourcePool

func (c *MappedRP) TargetResourcePool(sourceVM *vcenter.VM) (string, error)

type NetworkMapper

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

type ResourcePoolMapper

type ResourcePoolMapper interface {
	TargetResourcePool(sourceVM *vcenter.VM) (string, error)
}

Jump to

Keyboard shortcuts

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