novaapi

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const AggregateGetAll = `-- name: AggregateGetAll :many
SELECT 
    id,
    uuid,
    name,
    created_at,
    updated_at
FROM aggregates
`
View Source
const AggregateHostGetAll = `` /* 215-byte string literal not displayed */
View Source
const FlavorGetAll = `` /* 193-byte string literal not displayed */
View Source
const QuotaClassGetDefaults = `-- name: QuotaClassGetDefaults :many
SELECT 
    resource,
    hard_limit
FROM quota_classes
WHERE class_name = 'default'
`
View Source
const QuotaGetAll = `-- name: QuotaGetAll :many
SELECT 
    id,
    project_id,
    resource,
    hard_limit
FROM quotas
`
View Source
const QuotaUsageGetAll = `` /* 153-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate struct {
	CreatedAt sql.NullTime
	UpdatedAt sql.NullTime
	ID        int32
	Uuid      sql.NullString
	Name      sql.NullString
}

type AggregateGetAllRow

type AggregateGetAllRow struct {
	ID        int32
	Uuid      sql.NullString
	Name      sql.NullString
	CreatedAt sql.NullTime
	UpdatedAt sql.NullTime
}

type AggregateHost

type AggregateHost struct {
	CreatedAt   sql.NullTime
	UpdatedAt   sql.NullTime
	ID          int32
	Host        sql.NullString
	AggregateID int32
}

type AggregateHostGetAllRow

type AggregateHostGetAllRow struct {
	ID            int32
	Host          sql.NullString
	AggregateID   int32
	AggregateName sql.NullString
	AggregateUuid 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 Flavor

type Flavor struct {
	CreatedAt   sql.NullTime
	UpdatedAt   sql.NullTime
	Name        string
	ID          int32
	MemoryMb    int32
	Vcpus       int32
	Swap        int32
	VcpuWeight  sql.NullInt32
	Flavorid    string
	RxtxFactor  sql.NullFloat64
	RootGb      sql.NullInt32
	EphemeralGb sql.NullInt32
	Disabled    sql.NullBool
	IsPublic    sql.NullBool
	Description sql.NullString
}

type FlavorGetAllRow

type FlavorGetAllRow struct {
	ID          int32
	Flavorid    string
	Name        string
	Vcpus       int32
	MemoryMb    int32
	RootGb      sql.NullInt32
	EphemeralGb sql.NullInt32
	Swap        int32
	RxtxFactor  sql.NullFloat64
	Disabled    sql.NullBool
	IsPublic    sql.NullBool
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AggregateGetAll

func (q *Queries) AggregateGetAll(ctx context.Context) ([]AggregateGetAllRow, error)

func (*Queries) AggregateHostGetAll

func (q *Queries) AggregateHostGetAll(ctx context.Context) ([]AggregateHostGetAllRow, error)

func (*Queries) FlavorGetAll

func (q *Queries) FlavorGetAll(ctx context.Context) ([]FlavorGetAllRow, error)

func (*Queries) QuotaClassGetDefaults

func (q *Queries) QuotaClassGetDefaults(ctx context.Context) ([]QuotaClassGetDefaultsRow, error)

func (*Queries) QuotaGetAll

func (q *Queries) QuotaGetAll(ctx context.Context) ([]QuotaGetAllRow, error)

func (*Queries) QuotaUsageGetAll

func (q *Queries) QuotaUsageGetAll(ctx context.Context) ([]QuotaUsageGetAllRow, error)

func (*Queries) WithTx

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

type Quota

type Quota struct {
	ID        int32
	CreatedAt sql.NullTime
	UpdatedAt sql.NullTime
	ProjectID sql.NullString
	Resource  string
	HardLimit sql.NullInt32
}

type QuotaClass

type QuotaClass struct {
	CreatedAt sql.NullTime
	UpdatedAt sql.NullTime
	ID        int32
	ClassName sql.NullString
	Resource  sql.NullString
	HardLimit sql.NullInt32
}

type QuotaClassGetDefaultsRow

type QuotaClassGetDefaultsRow struct {
	Resource  sql.NullString
	HardLimit sql.NullInt32
}

type QuotaGetAllRow

type QuotaGetAllRow struct {
	ID        int32
	ProjectID sql.NullString
	Resource  string
	HardLimit sql.NullInt32
}

type QuotaUsage

type QuotaUsage struct {
	CreatedAt    sql.NullTime
	UpdatedAt    sql.NullTime
	ID           int32
	ProjectID    sql.NullString
	UserID       sql.NullString
	Resource     string
	InUse        int32
	Reserved     int32
	UntilRefresh sql.NullInt32
}

type QuotaUsageGetAllRow

type QuotaUsageGetAllRow struct {
	ID           int32
	ProjectID    sql.NullString
	Resource     string
	InUse        int32
	Reserved     int32
	UntilRefresh sql.NullInt32
	UserID       sql.NullString
}

Jump to

Keyboard shortcuts

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