Documentation ¶
Index ¶
- func AllQuotas(st *state.State) (map[string]*quota.Group, error)
- func CreateQuotaInState(st *state.State, quotaName string, parentGrp *quota.Group, snaps []string, ...) (*quota.Group, map[string]*quota.Group, error)
- func PatchQuotas(st *state.State, grps ...*quota.Group) (map[string]*quota.Group, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllQuotas ¶
AllQuotas returns all currently tracked quota groups in the state. They are validated for consistency using ResolveCrossReferences before being returned.
func CreateQuotaInState ¶
func CreateQuotaInState(st *state.State, quotaName string, parentGrp *quota.Group, snaps []string, resourceLimits quota.Resources, allGrps map[string]*quota.Group) (*quota.Group, map[string]*quota.Group, error)
CreateQuotaInState creates a quota group with the given paremeters in the state. It takes the current map of all quota groups.
func PatchQuotas ¶
PatchQuotas will update the state quota group map with the provided quota groups. It returns the full set of all quota groups after a successful update for convenience. The groups provided will replace group states if present or be added on top of the current set of quota groups in the state, and verified for consistency before committed to state. When adding sub-groups, both the parent and the sub-group must be added at once since the sub-group needs to reference the parent group and vice versa to be fully consistent.
Types ¶
This section is empty.