ironic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const GetNodeMetrics = `` /* 290-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type GetNodeMetricsRow

type GetNodeMetricsRow struct {
	Uuid           sql.NullString
	Name           sql.NullString
	PowerState     sql.NullString
	ProvisionState sql.NullString
	Maintenance    sql.NullBool
	ResourceClass  sql.NullString
	ConsoleEnabled sql.NullBool
	Retired        sql.NullBool
	RetiredReason  string
}

type Node

type Node struct {
	CreatedAt            sql.NullTime
	UpdatedAt            sql.NullTime
	ID                   int32
	Uuid                 sql.NullString
	InstanceUuid         sql.NullString
	ChassisID            sql.NullInt32
	PowerState           sql.NullString
	TargetPowerState     sql.NullString
	ProvisionState       sql.NullString
	TargetProvisionState sql.NullString
	LastError            sql.NullString
	Properties           sql.NullString
	Driver               sql.NullString
	DriverInfo           sql.NullString
	Reservation          sql.NullString
	Maintenance          sql.NullBool
	Extra                sql.NullString
	ProvisionUpdatedAt   sql.NullTime
	ConsoleEnabled       sql.NullBool
	InstanceInfo         sql.NullString
	ConductorAffinity    sql.NullInt32
	MaintenanceReason    sql.NullString
	DriverInternalInfo   sql.NullString
	Name                 sql.NullString
	InspectionStartedAt  sql.NullTime
	InspectionFinishedAt sql.NullTime
	CleanStep            sql.NullString
	RaidConfig           sql.NullString
	TargetRaidConfig     sql.NullString
	NetworkInterface     sql.NullString
	ResourceClass        sql.NullString
	BootInterface        sql.NullString
	ConsoleInterface     sql.NullString
	DeployInterface      sql.NullString
	InspectInterface     sql.NullString
	ManagementInterface  sql.NullString
	PowerInterface       sql.NullString
	RaidInterface        sql.NullString
	VendorInterface      sql.NullString
	StorageInterface     sql.NullString
	Version              sql.NullString
	RescueInterface      sql.NullString
	BiosInterface        sql.NullString
	Fault                sql.NullString
	DeployStep           sql.NullString
	ConductorGroup       string
	AutomatedClean       sql.NullBool
	Protected            bool
	ProtectedReason      sql.NullString
	Owner                sql.NullString
	AllocationID         sql.NullInt32
	Description          sql.NullString
	Retired              sql.NullBool
	RetiredReason        sql.NullString
	Lessee               sql.NullString
	NetworkData          sql.NullString
	BootMode             sql.NullString
	SecureBoot           sql.NullBool
	Shard                sql.NullString
	ParentNode           sql.NullString
	FirmwareInterface    sql.NullString
	ServiceStep          sql.NullString
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) GetNodeMetrics

func (q *Queries) GetNodeMetrics(ctx context.Context) ([]GetNodeMetricsRow, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

Jump to

Keyboard shortcuts

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