Snapd.Connection¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|
||
r/w/co |
Interface this connection uses |
||
r/w/co |
|
||
r/w/co |
Name of connection/plug on snap |
||
r/w/co |
Plug this connection is made with |
||
r/w/co |
Attributes for connected plug |
||
r/w/co |
Slot this connection is made with |
||
r/w/co |
Attributes for connected slot |
||
r/w/co |
Snap this connection is made to |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.Connection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.Connection
contains the state of Snap a interface connection.New in version 1.0.
- get_gadget()¶
-
Get if this connection was made by the gadget snap.
New in version 1.48.
- get_interface()¶
- Returns:
an interface name.
- Return type:
Get the interface this connections uses.
New in version 1.48.
- get_manual()¶
-
Get if this connection was made manually.
New in version 1.48.
- get_name()¶
- Returns:
a name.
- Return type:
Get the name of this connection (i.e. a slot or plug name).
New in version 1.0.
Deprecated since version 1.48: Use
Snapd.PlugRef.get_plug
() orSnapd.SlotRef.get_slot
()
- get_plug()¶
- Returns:
a reference to a plug.
- Return type:
Get the plug this connection is made with.
New in version 1.48.
- get_plug_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 connected plug.
New in version 1.48.
- get_plug_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 the connected plug has.
New in version 1.48.
- get_slot()¶
- Returns:
a reference to a slot.
- Return type:
Get the slot this connection is made with.
New in version 1.48.
- get_slot_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 connected slot.
New in version 1.48.
- get_slot_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 the connected slot has.
New in version 1.48.
- get_snap()¶
- Returns:
a snap name.
- Return type:
Get the snap this connection is on.
New in version 1.0.
Deprecated since version 1.48: Use
Snapd.PlugRef.get_snap
() orSnapd.SlotRef.get_snap
()
Property Details¶
- Snapd.Connection.props.gadget¶
- Name:
gadget
- Type:
- Default Value:
- Flags:
True
if connection was made by the gadget snap
- Snapd.Connection.props.interface¶
- Name:
interface
- Type:
- Default Value:
- Flags:
Interface this connection uses
- Snapd.Connection.props.manual¶
- Name:
manual
- Type:
- Default Value:
- Flags:
True
if connection was made manually
- Snapd.Connection.props.name¶
- Name:
name
- Type:
- Default Value:
- Flags:
Name of connection/plug on snap
- Snapd.Connection.props.plug¶
- Name:
plug
- Type:
- Default Value:
- Flags:
Plug this connection is made with
- Snapd.Connection.props.plug_attrs¶
- Name:
plug-attrs
- Type:
- Default Value:
- Flags:
Attributes for connected plug
- Snapd.Connection.props.slot¶
- Name:
slot
- Type:
- Default Value:
- Flags:
Slot this connection is made with
- Snapd.Connection.props.slot_attrs¶
- Name:
slot-attrs
- Type:
- Default Value:
- Flags:
Attributes for connected slot