internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllQuotas

func AllQuotas(st *state.State) (map[string]*quota.Group, error)

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

func PatchQuotas(st *state.State, grps ...*quota.Group) (map[string]*quota.Group, error)

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.

Jump to

Keyboard shortcuts

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