Documentation
¶
Index ¶
- Constants
- type Aggregate
- type AggregateGetAllRow
- type AggregateHost
- type AggregateHostGetAllRow
- type DBTX
- type Flavor
- type FlavorGetAllRow
- type Queries
- func (q *Queries) AggregateGetAll(ctx context.Context) ([]AggregateGetAllRow, error)
- func (q *Queries) AggregateHostGetAll(ctx context.Context) ([]AggregateHostGetAllRow, error)
- func (q *Queries) FlavorGetAll(ctx context.Context) ([]FlavorGetAllRow, error)
- func (q *Queries) QuotaClassGetDefaults(ctx context.Context) ([]QuotaClassGetDefaultsRow, error)
- func (q *Queries) QuotaGetAll(ctx context.Context) ([]QuotaGetAllRow, error)
- func (q *Queries) QuotaUsageGetAll(ctx context.Context) ([]QuotaUsageGetAllRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Quota
- type QuotaClass
- type QuotaClassGetDefaultsRow
- type QuotaGetAllRow
- type QuotaUsage
- type QuotaUsageGetAllRow
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 AggregateHostGetAllRow ¶
type AggregateHostGetAllRow struct {
ID int32
Host sql.NullString
AggregateID int32
AggregateName sql.NullString
AggregateUuid sql.NullString
}
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 Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
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)
type QuotaClass ¶
type QuotaClassGetDefaultsRow ¶
type QuotaClassGetDefaultsRow struct {
Resource sql.NullString
HardLimit sql.NullInt32
}
type QuotaGetAllRow ¶
type QuotaUsage ¶
type QuotaUsageGetAllRow ¶
type QuotaUsageGetAllRow struct {
ID int32
ProjectID sql.NullString
Resource string
InUse int32
Reserved int32
UntilRefresh sql.NullInt32
UserID sql.NullString
}
Click to show internal directories.
Click to hide internal directories.