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

# Functions

AvailableUserSessions returns a list of available user-session targets for snapd, by probing the available snapd-session-agent sockets in the XDG runtime directory.
No description provided by the author
ClientAppInfosFromSnapAppInfos returns client.AppInfos derived from the given snap.AppInfos.
ClientSnapFromSnapInfo returns a client.Snap derived from snap.Info.
FmtServiceStatus formats a given service application into the following string <snap.app> <enabled> <active> <notes> To keep output persistent between snapctl and snap cmd.
ParseConfigValues parses config values in the format of "foo=bar" or "!foo", optionally a strict strings or JSON values depending on passed options.
PrintModelAssertion will format the provided serial or model assertion based on the parameters given in YAML format, or serialize it raw if Assertion is set.
PrintModelAssertionJSON will format the provided serial or model assertion based on the parameters given in JSON format.
PrintModelAssertionYAML will format the provided serial or model assertion based on the parameters given in YAML format.

# Structs

ModelAssertJSON is used to represent a model assertion as-is in JSON.
ParseConfigOptions controls how config values should be parsed.
No description provided by the author
ServiceScopeOptions represents shared options between service operations that change the scope of services affected.

# Interfaces

ModelFormatter is a helper interface to format special model elements like the publisher, which needs additional formatting.
A StatusDecorator is able to decorate client.AppInfos with service status.