Snapd – snapd-glib Reference Manual
Packages
snapd-glib
Snapd
AliasStatus
ChangeFilter
Confinement
CreateUserFlags
DaemonType
FindFlags
GetAppsFlags
GetConnectionsFlags
GetInterfacesFlags
GetSnapsFlags
InstallFlags
MaintenanceKind
MarkdownNodeType
MarkdownVersion
NoticeType
PublisherValidation
RemoveFlags
SnapStatus
SnapType
SystemConfinement
ThemeStatus
Alias
App
Assertion
AuthData
AutorefreshChangeData
Category
CategoryDetails
Change
ChangeData
Channel
Client
Connection
Icon
Interface
Log
Maintenance
MarkdownNode
MarkdownParser
Media
Notice
Plug
PlugRef
Price
Screenshot
Slot
SlotRef
Snap
SystemInformation
Task
UserInformation
LogCallback
ProgressCallback
error_quark
login_async
login_sync
Snapd
Description:
Content:
Classes:
Alias
-
Alias
contains alias information for a Snap.
App
-
App
contains information about an app in a Snap.
Assertion
-
Assertion
contains information about a Snap assertion.
AuthData
-
AuthData
contains authorization data used to communicate with snapd.
AutorefreshChangeData
-
SnapdAutoRefreshChangeData
contains the data from the 'data' field of a
Change
of kind 'auto-refresh'.
Category
-
Category
is an opaque data structure and can only be accessed using the provided functions.
CategoryDetails
-
CategoryDetails
is an opaque data structure and can only be accessed using the provided functions.
Change
-
Change
contains information on a current Snap transaction.
ChangeData
-
A
ChangeData
is the base class for the `data` field from a
Change
.
Channel
-
Channel
is an opaque data structure and can only be accessed using the provided functions.
Client
-
Client
contains connection state with snapd.
Connection
-
Connection
contains the state of Snap a interface connection.
Icon
-
Icon
contains icon data.
Interface
-
Interface
contains information about a Snap interface.
Log
-
Log
is an opaque data structure and can only be accessed using the provided functions.
Maintenance
-
Maintenance
contains maintenance information.
MarkdownNode
-
MarkdownNode
is an opaque data structure and can only be accessed using the provided functions.
MarkdownParser
-
MarkdownParser
is an opaque data structure and can only be accessed using the provided functions.
Media
-
Media
contains media information.
Notice
-
Notice
contains information on a notification element.
Plug
-
Plug
contains information about a Snap plug.
PlugRef
-
PlugRef
contains the state of Snap a interface plug_ref.
Price
-
Price
contains pricing information.
Screenshot
-
Screenshot
contains screenshot information.
Slot
-
Slot
contains information about a Snap slot.
SlotRef
-
SlotRef
contains the state of Snap a interface slot_ref.
Snap
-
Snap
contains Snap metadata.
SystemInformation
-
SystemInformation
contains information about the system snapd is running on.
Task
-
Task
contains progress information for a task in a Snap transaction.
UserInformation
-
UserInformation
contains information about a user account on the system snapd is running on.
Enums:
AliasStatus
-
Status of an alias.
ChangeFilter
-
Filter to apply to changes.
Confinement
-
Confinement used by a snap.
CreateUserFlags
-
Flag to control when a user accounts is created.
DaemonType
-
Type of daemon.
FindFlags
-
Flag to change how a find is performed.
GetAppsFlags
-
Flag to change which apps are returned.
GetConnectionsFlags
-
Flag to change how connections are returned.
GetInterfacesFlags
-
Flags to control how interface information is returned.
GetSnapsFlags
-
Flag to change which snaps are returned.
InstallFlags
-
Flags to control install options.
MaintenanceKind
-
Type of snap.
MarkdownNodeType
-
Type of markdown node.
MarkdownVersion
-
Version of markdown to parse.
NoticeType
PublisherValidation
-
State of validation for a publisher.
RemoveFlags
-
Flags to control remove options.
SnapStatus
-
The current state of a snap.
SnapType
-
Type of snap.
SystemConfinement
-
Confinement used by a snap.
ThemeStatus
-
The status of a snap-packaged desktop theme.
Error domains:
Error
-
Error codes returned by snapd operations.
Delegates:
public
delegate
void
LogCallback
(
Client
client,
Log
log)
Signature for callback function used in
follow_logs_sync
.
public
delegate
void
ProgressCallback
(
Client
client,
Change
change,
void
* deprecated)
Signature for callback function used in
connect_interface_sync
,
disconnect_interface_async
,
install2_sync
,
refresh_sync
,
remove2_sync
,
enable_sync
and
disable_sync
.
Functions:
public
Quark
error_quark
()
public
async
AuthData
login_async
(
string
username,
string
password,
string
? otp,
Cancellable
? cancellable)
throws
Error
Asynchronously get authorization to install/remove snaps.
public
AuthData
login_sync
(
string
username,
string
password,
string
? otp,
Cancellable
? cancellable =
null
)
throws
Error
This call used to contact a D-Bus service to perform snapd authentication using Polkit.