Documentation ¶
Overview ¶
Package schema holds structs for reading and writing interface-related state data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnState ¶
type ConnState struct { Auto bool `json:"auto,omitempty" yaml:"auto"` ByGadget bool `json:"by-gadget,omitempty" yaml:"by-gadget"` Interface string `json:"interface,omitempty" yaml:"interface"` // Undesired tracks connections that were manually disconnected after being auto-connected, // so that they are not automatically reconnected again in the future. Undesired bool `json:"undesired,omitempty" yaml:"undesired"` StaticPlugAttrs map[string]interface{} `json:"plug-static,omitempty" yaml:"plug-static,omitempty"` DynamicPlugAttrs map[string]interface{} `json:"plug-dynamic,omitempty" yaml:"plug-dynamic,omitempty"` StaticSlotAttrs map[string]interface{} `json:"slot-static,omitempty" yaml:"slot-static,omitempty"` DynamicSlotAttrs map[string]interface{} `json:"slot-dynamic,omitempty" yaml:"slot-dynamic,omitempty"` // Hotplug-related attributes: HotplugGone indicates a connection that // disappeared because the device was removed, but may potentially be // restored in the future if we see the device again. HotplugKey is the // key of the associated device; it's empty for connections of regular // slots. HotplugGone bool `json:"hotplug-gone,omitempty" yaml:"hotplug-gone,omitempty"` HotplugKey snap.HotplugKey `json:"hotplug-key,omitempty" yaml:"hotplug-key,omitempty"` }
ConnState holds properties of an interface connection.
Click to show internal directories.
Click to hide internal directories.