Documentation
¶
Index ¶
- Constants
- type AvailabilityZone
- type DBTX
- type ProjectShareTypeQuota
- type ProjectUserQuota
- type Queries
- func (q *Queries) QuotaClassGetDefault(ctx context.Context) ([]QuotaClassGetDefaultRow, error)
- func (q *Queries) QuotaGetAllByProject(ctx context.Context) ([]QuotaGetAllByProjectRow, error)
- func (q *Queries) QuotaGetAllByProjectAndShareType(ctx context.Context) ([]QuotaGetAllByProjectAndShareTypeRow, error)
- func (q *Queries) QuotaGetAllByProjectAndUser(ctx context.Context) ([]QuotaGetAllByProjectAndUserRow, error)
- func (q *Queries) QuotaUsageGetAllByProject(ctx context.Context) ([]QuotaUsageGetAllByProjectRow, error)
- func (q *Queries) QuotaUsageGetAllByProjectAndShareType(ctx context.Context) ([]QuotaUsageGetAllByProjectAndShareTypeRow, error)
- func (q *Queries) ShareGetAllWithInstances(ctx context.Context) ([]ShareGetAllWithInstancesRow, error)
- func (q *Queries) ShareGetInventory(ctx context.Context) ([]ShareGetInventoryRow, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Quota
- type QuotaClass
- type QuotaClassGetDefaultRow
- type QuotaGetAllByProjectAndShareTypeRow
- type QuotaGetAllByProjectAndUserRow
- type QuotaGetAllByProjectRow
- type QuotaUsage
- type QuotaUsageGetAllByProjectAndShareTypeRow
- type QuotaUsageGetAllByProjectRow
- type Share
- type ShareGetAllWithInstancesRow
- type ShareGetInventoryRow
- type ShareInstance
- type ShareType
Constants ¶
const QuotaClassGetDefault = `` /* 150-byte string literal not displayed */
const QuotaGetAllByProject = `` /* 161-byte string literal not displayed */
const QuotaGetAllByProjectAndUser = `` /* 199-byte string literal not displayed */
const QuotaUsageGetAllByProject = `` /* 222-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityZone ¶
type ProjectShareTypeQuota ¶ added in v0.4.0
type ProjectShareTypeQuota struct {
}
type ProjectUserQuota ¶ added in v0.4.0
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) QuotaClassGetDefault ¶ added in v0.4.0
func (q *Queries) QuotaClassGetDefault(ctx context.Context) ([]QuotaClassGetDefaultRow, error)
Upstream quota_class_get_default. The persisted 'default' class overrides service configuration defaults.
func (*Queries) QuotaGetAllByProject ¶ added in v0.4.0
func (q *Queries) QuotaGetAllByProject(ctx context.Context) ([]QuotaGetAllByProjectRow, error)
Upstream quota_get_all_by_project for every project. Quota tables use integer soft deletion: active = 0, soft-deleted = the row's id.
func (*Queries) QuotaGetAllByProjectAndShareType ¶ added in v0.4.0
func (q *Queries) QuotaGetAllByProjectAndShareType(ctx context.Context) ([]QuotaGetAllByProjectAndShareTypeRow, error)
Upstream quota_get_all_by_project_and_share_type for every project and type. share_type_name is NULL when the share type is deleted or missing; the override row is still returned.
func (*Queries) QuotaGetAllByProjectAndUser ¶ added in v0.4.0
func (q *Queries) QuotaGetAllByProjectAndUser(ctx context.Context) ([]QuotaGetAllByProjectAndUserRow, error)
Upstream quota_get_all_by_project_and_user for every project and user. User overrides are independent of project and share-type overrides.
func (*Queries) QuotaUsageGetAllByProject ¶ added in v0.4.0
func (q *Queries) QuotaUsageGetAllByProject(ctx context.Context) ([]QuotaUsageGetAllByProjectRow, error)
Upstream quota_usage_get_all_by_project for every project: raw per-user rows with share_type_id IS NULL. Share-type accounting describes the same allocations and is excluded; it is read by QuotaUsageGetAllByProjectAndShareType. A NULL user_id is a legacy project-level row. in_use and reserved are returned as stored, including NULL.
func (*Queries) QuotaUsageGetAllByProjectAndShareType ¶ added in v0.4.0
func (q *Queries) QuotaUsageGetAllByProjectAndShareType(ctx context.Context) ([]QuotaUsageGetAllByProjectAndShareTypeRow, error)
Upstream quota_usage_get_all_by_project_and_share_type for every project and type: raw rows with a share_type_id. share_type_name is NULL when the share type is deleted or missing; the accounting row is still returned.
func (*Queries) ShareGetAllWithInstances ¶
func (q *Queries) ShareGetAllWithInstances(ctx context.Context) ([]ShareGetAllWithInstancesRow, error)
Multi-instance view: returns one row per nondeleted instance (or a NULL instance for shares with none). Use ShareGetInventory for logical shares.
func (*Queries) ShareGetInventory ¶ added in v0.4.0
func (q *Queries) ShareGetInventory(ctx context.Context) ([]ShareGetInventoryRow, error)
One row per nondeleted logical share, including shares with no instances. Mirrors Manila Share.instance (manila/db/sqlalchemy/models.py): sort by status, then prefer active replicas unless the first sorted status is replication_change. Reverting sorts before replication_change, so its presence restores active-replica preference. Upstream leaves equal or unknown-status ties to relationship order; instance ID is the stable tie break. All instance metadata comes from the same winner. The transitional ranks copy constants.TRANSITIONAL_STATUSES in order (manila/common/constants.py, checked against master 2026-11-18). Re-check both files when moving to a new Manila release: a missing transitional status falls into the unlisted bucket and would be preferred over transitional ones. Retain the existing inventory deletion scope, including retained shares with is_soft_deleted set; that flag is distinct from the row's deleted marker.
type QuotaClass ¶ added in v0.4.0
type QuotaClassGetDefaultRow ¶ added in v0.4.0
type QuotaClassGetDefaultRow struct {
Resource sql.NullString
HardLimit sql.NullInt32
}
type QuotaGetAllByProjectAndShareTypeRow ¶ added in v0.4.0
type QuotaGetAllByProjectAndShareTypeRow struct {
}
type QuotaGetAllByProjectAndUserRow ¶ added in v0.4.0
type QuotaGetAllByProjectRow ¶ added in v0.4.0
type QuotaGetAllByProjectRow struct {
ProjectID sql.NullString
Resource sql.NullString
HardLimit sql.NullInt32
}
type QuotaUsage ¶ added in v0.4.0
type QuotaUsageGetAllByProjectAndShareTypeRow ¶ added in v0.4.0
type QuotaUsageGetAllByProjectAndShareTypeRow struct {
}
type QuotaUsageGetAllByProjectRow ¶ added in v0.4.0
type QuotaUsageGetAllByProjectRow struct {
ProjectID sql.NullString
UserID sql.NullString
Resource sql.NullString
InUse sql.NullInt32
Reserved sql.NullInt32
}
type ShareGetAllWithInstancesRow ¶
type ShareGetAllWithInstancesRow struct {
}
type ShareGetInventoryRow ¶ added in v0.4.0
type ShareGetInventoryRow struct {
}
type ShareInstance ¶
type ShareInstance struct {
}