package
0.0.0-20250312152250-ea85ec9d2454
Repository: https://github.com/snapcore/snapd.git
Documentation: pkg.go.dev

# Functions

CommandFromSystemSnap runs a command from the snapd/core snap using the proper interpreter and library paths if needed.
DistroSupportsReExec returns true if the distribution we are running on can use re-exec.
ExecInSnapdOrCoreSnap makes sure you're executing the binary that ships in the snapd/core snap.
InternalToolPath returns the path of an internal snapd tool.
IsReexecd returns true when the current process binary is running from a snap.
IsReexecEnabled checks the environment and configuration to assert whether reexec has been explicitly enabled/disabled.
IsReexecExplicitlyEnabled is a stronger check than IsReexecEnabled as it really expects the relevant environment variable to be set.
MaybeSetupFIPS checks whether a system-wide FIPS mode is enabled and if so sets up an environment such that the current process is able to use libraries that are required for FIPS compliance and reexecs.
MockOsReadlink is for use in tests.
No description provided by the author
ParseInfoFile parses the "info" file provided via an io.Reader.
SnapdVersionFromInfoFile returns the snapd version read from the info file in the given dir, as well as any other key/value pairs/flags in the file.

# Variables

Version will be overwritten at build-time via mkversion.sh.