Snapd.Slot¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Attributes for this slot |
||
r/w/co |
Connections with this slot |
||
r/w/co |
Interface this slot consumes |
||
r/w/co |
Short description of this slot |
||
r/w/co |
Slot name |
||
r/w/co |
Snap this slot is on |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Slot(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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
orNone
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:
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:
Get the plugs connected to this slot.
New in version 1.48.
- get_connections()¶
- Returns:
an array of
Snapd.Connection
.- Return type:
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:
Get the name of the interface this slot accepts.
New in version 1.0.
- get_label()¶
- Returns:
a label.
- Return type:
Get a human readable label for this slot.
New in version 1.0.
- get_snap()¶
- Returns:
a snap name.
- Return type:
Get the snap this slot is on.
New in version 1.0.
Property Details¶
- Snapd.Slot.props.attributes¶
- Name:
attributes
- Type:
- Default Value:
- Flags:
Attributes for this slot
- Snapd.Slot.props.connections¶
- Name:
connections
- Type:
- Default Value:
- Flags:
Connections with this slot
- Snapd.Slot.props.interface¶
- Name:
interface
- Type:
- Default Value:
- Flags:
Interface this slot consumes
- Snapd.Slot.props.label¶
- Name:
label
- Type:
- Default Value:
- Flags:
Short description of this slot
- Snapd.Slot.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
Slot name