Snapd.Channel

g GObject.Object GObject.Object Snapd.Channel Snapd.Channel GObject.Object->Snapd.Channel

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_branch ()

get_confinement ()

get_epoch ()

get_name ()

get_released_at ()

get_revision ()

get_risk ()

get_size ()

get_track ()

get_version ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

confinement

Snapd.Confinement

r/w/co

Confinement requested by the snap

epoch

str

r/w/co

Epoch of this snap

name

str

r/w/co

The channel name

released-at

GLib.DateTime

r/w/co

Date revision was released into channel

revision

str

r/w/co

Revision of this snap

size

int

r/w/co

Download size in bytes

version

str

r/w/co

Snap version

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Channel(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.ChannelClass

Snapd.Channel is an opaque data structure and can only be accessed using the provided functions.

New in version 1.22.

get_branch()
Returns:

a branch name or None if not a branch.

Return type:

str or None

Get the branch this channel is tracking.

New in version 1.31.

get_confinement()
Returns:

a Snapd.Confinement.

Return type:

Snapd.Confinement

Get the confinement this snap is using, e.g. Snapd.Confinement.STRICT.

New in version 1.22.

get_epoch()
Returns:

an epoch.

Return type:

str

Get the epoch used on this channel, e.g. “1”.

New in version 1.22.

get_name()
Returns:

a name.

Return type:

str

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)

New in version 1.22.

get_released_at()
Returns:

a GLib.DateTime.

Return type:

GLib.DateTime or None

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:

str

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:

str

Get the risk this channel is on, one of stable, candidate, beta or edge.

New in version 1.31.

get_size()
Returns:

a byte count.

Return type:

int

Get the download size of this snap.

New in version 1.22.

get_track()
Returns:

a track name.

Return type:

str

Get the track this channel is on.

New in version 1.31.

get_version()
Returns:

a version string.

Return type:

str

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:

Snapd.Confinement

Default Value:

Snapd.Confinement.UNKNOWN

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Confinement requested by the snap

Snapd.Channel.props.epoch
Name:

epoch

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Epoch of this snap

Snapd.Channel.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The channel name

Snapd.Channel.props.released_at
Name:

released-at

Type:

GLib.DateTime

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Date revision was released into channel

Snapd.Channel.props.revision
Name:

revision

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Revision of this snap

Snapd.Channel.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Download size in bytes

Snapd.Channel.props.version
Name:

version

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snap version