Versions in this module Expand all Collapse all v0 v0.1.0 Sep 2, 2025 Changes in this version + const AnnotationsAnnotation + const ClassLabel + const LabelsAnnotation + const MachineManager + const ManagerLabel + func GetAnnotationsAnnotation(o apiutils.Metadata) (map[string]string, error) + func GetClassLabel(o apiutils.Object) (string, bool) + func GetLabelsAnnotation(o apiutils.Metadata) (map[string]string, error) + func GetObjectMetadata(o apiutils.Metadata) (*irimeta.ObjectMetadata, error) + func IsManagedBy(o apiutils.Object, manager string) bool + func SetAnnotationsAnnotation(o apiutils.Object, annotations map[string]string) error + func SetClassLabel(o apiutils.Object, class string) + func SetLabelsAnnotation(o apiutils.Object, labels map[string]string) error + func SetManagerLabel(o apiutils.Object, manager string) + func SetObjectMetadata(o apiutils.Object, metadata *irimeta.ObjectMetadata) error + type EmptyDiskSpec struct + Size int64 + type Machine struct + Spec MachineSpec + Status MachineStatus + type MachineSpec struct + ApiSocketPath *string + Cpu int64 + 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 + ImageRef string + NetworkInterfaceStatus []NetworkInterfaceStatus + State MachineState + VolumeStatus []VolumeStatus + type NetworkInterfaceSpec struct + Attributes map[string]string + DeletedAt *time.Time + Ips []string + Name string + NetworkId string + type NetworkInterfaceState string + const NetworkInterfaceStateAttached + const NetworkInterfaceStatePending + const NetworkInterfaceStatePrepared + type NetworkInterfaceStatus struct + Handle string + Name string + Path string + State NetworkInterfaceState + Type NetworkInterfaceType + type NetworkInterfaceType string + const NetworkInterfacePCIType + const NetworkInterfaceTAPType + 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 + DeletedAt *time.Time + Device string + EmptyDisk *EmptyDiskSpec + Name string + type VolumeState string + const VolumeStateAttached + const VolumeStatePending + const VolumeStatePrepared + type VolumeStatus struct + Handle string + Name string + Path string + Size int64 + State VolumeState + Type VolumeType + type VolumeType string + const VolumeFileType + const VolumeSocketType