Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + var ErrQuotaNotFound = errors.New("quota not found") + func AddSnapToQuotaGroup(st *state.State, snapName string, quotaGroup string) (*state.Task, error) + func AllQuotas(st *state.State) (map[string]*quota.Group, error) + func CheckQuotaChangeConflictMany(st *state.State, quotaNames []string) error + func Control(st *state.State, appInfos []*snap.AppInfo, inst *Instruction, flags *Flags, ...) ([]*state.TaskSet, error) + func CreateQuota(st *state.State, name string, parentName string, snaps []string, ...) (*state.TaskSet, error) + func EnsureQuotaUsability() (restore func()) + func EnsureSnapAbsentFromQuota(st *state.State, snap string) error + func GetQuota(st *state.State, name string) (*quota.Group, error) + func LogReader(appInfos []*snap.AppInfo, n int, follow bool) (io.ReadCloser, error) + func MockEnsuredSnapServices(mgr *ServiceManager, ensured bool) (restore func()) + func RegisterAffectedQuotasByKind(kind string, f AffectedQuotasFunc) + func RemoveQuota(st *state.State, name string) (*state.TaskSet, error) + func SnapServiceOptions(st *state.State, instanceName string, quotaGroups map[string]*quota.Group) (opts *wrappers.SnapServiceOptions, err error) + func UpdateQuota(st *state.State, name string, updateOpts QuotaGroupUpdate) (*state.TaskSet, error) + type AffectedQuotasFunc func(*state.Task) ([]string, error) + type Flags struct + CreateExecCommandTasks bool + type Instruction struct + Action string + Names []string + type QuotaChangeConflictError struct + ChangeKind string + Message string + Quota string + func (e *QuotaChangeConflictError) Error() string + type QuotaControlAction struct + Action string + AddSnaps []string + ParentName string + QuotaName string + ResourceLimits quota.Resources + type QuotaGroupUpdate struct + AddSnaps []string + NewResourceLimits quota.Resources + type ServiceAction struct + Action string + ActionModifier string + ExplicitServices []string + Services []string + SnapName string + type ServiceActionConflictError struct + type ServiceManager struct + func Manager(st *state.State, runner *state.TaskRunner) *ServiceManager + func (m *ServiceManager) Ensure() error + type StatusDecorator struct + func NewStatusDecorator(rep interface{ ... }) *StatusDecorator + func (sd *StatusDecorator) DecorateWithStatus(appInfo *client.AppInfo, snapApp *snap.AppInfo) error