package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev
# Functions
All returns a map from feature flags to information about that feature.
Flag returns whether the given feature flag is enabled.
KnownFeatures returns the list of all known features.
# Constants
AppArmorPrompting enables AppArmor to prompt the user for permission when apps perform certain operations.
CheckDiskSpaceInstall controls free disk space check on snap install.
CheckDiskSpaceRefresh controls free disk space check on snap refresh.
CheckDiskSpaceRemove controls free disk space check on remove whenever automatic snapshot needs to be created.
ClassicPreservesXdgRuntimeDir controls $XDG_RUNTIME_DIR in snaps with classic confinement.
Confdb enables experimental configuration based on confdb and views.
ConfdbControl enables experimental remote management of confdb.
DbusActivation controls whether snaps daemons can be activated via D-Bus.
GateAutoRefreshHook enables refresh control from snaps via gate-auto-refresh hook.
GPIOChardevInterface enables experimental gpio-chardev interface.
HiddenSnapDataHomeDir controls if the snaps' data dir is ~/.snap/data instead of ~/snap.
Hotplug controls availability of dynamically creating slots based on system hardware.
Layouts controls availability of snap layouts.
MoveSnapHomeDir controls whether snap user data under ~/snap (or ~/.snap/data) can be moved to ~/Snap.
ParallelInstances controls availability installing a snap multiple times.
PerUserMountNamespace controls the persistence of per-user mount namespaces.
QuotaGroups enables any current experimental features related to the Quota Groups API, on top of the features already graduated past experimental: * journal quotas are still experimental while guota groups creation and management and memory, cpu, quotas are no longer experimental.
RefreshAppAwareness controls refresh being aware of running applications.
RefreshAppAwarenessUX enables experimental UX improvements for refresh-app-awareness.
UserDaemons controls availability of user mode service support.
# Structs
FeatureInfo records whether a particular feature is supported and/or enabled.
# Type aliases
SnapdFeature is a named feature that may be on or off.