Versions in this module Expand all Collapse all v1 v1.1.0 Feb 28, 2026 v1.0.0 Feb 25, 2026 Changes in this version + const GetComputeNodes + const GetInstances + const GetServices + type ComputeNode struct + CpuAllocationRatio sql.NullFloat64 + CpuInfo string + CreatedAt sql.NullTime + CurrentWorkload sql.NullInt32 + Deleted sql.NullInt32 + DeletedAt sql.NullTime + DiskAllocationRatio sql.NullFloat64 + DiskAvailableLeast sql.NullInt32 + ExtraResources sql.NullString + FreeDiskGb sql.NullInt32 + FreeRamMb sql.NullInt32 + Host sql.NullString + HostIp sql.NullString + HypervisorHostname sql.NullString + HypervisorType string + HypervisorVersion int32 + ID int32 + LocalGb int32 + LocalGbUsed int32 + Mapped sql.NullInt32 + MemoryMb int32 + MemoryMbUsed int32 + Metrics sql.NullString + NumaTopology sql.NullString + PciStats sql.NullString + RamAllocationRatio sql.NullFloat64 + RunningVms sql.NullInt32 + ServiceID sql.NullInt32 + Stats sql.NullString + SupportedInstances sql.NullString + UpdatedAt sql.NullTime + Uuid sql.NullString + Vcpus int32 + VcpusUsed int32 + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type GetComputeNodesRow struct + CpuAllocationRatio sql.NullFloat64 + CurrentWorkload sql.NullInt32 + Deleted sql.NullInt32 + DiskAllocationRatio sql.NullFloat64 + DiskAvailableLeast sql.NullInt32 + FreeDiskGb sql.NullInt32 + FreeRamMb sql.NullInt32 + Host sql.NullString + HypervisorHostname sql.NullString + HypervisorType string + HypervisorVersion int32 + ID int32 + LocalGb int32 + LocalGbUsed int32 + MemoryMb int32 + MemoryMbUsed int32 + RamAllocationRatio sql.NullFloat64 + RunningVms sql.NullInt32 + Uuid sql.NullString + Vcpus int32 + VcpusUsed int32 + type GetInstancesRow struct + AvailabilityZone sql.NullString + Deleted sql.NullInt32 + DisplayName sql.NullString + EphemeralGb sql.NullInt32 + Host sql.NullString + ID int32 + InstanceTypeID sql.NullInt32 + LaunchedAt sql.NullTime + MemoryMb sql.NullInt32 + PowerState sql.NullInt32 + ProjectID sql.NullString + RootGb sql.NullInt32 + TaskState sql.NullString + TerminatedAt sql.NullTime + UserID sql.NullString + Uuid string + Vcpus sql.NullInt32 + VmState sql.NullString + type GetServicesRow struct + Binary sql.NullString + Deleted sql.NullInt32 + Disabled sql.NullBool + DisabledReason sql.NullString + ForcedDown sql.NullBool + Host sql.NullString + ID int32 + LastSeenUp sql.NullTime + ReportCount int32 + Topic sql.NullString + Uuid sql.NullString + Version sql.NullInt32 + type Instance struct + AccessIpV4 sql.NullString + AccessIpV6 sql.NullString + Architecture sql.NullString + AutoDiskConfig sql.NullBool + AvailabilityZone sql.NullString + CellName sql.NullString + Cleaned sql.NullInt32 + ComputeID sql.NullInt64 + ConfigDrive sql.NullString + CreatedAt sql.NullTime + DefaultEphemeralDevice sql.NullString + DefaultSwapDevice sql.NullString + Deleted sql.NullInt32 + DeletedAt sql.NullTime + DisableTerminate sql.NullBool + DisplayDescription sql.NullString + DisplayName sql.NullString + EphemeralGb sql.NullInt32 + EphemeralKeyUuid sql.NullString + Hidden sql.NullBool + Host sql.NullString + Hostname sql.NullString + ID int32 + ImageRef sql.NullString + InstanceTypeID sql.NullInt32 + InternalID sql.NullInt32 + KernelID sql.NullString + KeyData sql.NullString + KeyName sql.NullString + LaunchIndex sql.NullInt32 + LaunchedAt sql.NullTime + LaunchedOn sql.NullString + Locked sql.NullBool + LockedBy NullInstancesLockedBy + MemoryMb sql.NullInt32 + Node sql.NullString + OsType sql.NullString + PowerState sql.NullInt32 + Progress sql.NullInt32 + ProjectID sql.NullString + RamdiskID sql.NullString + ReservationID sql.NullString + RootDeviceName sql.NullString + RootGb sql.NullInt32 + ShutdownTerminate sql.NullBool + TaskState sql.NullString + TerminatedAt sql.NullTime + UpdatedAt sql.NullTime + UserData sql.NullString + UserID sql.NullString + Uuid string + Vcpus sql.NullInt32 + VmMode sql.NullString + VmState sql.NullString + type InstancesLockedBy string + const InstancesLockedByAdmin + const InstancesLockedByOwner + func (e *InstancesLockedBy) Scan(src interface{}) error + type NullInstancesLockedBy struct + InstancesLockedBy InstancesLockedBy + Valid bool + func (ns *NullInstancesLockedBy) Scan(value interface{}) error + func (ns NullInstancesLockedBy) Value() (driver.Value, error) + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) GetComputeNodes(ctx context.Context) ([]GetComputeNodesRow, error) + func (q *Queries) GetInstances(ctx context.Context) ([]GetInstancesRow, error) + func (q *Queries) GetServices(ctx context.Context) ([]GetServicesRow, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Service struct + Binary sql.NullString + CreatedAt sql.NullTime + Deleted sql.NullInt32 + DeletedAt sql.NullTime + Disabled sql.NullBool + DisabledReason sql.NullString + ForcedDown sql.NullBool + Host sql.NullString + ID int32 + LastSeenUp sql.NullTime + ReportCount int32 + Topic sql.NullString + UpdatedAt sql.NullTime + Uuid sql.NullString + Version sql.NullInt32