magnum

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 GetClusterMetrics = `` /* 677-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	CreatedAt           sql.NullTime
	UpdatedAt           sql.NullTime
	ID                  int32
	Uuid                sql.NullString
	Name                sql.NullString
	ClusterTemplateID   sql.NullString
	ApiAddress          sql.NullString
	StackID             sql.NullString
	ProjectID           sql.NullString
	UserID              sql.NullString
	Status              sql.NullString
	DiscoveryUrl        sql.NullString
	StatusReason        sql.NullString
	CaCertRef           sql.NullString
	MagnumCertRef       sql.NullString
	CreateTimeout       sql.NullInt32
	TrustID             sql.NullString
	TrusteeUsername     sql.NullString
	TrusteeUserID       sql.NullString
	TrusteePassword     sql.NullString
	CoeVersion          sql.NullString
	ContainerVersion    sql.NullString
	Keypair             sql.NullString
	DockerVolumeSize    sql.NullInt32
	Labels              sql.NullString
	MasterFlavorID      sql.NullString
	FlavorID            sql.NullString
	HealthStatus        sql.NullString
	HealthStatusReason  sql.NullString
	FixedNetwork        sql.NullString
	FixedSubnet         sql.NullString
	FloatingIpEnabled   sql.NullBool
	MasterLbEnabled     sql.NullBool
	EtcdCaCertRef       sql.NullString
	FrontProxyCaCertRef sql.NullString
}

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 GetClusterMetricsRow

type GetClusterMetricsRow struct {
	Uuid        sql.NullString
	Name        sql.NullString
	StackID     string
	Status      string
	ProjectID   sql.NullString
	MasterCount int64
	NodeCount   int64
}

type Nodegroup

type Nodegroup struct {
	CreatedAt        sql.NullTime
	UpdatedAt        sql.NullTime
	ID               int32
	Uuid             string
	Name             string
	ClusterID        string
	ProjectID        string
	DockerVolumeSize sql.NullInt32
	Labels           sql.NullString
	FlavorID         sql.NullString
	ImageID          sql.NullString
	NodeAddresses    sql.NullString
	NodeCount        sql.NullInt32
	MaxNodeCount     sql.NullInt32
	MinNodeCount     sql.NullInt32
	Role             sql.NullString
	IsDefault        sql.NullBool
	StackID          sql.NullString
	Status           sql.NullString
	StatusReason     sql.NullString
	Version          sql.NullString
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) GetClusterMetrics

func (q *Queries) GetClusterMetrics(ctx context.Context) ([]GetClusterMetricsRow, 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