Snapd.Slot

g GObject.Object GObject.Object Snapd.Slot Snapd.Slot GObject.Object->Snapd.Slot

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_attribute (name)

get_attribute_names ()

get_connected_plugs ()

get_connections ()

get_interface ()

get_label ()

get_name ()

get_snap ()

has_attribute (name)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

attributes

GLib.HashTable

r/w/co

Attributes for this slot

connections

GLib.PtrArray

r/w/co

Connections with this slot

interface

str

r/w/co

Interface this slot consumes

label

str

r/w/co

Short description of this slot

name

str

r/w/co

Slot name

snap

str

r/w/co

Snap this slot is on

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Snapd.Slot(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Snapd.SlotClass

Snapd.Slot contains information about a Snap slot.

New in version 1.0.

get_attribute(name)
Parameters:

name (str) – an attribute name.

Returns:

an attribute value or None if not set.

Return type:

GLib.Variant or None

Get an attribute for this interface.

New in version 1.3.

get_attribute_names()
Returns:

a string array of attribute names. Free with GLib.strfreev().

length:

location to write number of attributes or None if not required.

Return type:

([str], length: int)

Get the names of the attributes this slot has.

New in version 1.3.

get_connected_plugs()
Returns:

an array of Snapd.PlugRef.

Return type:

[Snapd.PlugRef]

Get the plugs connected to this slot.

New in version 1.48.

get_connections()
Returns:

an array of Snapd.Connection.

Return type:

[Snapd.Connection]

Get the connections being made with this slot.

New in version 1.0.

Deprecated since version 1.48: Use Snapd.Slot.get_connected_plugs()

get_interface()
Returns:

an interface name.

Return type:

str

Get the name of the interface this slot accepts.

New in version 1.0.

get_label()
Returns:

a label.

Return type:

str

Get a human readable label for this slot.

New in version 1.0.

get_name()
Returns:

a name

Return type:

str

Get the name of this slot.

New in version 1.0.

get_snap()
Returns:

a snap name.

Return type:

str

Get the snap this slot is on.

New in version 1.0.

has_attribute(name)
Parameters:

name (str) – an attribute name.

Returns:

True if this attribute exists.

Return type:

bool

Check if this slot has an attribute.

New in version 1.3.

Property Details

Snapd.Slot.props.attributes
Name:

attributes

Type:

GLib.HashTable

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Attributes for this slot

Snapd.Slot.props.connections
Name:

connections

Type:

GLib.PtrArray

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Connections with this slot

Snapd.Slot.props.interface
Name:

interface

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Interface this slot consumes

Snapd.Slot.props.label
Name:

label

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Short description of this slot

Snapd.Slot.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Slot name

Snapd.Slot.props.snap
Name:

snap

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Snap this slot is on