Versions in this module Expand all Collapse all v0 v0.4.0 Dec 4, 2026 v0.3.0 Dec 1, 2026 v0.2.1 Sep 17, 2026 v0.2.0 Sep 17, 2026 v0.1.0 Sep 17, 2026 Changes in this version + const GetAllocationsByProject + const GetConsumerCountByProject + const GetConsumers + const GetResourceClasses + const GetResourceProviderInventories + type Allocation struct + ConsumerID string + CreatedAt sql.NullTime + ID int32 + ResourceClassID int32 + ResourceProviderID int32 + UpdatedAt sql.NullTime + Used int32 + type Consumer struct + ConsumerTypeID sql.NullInt32 + CreatedAt sql.NullTime + Generation int32 + ID int32 + ProjectID int32 + UpdatedAt sql.NullTime + UserID int32 + Uuid string + 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 GetAllocationsByProjectRow struct + ProjectID string + ResourceType sql.NullString + Used int64 + type GetConsumerCountByProjectRow struct + InstanceCount int64 + ProjectID string + type GetConsumersRow struct + Generation int32 + ID int32 + ProjectID string + UserID string + Uuid string + type GetResourceClassesRow struct + ID int32 + Name string + type GetResourceProviderInventoriesRow struct + AllocationRatio float64 + Hostname sql.NullString + Reserved int32 + ResourceType string + Total int32 + Used int64 + type Inventory struct + AllocationRatio float64 + CreatedAt sql.NullTime + ID int32 + MaxUnit int32 + MinUnit int32 + Reserved int32 + ResourceClassID int32 + ResourceProviderID int32 + StepSize int32 + Total int32 + UpdatedAt sql.NullTime + type Project struct + CreatedAt sql.NullTime + ExternalID string + ID int32 + UpdatedAt sql.NullTime + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) GetAllocationsByProject(ctx context.Context) ([]GetAllocationsByProjectRow, error) + func (q *Queries) GetConsumerCountByProject(ctx context.Context) ([]GetConsumerCountByProjectRow, error) + func (q *Queries) GetConsumers(ctx context.Context) ([]GetConsumersRow, error) + func (q *Queries) GetResourceClasses(ctx context.Context) ([]GetResourceClassesRow, error) + func (q *Queries) GetResourceProviderInventories(ctx context.Context) ([]GetResourceProviderInventoriesRow, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type ResourceClass struct + CreatedAt sql.NullTime + ID int32 + Name string + UpdatedAt sql.NullTime + type ResourceProvider struct + CreatedAt sql.NullTime + Generation sql.NullInt32 + ID int32 + Name sql.NullString + ParentProviderID sql.NullInt32 + RootProviderID sql.NullInt32 + UpdatedAt sql.NullTime + Uuid string + type User struct + CreatedAt sql.NullTime + ExternalID string + ID int32 + UpdatedAt sql.NullTime