Versions in this module Expand all Collapse all v0 v0.2.0 Mar 11, 2025 v0.1.0 Oct 25, 2024 Changes in this version + const AnnotationsAnnotation + const ClassLabel + const LabelsAnnotation + const MachineManager + const ManagerLabel + func GetAnnotationsAnnotation(o Metadata) (map[string]string, error) + func GetClassLabel(o Object) (string, bool) + func GetLabelsAnnotation(o Metadata) (map[string]string, error) + func GetObjectMetadata(o Metadata) (*irimeta.ObjectMetadata, error) + func IsManagedBy(o Object, manager string) bool + func SetAnnotationsAnnotation(o Object, annotations map[string]string) error + func SetClassLabel(o Object, class string) + func SetLabelsAnnotation(o Object, labels map[string]string) error + func SetManagerLabel(o Object, manager string) + func SetObjectMetadata(o Object, metadata *irimeta.ObjectMetadata) error + type EmptyDiskSpec struct + Size int64 + type GuestAgent string + const GuestAgentNone + const GuestAgentQemu + type GuestAgentStatus struct + Addr string + type Machine struct + Spec MachineSpec + Status MachineStatus + type MachineSpec struct + CpuMillis int64 + GuestAgent GuestAgent + Ignition []byte + Image *string + MemoryBytes int64 + NetworkInterfaces []*NetworkInterfaceSpec + Power PowerState + ShutdownAt time.Time + Volumes []*VolumeSpec + type MachineState string + const MachineStatePending + const MachineStateRunning + const MachineStateSuspended + const MachineStateTerminated + const MachineStateTerminating + type MachineStatus struct + GuestAgentStatus *GuestAgentStatus + ImageRef string + NetworkInterfaceStatus []NetworkInterfaceStatus + State MachineState + VolumeStatus []VolumeStatus + type Metadata struct + Annotations map[string]string + CreatedAt time.Time + DeletedAt *time.Time + Finalizers []string + Generation int64 + ID string + Labels map[string]string + ResourceVersion uint64 + func (m *Metadata) GetAnnotations() map[string]string + func (m *Metadata) GetCreatedAt() time.Time + func (m *Metadata) GetDeletedAt() *time.Time + func (m *Metadata) GetFinalizers() []string + func (m *Metadata) GetGeneration() int64 + func (m *Metadata) GetID() string + func (m *Metadata) GetLabels() map[string]string + func (m *Metadata) GetResourceVersion() uint64 + func (m *Metadata) IncrementResourceVersion() + func (m *Metadata) SetAnnotations(annotations map[string]string) + func (m *Metadata) SetCreatedAt(createdAt time.Time) + func (m *Metadata) SetDeletedAt(deleted *time.Time) + func (m *Metadata) SetFinalizers(finalizers []string) + func (m *Metadata) SetGeneration(generation int64) + func (m *Metadata) SetID(id string) + func (m *Metadata) SetLabels(labels map[string]string) + type NetworkInterfaceSpec struct + Attributes map[string]string + Ips []string + Name string + NetworkId string + type NetworkInterfaceState string + const NetworkInterfaceStateAttached + const NetworkInterfaceStatePending + type NetworkInterfaceStatus struct + Handle string + IPs []net.IP + Name string + State NetworkInterfaceState + type Object interface + GetAnnotations func() map[string]string + GetCreatedAt func() time.Time + GetDeletedAt func() *time.Time + GetFinalizers func() []string + GetGeneration func() int64 + GetID func() string + GetLabels func() map[string]string + GetResourceVersion func() uint64 + IncrementResourceVersion func() + SetAnnotations func(annotations map[string]string) + SetCreatedAt func(createdAt time.Time) + SetDeletedAt func(deleted *time.Time) + SetFinalizers func(finalizers []string) + SetGeneration func(generation int64) + SetID func(id string) + SetLabels func(labels map[string]string) + type PowerState int32 + const PowerStatePowerOff + const PowerStatePowerOn + type VolumeConnection struct + Attributes map[string]string + Driver string + EncryptionData map[string][]byte + Handle string + SecretData map[string][]byte + type VolumeSpec struct + Connection *VolumeConnection + Device string + EmptyDisk *EmptyDiskSpec + Name string + type VolumeState string + const VolumeStateAttached + const VolumeStatePending + type VolumeStatus struct + Handle string + Name string + Size int64 + State VolumeState