internal

package
v0.0.0-...-9e584df Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: GPL-3.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, memoryLimit quantity.Size, 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