Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + const AfterConnectHooksEdge + const ConnectTaskEdge + var DebugAutoConnectCheck func(*policy.ConnectCandidate, interfaces.SideArity, error) + func CheckInterfaces(st *state.State, snapInfo *snap.Info, deviceCtx snapstate.DeviceContext) error + func Connect(st *state.State, plugSnap, plugName, slotSnap, slotName string) (*state.TaskSet, error) + func ConnectionStates(st *state.State) (connStateByRef map[string]ConnectionState, err error) + func Disconnect(st *state.State, conn *interfaces.Connection) (*state.TaskSet, error) + func Forget(st *state.State, repo *interfaces.Repository, connRef *interfaces.ConnRef) (*state.TaskSet, error) + func MockConnectRetryTimeout(d time.Duration) (restore func()) + func MockSecurityBackends(be []interfaces.SecurityBackend) func() + func MockSnapMapper(new SnapMapper) (restore func()) + func OnSnapLinkageChanged(st *state.State, instanceName string) error + func RemapSnapFromRequest(snapName string) string + func RemapSnapFromState(snapName string) string + func RemapSnapToState(snapName string) string + func SystemSnapName() string + type ConnectionState struct + Auto bool + ByGadget bool + DynamicPlugAttrs map[string]interface{} + DynamicSlotAttrs map[string]interface{} + HotplugGone bool + Interface string + StaticPlugAttrs map[string]interface{} + StaticSlotAttrs map[string]interface{} + Undesired bool + func (c ConnectionState) Active() bool + type CoreCoreSystemMapper struct + func (m *CoreCoreSystemMapper) RemapSnapFromRequest(snapName string) string + func (m *CoreCoreSystemMapper) SystemSnapName() string + type CoreSnapdSystemMapper struct + func (m *CoreSnapdSystemMapper) RemapSnapFromRequest(snapName string) string + func (m *CoreSnapdSystemMapper) RemapSnapFromState(snapName string) string + func (m *CoreSnapdSystemMapper) RemapSnapToState(snapName string) string + func (m *CoreSnapdSystemMapper) SystemSnapName() string + type ErrAlreadyConnected struct + Connection interfaces.ConnRef + func (e ErrAlreadyConnected) Error() string + type HotplugSlotInfo struct + HotplugGone bool + HotplugKey snap.HotplugKey + Interface string + Name string + StaticAttrs map[string]interface{} + type IdentityMapper struct + func (m *IdentityMapper) RemapSnapFromRequest(snapName string) string + func (m *IdentityMapper) RemapSnapFromState(snapName string) string + func (m *IdentityMapper) RemapSnapToState(snapName string) string + type InterfaceManager struct + func Manager(s *state.State, hookManager *hookstate.HookManager, runner *state.TaskRunner, ...) (*InterfaceManager, error) + func (m *InterfaceManager) ConnectionStates() (connStateByRef map[string]ConnectionState, err error) + func (m *InterfaceManager) DisableUDevMonitor() + func (m *InterfaceManager) Ensure() error + func (m *InterfaceManager) MockObservedDevicePath(devPath, ifaceName string, hotplugKey snap.HotplugKey) func() + func (m *InterfaceManager) Repository() *interfaces.Repository + func (m *InterfaceManager) ResolveDisconnect(plugSnapName, plugName, slotSnapName, slotName string, forget bool) ([]*interfaces.ConnRef, error) + func (m *InterfaceManager) StartUp() error + func (m *InterfaceManager) Stop() + type SnapMapper interface + RemapSnapFromRequest func(snapName string) string + RemapSnapFromState func(snapName string) string + RemapSnapToState func(snapName string) string + SystemSnapName func() string