converter

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 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 Converter

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

func New

func New(net NetworkMapper, rp ResourcePoolMapper, targetDatacenter, targetCluster, targetDatastore string) *Converter

func (*Converter) TargetSpec

func (c *Converter) TargetSpec(sourceVM *vcenter.VM) (*vcenter.TargetSpec, 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 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