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 + const Unknown + const V1 + const V2 + var ErrCannotTrackProcess = errors.New("cannot track application process") + var FreezeSnapProcesses = freezeSnapProcessesImplV1 + var ThawSnapProcesses = thawSnapProcessesImplV1 + func CheckMemoryCgroup() error + func ConfirmSystemdServiceTracking(securityTag string) error + func CreateTransientScopeForTracking(securityTag string, opts *TrackingOptions) error + func IsUnified() bool + func MockFreezing(freeze, thaw func(snapName string) error) (restore func()) + func MockVersion(mockVersion int, mockErr error) (restore func()) + func PidsOfSnap(snapInstanceName string) (map[string][]int, error) + func ProcGroup(pid int, matcher GroupMatcher) (string, error) + func ProcPidPath(pid int) string + func ProcessPathInTrackingCgroup(pid int) (string, error) + func SnapNameFromPid(pid int) (string, error) + func Version() (int, error) + type GroupMatcher interface + Match func(id, maybeControllers string) bool + String func() string + func MatchUnifiedHierarchy() GroupMatcher + func MatchV1Controller(controller string) GroupMatcher + func MatchV1NamedHierarchy(hierarchyName string) GroupMatcher + type TrackingOptions struct + AllowSessionBus bool