package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Functions
CheckMemoryCgroup checks if the memory cgroup is enabled.
ConfirmSystemdAppTracking checks if systemd tracks this process as a snap app.
ConfirmSystemdServiceTracking checks if systemd tracks this process as a snap service.
CreateTransientScopeForTracking puts the current process in a transient scope.
No description provided by the author
IsUnified returns true when a unified cgroup hierarchy is in use.
MatchUnifiedHierarchy provides matches for unified cgroup hierarchies.
MatchV1Controller provides a matches for a given v1 controller.
MatchV1NamedHierarchy provides a matcher for a given named v1 hierarchy.
MockFreezing replaces the real implementation of freeze and thaw.
MockVersion sets the reported version of cgroup support.
MonitorSnapEnded monitors the running instances of a snap.
PidsOfSnap returns the association of security tags to PIDs.
ProcessPathInTrackingCgroup returns the path in the hierarchy of the tracking cgroup.
ProcGroup finds the path of a given cgroup controller for provided process id.
ProcPidPath returns the path to the cgroup file under /proc for the given process id.
No description provided by the author
Version returns the detected cgroup version.
# Variables
No description provided by the author
FreezeSnapProcesses suspends execution of all the processes belonging to a given snap.
KillSnapProcesses sends a signal to all the processes belonging to a given snap.
ThawSnapProcesses resumes execution of all processes belonging to a given snap.
# Structs
No description provided by the author
TrackingOptions control how tracking, based on systemd transient scope, operates.
# Interfaces
GroupMatcher attempts to match the cgroup entry.