importer

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescriptions

func GetDescriptions(annotations map[string]string) string

func GetTags

func GetTags(labels map[string]string) map[string]string

Types

type StateGetter

type StateGetter struct {
	ID           string
	Name         string
	ResourceType string
	States       map[string]interface{}
}

func ResourceCloudInitSecretStateGetter added in v0.6.3

func ResourceCloudInitSecretStateGetter(obj *corev1.Secret) (*StateGetter, error)

func ResourceClusterNetworkStateGetter

func ResourceClusterNetworkStateGetter(obj *harvsternetworkv1.ClusterNetwork) (*StateGetter, error)

func ResourceImageStateGetter

func ResourceImageStateGetter(obj *harvsterv1.VirtualMachineImage) (*StateGetter, error)

func ResourceKeyPairStateGetter

func ResourceKeyPairStateGetter(obj *harvsterv1.KeyPair) (*StateGetter, error)

func ResourceNetworkStateGetter

func ResourceNetworkStateGetter(obj *nadv1.NetworkAttachmentDefinition) (*StateGetter, error)

func ResourceStorageClassStateGetter added in v0.6.0

func ResourceStorageClassStateGetter(obj *storagev1.StorageClass) (*StateGetter, error)

func ResourceVLANConfigStateGetter added in v0.6.0

func ResourceVLANConfigStateGetter(obj *harvsternetworkv1.VlanConfig) (*StateGetter, error)

func ResourceVirtualMachineStateGetter

func ResourceVirtualMachineStateGetter(vm *kubevirtv1.VirtualMachine, vmi *kubevirtv1.VirtualMachineInstance, oldInstanceUID string) (*StateGetter, error)

func ResourceVolumeStateGetter

func ResourceVolumeStateGetter(obj *corev1.PersistentVolumeClaim) (*StateGetter, error)

type VMImporter

type VMImporter struct {
	VirtualMachine         *kubevirtv1.VirtualMachine
	VirtualMachineInstance *kubevirtv1.VirtualMachineInstance
}

func (*VMImporter) CPU

func (v *VMImporter) CPU() int

func (*VMImporter) Description

func (v *VMImporter) Description() string

func (*VMImporter) EFI added in v0.5.2

func (v *VMImporter) EFI() bool

func (*VMImporter) EvictionStrategy

func (v *VMImporter) EvictionStrategy() bool

func (*VMImporter) HostName

func (v *VMImporter) HostName() string

func (*VMImporter) Input added in v0.6.2

func (v *VMImporter) Input() ([]map[string]interface{}, error)

func (*VMImporter) MachineType

func (v *VMImporter) MachineType() string

func (*VMImporter) Memory

func (v *VMImporter) Memory() string

func (*VMImporter) Name

func (v *VMImporter) Name() string

func (*VMImporter) Namespace

func (v *VMImporter) Namespace() string

func (*VMImporter) NetworkInterface

func (v *VMImporter) NetworkInterface() ([]map[string]interface{}, error)

func (*VMImporter) NodeName

func (v *VMImporter) NodeName() string

func (*VMImporter) ReservedMemory added in v0.6.2

func (v *VMImporter) ReservedMemory() string

func (*VMImporter) SSHKeys added in v0.2.0

func (v *VMImporter) SSHKeys() ([]string, error)

func (*VMImporter) SecureBoot added in v0.5.2

func (v *VMImporter) SecureBoot() bool

func (*VMImporter) State

func (v *VMImporter) State(networkInterfaces []map[string]interface{}, oldInstanceUID string) string

func (*VMImporter) TPM added in v0.6.3

func (v *VMImporter) TPM() []map[string]interface{}

func (*VMImporter) Volume

func (v *VMImporter) Volume() ([]map[string]interface{}, []map[string]interface{}, error)

Jump to

Keyboard shortcuts

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