Documentation ¶
Index ¶
- func GetDescriptions(annotations map[string]string) string
- func GetTags(labels map[string]string) map[string]string
- type StateGetter
- func ResourceClusterNetworkStateGetter(obj *harvsternetworkv1.ClusterNetwork) (*StateGetter, error)
- func ResourceImageStateGetter(obj *harvsterv1.VirtualMachineImage) (*StateGetter, error)
- func ResourceKeyPairStateGetter(obj *harvsterv1.KeyPair) (*StateGetter, error)
- func ResourceNetworkStateGetter(obj *nadv1.NetworkAttachmentDefinition) (*StateGetter, error)
- func ResourceVirtualMachineStateGetter(vm *kubevirtv1.VirtualMachine, vmi *kubevirtv1.VirtualMachineInstance, ...) (*StateGetter, error)
- func ResourceVolumeStateGetter(obj *corev1.PersistentVolumeClaim) (*StateGetter, error)
- type VMImporter
- func (v *VMImporter) CPU() int
- func (v *VMImporter) Description() string
- func (v *VMImporter) EvictionStrategy() bool
- func (v *VMImporter) HostName() string
- func (v *VMImporter) MachineType() string
- func (v *VMImporter) Memory() string
- func (v *VMImporter) Name() string
- func (v *VMImporter) Namespace() string
- func (v *VMImporter) NetworkInterface() ([]map[string]interface{}, error)
- func (v *VMImporter) NodeName() string
- func (v *VMImporter) SSHKeys() ([]string, error)
- func (v *VMImporter) State(networkInterfaces []map[string]interface{}, oldInstanceUID string) string
- func (v *VMImporter) Volume() ([]map[string]interface{}, []map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDescriptions ¶
Types ¶
type StateGetter ¶
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 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 NewVMImporter ¶
func NewVMImporter(vm *kubevirtv1.VirtualMachine, vmi *kubevirtv1.VirtualMachineInstance) *VMImporter
func (*VMImporter) CPU ¶
func (v *VMImporter) CPU() int
func (*VMImporter) Description ¶
func (v *VMImporter) Description() string
func (*VMImporter) EvictionStrategy ¶
func (v *VMImporter) EvictionStrategy() bool
func (*VMImporter) HostName ¶
func (v *VMImporter) HostName() string
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) SSHKeys ¶
func (v *VMImporter) SSHKeys() ([]string, error)
Click to show internal directories.
Click to hide internal directories.