Snapd.Channel¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Confinement requested by the snap |
||
r/w/co |
Epoch of this snap |
||
r/w/co |
The channel name |
||
r/w/co |
Date revision was released into channel |
||
r/w/co |
Revision of this snap |
||
r/w/co |
Download size in bytes |
||
r/w/co |
Snap version |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Channel(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.Channel
is an opaque data structure and can only be accessed using the provided functions.New in version 1.22.
- get_branch()¶
-
Get the branch this channel is tracking.
New in version 1.31.
- get_confinement()¶
- Returns:
- Return type:
Get the confinement this snap is using, e.g.
Snapd.Confinement.STRICT
.New in version 1.22.
- get_epoch()¶
- Returns:
an epoch.
- Return type:
Get the epoch used on this channel, e.g. “1”.
New in version 1.22.
- get_name()¶
- Returns:
a name.
- Return type:
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 tolatest
and is implied if the track is not present.risk
is the risk of the channel, one ofstable
,candidate
,beta
oredge
.branch
is an optional branch name.Example names:
beta
(alias tolatest/beta
)xenial/stable
(stable release on xenial track)latest/stable/red-button
(red button feature branch)New in version 1.22.
- get_released_at()¶
- Returns:
- Return type:
Get the date this revision was released into the channel or
None
if unknown.New in version 1.46.
- get_revision()¶
- Returns:
a revision string.
- Return type:
Get the revision for this snap. The format of the string is undefined. See also
Snapd.Channel.get_version
().New in version 1.22.
- get_risk()¶
- Returns:
a risk name.
- Return type:
Get the risk this channel is on, one of
stable
,candidate
,beta
oredge
.New in version 1.31.
- get_size()¶
- Returns:
a byte count.
- Return type:
Get the download size of this snap.
New in version 1.22.
- get_track()¶
- Returns:
a track name.
- Return type:
Get the track this channel is on.
New in version 1.31.
- get_version()¶
- Returns:
a version string.
- Return type:
Get the version for this snap. The format of the string is undefined. See also
Snapd.Channel.get_revision
().New in version 1.22.
Property Details¶
- Snapd.Channel.props.confinement¶
- Name:
confinement
- Type:
- Default Value:
- Flags:
Confinement requested by the snap
- Snapd.Channel.props.epoch¶
- Name:
epoch
- Type:
- Default Value:
- Flags:
Epoch of this snap
- Snapd.Channel.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
The channel name
- Snapd.Channel.props.released_at¶
- Name:
released-at
- Type:
- Default Value:
- Flags:
Date revision was released into channel
- Snapd.Channel.props.revision¶
- Name:
revision
- Type:
- Default Value:
- Flags:
Revision of this snap
- Snapd.Channel.props.size¶
- Name:
size
- Type:
- Default Value:
0
- Flags:
Download size in bytes