Top |
const gchar * | snapd_channel_get_branch () |
SnapdConfinement | snapd_channel_get_confinement () |
const gchar * | snapd_channel_get_epoch () |
const gchar * | snapd_channel_get_name () |
GDateTime * | snapd_channel_get_released_at () |
const gchar * | snapd_channel_get_revision () |
const gchar * | snapd_channel_get_risk () |
gint64 | snapd_channel_get_size () |
const gchar * | snapd_channel_get_track () |
const gchar * | snapd_channel_get_version () |
SnapdConfinement | confinement | Read / Write / Construct Only |
gchar * | epoch | Read / Write / Construct Only |
gchar * | name | Read / Write / Construct Only |
GDateTime * | released-at | Read / Write / Construct Only |
gchar * | revision | Read / Write / Construct Only |
gint64 | size | Read / Write / Construct Only |
gchar * | version | Read / Write / Construct Only |
A SnapdChannel contains the metadata for a given snap channel as returned
using snapd_snap_get_channels()
.
const gchar *
snapd_channel_get_branch (SnapdChannel *channel
);
Get the branch this channel is tracking.
Since: 1.31
SnapdConfinement
snapd_channel_get_confinement (SnapdChannel *channel
);
Get the confinement this snap is using, e.g. SNAPD_CONFINEMENT_STRICT
.
Since: 1.22
const gchar *
snapd_channel_get_epoch (SnapdChannel *channel
);
Get the epoch used on this channel, e.g. "1".
Since: 1.22
const gchar *
snapd_channel_get_name (SnapdChannel *channel
);
Get the name of this channel, e.g. "stable".
Channel names are in the form track/risk/branch
track
is the name of the feature track. Defaults to latest
and is implied
if the track is not present.
risk
is the risk of the channel, one of stable
, candidate
, beta
or edge
.
branch
is an optional branch name.
Example names:
beta
(alias to latest/beta
)
xenial/stable
(stable release on xenial track)
latest/stable/red-button
(red button feature branch)
Since: 1.22
GDateTime *
snapd_channel_get_released_at (SnapdChannel *channel
);
Get the date this revision was released into the channel or NULL
if unknown.
Since: 1.46
const gchar *
snapd_channel_get_revision (SnapdChannel *channel
);
Get the revision for this snap. The format of the string is undefined.
See also snapd_channel_get_version()
.
Since: 1.22
const gchar *
snapd_channel_get_risk (SnapdChannel *channel
);
Get the risk this channel is on, one of stable
, candidate
, beta
or edge
.
Since: 1.31
gint64
snapd_channel_get_size (SnapdChannel *channel
);
Get the download size of this snap.
Since: 1.22
const gchar *
snapd_channel_get_track (SnapdChannel *channel
);
Get the track this channel is on.
Since: 1.31
const gchar *
snapd_channel_get_version (SnapdChannel *channel
);
Get the version for this snap. The format of the string is undefined.
See also snapd_channel_get_revision()
.
Since: 1.22
typedef struct _SnapdChannel SnapdChannel;
SnapdChannel is an opaque data structure and can only be accessed using the provided functions.
Since: 1.22
“confinement”
property“confinement” SnapdConfinement
Confinement requested by the snap.
Flags: Read / Write / Construct Only
Default value: SNAPD_CONFINEMENT_UNKNOWN
“epoch”
property“epoch” gchar *
Epoch of this snap.
Flags: Read / Write / Construct Only
Default value: NULL
“name”
property“name” gchar *
The channel name.
Flags: Read / Write / Construct Only
Default value: NULL
“released-at”
property“released-at” GDateTime *
Date revision was released into channel.
Flags: Read / Write / Construct Only
“revision”
property“revision” gchar *
Revision of this snap.
Flags: Read / Write / Construct Only
Default value: NULL
“size”
property“size” gint64
Download size in bytes.
Flags: Read / Write / Construct Only
Default value: 0
“version”
property“version” gchar *
Snap version.
Flags: Read / Write / Construct Only
Default value: NULL