Documentation ¶
Index ¶
- func Interfaces() []interfaces.Interface
- func NewBluetoothControlInterface() interfaces.Interface
- func NewCameraInterface() interfaces.Interface
- func NewCupsControlInterface() interfaces.Interface
- func NewFirewallControlInterface() interfaces.Interface
- func NewFuseSupportInterface() interfaces.Interface
- func NewGsettingsInterface() interfaces.Interface
- func NewHardwareObserveInterface() interfaces.Interface
- func NewHomeInterface() interfaces.Interface
- func NewKernelModuleControlInterface() interfaces.Interface
- func NewLibvirtInterface() interfaces.Interface
- func NewLocaleControlInterface() interfaces.Interface
- func NewLogObserveInterface() interfaces.Interface
- func NewMountObserveInterface() interfaces.Interface
- func NewNetworkBindInterface() interfaces.Interface
- func NewNetworkControlInterface() interfaces.Interface
- func NewNetworkInterface() interfaces.Interface
- func NewNetworkObserveInterface() interfaces.Interface
- func NewNetworkSetupObserveInterface() interfaces.Interface
- func NewOpenglInterface() interfaces.Interface
- func NewOpticalDriveInterface() interfaces.Interface
- func NewProcessControlInterface() interfaces.Interface
- func NewRemovableMediaInterface() interfaces.Interface
- func NewScreenInhibitControlInterface() interfaces.Interface
- func NewSnapdControlInterface() interfaces.Interface
- func NewSystemObserveInterface() interfaces.Interface
- func NewSystemTraceInterface() interfaces.Interface
- func NewTimeControlInterface() interfaces.Interface
- func NewTimeserverControlInterface() interfaces.Interface
- func NewTimezoneControlInterface() interfaces.Interface
- func NewTpmInterface() interfaces.Interface
- func NewUPowerObserveInterface() interfaces.Interface
- func NewUnity7Interface() interfaces.Interface
- func NewX11Interface() interfaces.Interface
- type BluezInterface
- func (iface *BluezInterface) AutoConnect() bool
- func (iface *BluezInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *BluezInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *BluezInterface) Name() string
- func (iface *BluezInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *BluezInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *BluezInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *BluezInterface) SanitizeSlot(slot *interfaces.Slot) error
- type BoolFileInterface
- func (iface *BoolFileInterface) AutoConnect() bool
- func (iface *BoolFileInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *BoolFileInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *BoolFileInterface) Name() string
- func (iface *BoolFileInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *BoolFileInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *BoolFileInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *BoolFileInterface) SanitizeSlot(slot *interfaces.Slot) error
- func (iface *BoolFileInterface) String() string
- type BrowserSupportInterface
- func (iface *BrowserSupportInterface) AutoConnect() bool
- func (iface *BrowserSupportInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *BrowserSupportInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *BrowserSupportInterface) Name() string
- func (iface *BrowserSupportInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *BrowserSupportInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *BrowserSupportInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *BrowserSupportInterface) SanitizeSlot(slot *interfaces.Slot) error
- type ContentInterface
- func (iface *ContentInterface) AutoConnect() bool
- func (iface *ContentInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *ContentInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *ContentInterface) Name() string
- func (iface *ContentInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *ContentInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *ContentInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *ContentInterface) SanitizeSlot(slot *interfaces.Slot) error
- type DockerInterface
- func (iface *DockerInterface) AutoConnect() bool
- func (iface *DockerInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *DockerInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *DockerInterface) Name() string
- func (iface *DockerInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *DockerInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *DockerInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *DockerInterface) SanitizeSlot(slot *interfaces.Slot) error
- type DockerSupportInterface
- func (iface *DockerSupportInterface) AutoConnect() bool
- func (iface *DockerSupportInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *DockerSupportInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *DockerSupportInterface) Name() string
- func (iface *DockerSupportInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *DockerSupportInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *DockerSupportInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *DockerSupportInterface) SanitizeSlot(slot *interfaces.Slot) error
- type FwupdInterface
- func (iface *FwupdInterface) AutoConnect() bool
- func (iface *FwupdInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *FwupdInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *FwupdInterface) Name() string
- func (iface *FwupdInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *FwupdInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *FwupdInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *FwupdInterface) SanitizeSlot(slot *interfaces.Slot) error
- type GpioInterface
- func (iface *GpioInterface) AutoConnect() bool
- func (iface *GpioInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *GpioInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *GpioInterface) Name() string
- func (iface *GpioInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *GpioInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *GpioInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *GpioInterface) SanitizeSlot(slot *interfaces.Slot) error
- func (iface *GpioInterface) String() string
- type HidrawInterface
- func (iface *HidrawInterface) AutoConnect() bool
- func (iface *HidrawInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *HidrawInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *HidrawInterface) Name() string
- func (iface *HidrawInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *HidrawInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *HidrawInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *HidrawInterface) SanitizeSlot(slot *interfaces.Slot) error
- func (iface *HidrawInterface) String() string
- type LocationControlInterface
- func (iface *LocationControlInterface) AutoConnect() bool
- func (iface *LocationControlInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *LocationControlInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *LocationControlInterface) Name() string
- func (iface *LocationControlInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *LocationControlInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *LocationControlInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *LocationControlInterface) SanitizeSlot(slot *interfaces.Slot) error
- type LocationObserveInterface
- func (iface *LocationObserveInterface) AutoConnect() bool
- func (iface *LocationObserveInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *LocationObserveInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *LocationObserveInterface) Name() string
- func (iface *LocationObserveInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *LocationObserveInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *LocationObserveInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *LocationObserveInterface) SanitizeSlot(slot *interfaces.Slot) error
- type LxdSupportInterface
- func (iface *LxdSupportInterface) AutoConnect() bool
- func (iface *LxdSupportInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *LxdSupportInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *LxdSupportInterface) Name() string
- func (iface *LxdSupportInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *LxdSupportInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *LxdSupportInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *LxdSupportInterface) SanitizeSlot(slot *interfaces.Slot) error
- type MirInterface
- func (iface *MirInterface) AutoConnect() bool
- func (iface *MirInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *MirInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *MirInterface) Name() string
- func (iface *MirInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *MirInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *MirInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *MirInterface) SanitizeSlot(slot *interfaces.Slot) error
- type ModemManagerInterface
- func (iface *ModemManagerInterface) AutoConnect() bool
- func (iface *ModemManagerInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *ModemManagerInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *ModemManagerInterface) Name() string
- func (iface *ModemManagerInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *ModemManagerInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *ModemManagerInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *ModemManagerInterface) SanitizeSlot(slot *interfaces.Slot) error
- type MprisInterface
- func (iface *MprisInterface) AutoConnect() bool
- func (iface *MprisInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *MprisInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *MprisInterface) Name() string
- func (iface *MprisInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *MprisInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *MprisInterface) SanitizePlug(slot *interfaces.Plug) error
- func (iface *MprisInterface) SanitizeSlot(slot *interfaces.Slot) error
- type NetworkManagerInterface
- func (iface *NetworkManagerInterface) AutoConnect() bool
- func (iface *NetworkManagerInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *NetworkManagerInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *NetworkManagerInterface) Name() string
- func (iface *NetworkManagerInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *NetworkManagerInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *NetworkManagerInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *NetworkManagerInterface) SanitizeSlot(slot *interfaces.Slot) error
- type PppInterface
- func (iface *PppInterface) AutoConnect() bool
- func (iface *PppInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *PppInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *PppInterface) Name() string
- func (iface *PppInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *PppInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *PppInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *PppInterface) SanitizeSlot(slot *interfaces.Slot) error
- type PulseAudioInterface
- func (iface *PulseAudioInterface) AutoConnect() bool
- func (iface *PulseAudioInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *PulseAudioInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *PulseAudioInterface) Name() string
- func (iface *PulseAudioInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *PulseAudioInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *PulseAudioInterface) SanitizePlug(slot *interfaces.Plug) error
- func (iface *PulseAudioInterface) SanitizeSlot(slot *interfaces.Slot) error
- type SerialPortInterface
- func (iface *SerialPortInterface) AutoConnect() bool
- func (iface *SerialPortInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *SerialPortInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *SerialPortInterface) Name() string
- func (iface *SerialPortInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *SerialPortInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *SerialPortInterface) SanitizePlug(plug *interfaces.Plug) error
- func (iface *SerialPortInterface) SanitizeSlot(slot *interfaces.Slot) error
- func (iface *SerialPortInterface) String() string
- type UDisks2Interface
- func (iface *UDisks2Interface) AutoConnect() bool
- func (iface *UDisks2Interface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *UDisks2Interface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, ...) ([]byte, error)
- func (iface *UDisks2Interface) Name() string
- func (iface *UDisks2Interface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *UDisks2Interface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
- func (iface *UDisks2Interface) SanitizePlug(slot *interfaces.Plug) error
- func (iface *UDisks2Interface) SanitizeSlot(slot *interfaces.Slot) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interfaces ¶
func Interfaces() []interfaces.Interface
Interfaces returns all of the built-in interfaces.
func NewBluetoothControlInterface ¶
func NewBluetoothControlInterface() interfaces.Interface
func NewCameraInterface ¶
func NewCameraInterface() interfaces.Interface
NewCameraInterface returns a new "camera" interface.
func NewCupsControlInterface ¶
func NewCupsControlInterface() interfaces.Interface
NewCupsControlInterface returns a new "cups" interface.
func NewFirewallControlInterface ¶
func NewFirewallControlInterface() interfaces.Interface
NewFirewallControlInterface returns a new "firewall-control" interface.
func NewFuseSupportInterface ¶
func NewFuseSupportInterface() interfaces.Interface
NewFuseControlInterface returns a new "fuse-support" interface.
func NewGsettingsInterface ¶
func NewGsettingsInterface() interfaces.Interface
NewGsettingsInterface returns a new "gsettings" interface.
func NewHardwareObserveInterface ¶
func NewHardwareObserveInterface() interfaces.Interface
NewHardwareObserveInterface returns a new "hardware-observe" interface.
func NewHomeInterface ¶
func NewHomeInterface() interfaces.Interface
NewHomeInterface returns a new "home" interface.
func NewKernelModuleControlInterface ¶
func NewKernelModuleControlInterface() interfaces.Interface
NewKernelModuleControlInterface returns a new "kernel-module" interface.
func NewLibvirtInterface ¶
func NewLibvirtInterface() interfaces.Interface
func NewLocaleControlInterface ¶
func NewLocaleControlInterface() interfaces.Interface
NewLocaleControlInterface returns a new "locale-control" interface.
func NewLogObserveInterface ¶
func NewLogObserveInterface() interfaces.Interface
NewLogObserveInterface returns a new "log-observe" interface.
func NewMountObserveInterface ¶
func NewMountObserveInterface() interfaces.Interface
NewMountObserveInterface returns a new "mount-observe" interface.
func NewNetworkBindInterface ¶
func NewNetworkBindInterface() interfaces.Interface
NewNetworkBindInterface returns a new "network-bind" interface.
func NewNetworkControlInterface ¶
func NewNetworkControlInterface() interfaces.Interface
NewNetworkControlInterface returns a new "network-control" interface.
func NewNetworkInterface ¶
func NewNetworkInterface() interfaces.Interface
NewNetworkInterface returns a new "network" interface.
func NewNetworkObserveInterface ¶
func NewNetworkObserveInterface() interfaces.Interface
NewNetworkObserveInterface returns a new "network-observe" interface.
func NewNetworkSetupObserveInterface ¶
func NewNetworkSetupObserveInterface() interfaces.Interface
NewNetworkSetupObserveInterface returns a new "network-setup-observe" interface.
func NewOpenglInterface ¶
func NewOpenglInterface() interfaces.Interface
NewOpenglInterface returns a new "opengl" interface.
func NewOpticalDriveInterface ¶
func NewOpticalDriveInterface() interfaces.Interface
NewOpticalDriveInterface returns a new "optical-drive" interface.
func NewProcessControlInterface ¶
func NewProcessControlInterface() interfaces.Interface
NewProcessControlInterface returns a new "process-control" interface.
func NewRemovableMediaInterface ¶
func NewRemovableMediaInterface() interfaces.Interface
NewRemovableMediaInterface returns a new "removable-media" interface.
func NewScreenInhibitControlInterface ¶
func NewScreenInhibitControlInterface() interfaces.Interface
NewScreenInhibitControlInterface returns a new "screen-inhibit-control" interface.
func NewSnapdControlInterface ¶
func NewSnapdControlInterface() interfaces.Interface
NewSnapdControlInterface returns a new "snapd-control" interface.
func NewSystemObserveInterface ¶
func NewSystemObserveInterface() interfaces.Interface
NewSystemObserveInterface returns a new "system-observe" interface.
func NewSystemTraceInterface ¶
func NewSystemTraceInterface() interfaces.Interface
NewSystemTraceInterface returns a new "system-trace" interface.
func NewTimeControlInterface ¶
func NewTimeControlInterface() interfaces.Interface
NewTimeDateControlInterface returns a new "time-control" interface.
func NewTimeserverControlInterface ¶
func NewTimeserverControlInterface() interfaces.Interface
NewTimeserverControlInterface returns a new "timeserver-control" interface.
func NewTimezoneControlInterface ¶
func NewTimezoneControlInterface() interfaces.Interface
NewTimezoneControlInterface returns a new "timezone-control" interface.
func NewTpmInterface ¶
func NewTpmInterface() interfaces.Interface
func NewUPowerObserveInterface ¶
func NewUPowerObserveInterface() interfaces.Interface
NewUPowerObserveInterface returns a new "upower-observe" interface.
func NewUnity7Interface ¶
func NewUnity7Interface() interfaces.Interface
NewUnity7Interface returns a new "unity7" interface.
func NewX11Interface ¶
func NewX11Interface() interfaces.Interface
NewX11Interface returns a new "x11" interface.
Types ¶
type BluezInterface ¶
type BluezInterface struct{}
func (*BluezInterface) AutoConnect ¶
func (iface *BluezInterface) AutoConnect() bool
func (*BluezInterface) ConnectedPlugSnippet ¶
func (iface *BluezInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BluezInterface) ConnectedSlotSnippet ¶
func (iface *BluezInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BluezInterface) Name ¶
func (iface *BluezInterface) Name() string
func (*BluezInterface) PermanentPlugSnippet ¶
func (iface *BluezInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BluezInterface) PermanentSlotSnippet ¶
func (iface *BluezInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BluezInterface) SanitizePlug ¶
func (iface *BluezInterface) SanitizePlug(plug *interfaces.Plug) error
func (*BluezInterface) SanitizeSlot ¶
func (iface *BluezInterface) SanitizeSlot(slot *interfaces.Slot) error
type BoolFileInterface ¶
type BoolFileInterface struct{}
BoolFileInterface is the type of all the bool-file interfaces.
func (*BoolFileInterface) AutoConnect ¶
func (iface *BoolFileInterface) AutoConnect() bool
AutoConnect returns true if plugs and slots should be implicitly auto-connected when an unambiguous connection candidate is available.
This interface does not auto-connect.
func (*BoolFileInterface) ConnectedPlugSnippet ¶
func (iface *BoolFileInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedPlugSnippet returns security snippet specific to a given connection between the bool-file plug and some slot. Applications associated with the plug gain permission to read, write and lock the designated file.
func (*BoolFileInterface) ConnectedSlotSnippet ¶
func (iface *BoolFileInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedSlotSnippet returns security snippet specific to a given connection between the bool-file slot and some plug. Applications associated with the slot don't gain any extra permissions.
func (*BoolFileInterface) Name ¶
func (iface *BoolFileInterface) Name() string
Name returns the name of the bool-file interface.
func (*BoolFileInterface) PermanentPlugSnippet ¶
func (iface *BoolFileInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentPlugSnippet returns the configuration snippet required to use a bool-file interface. Applications associated with the plug don't gain any extra permissions.
func (*BoolFileInterface) PermanentSlotSnippet ¶
func (iface *BoolFileInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentSlotSnippet returns security snippet permanently granted to bool-file slots. Applications associated with the slot, if the slot is a GPIO, gain permission to export, unexport and set direction of any GPIO pin.
func (*BoolFileInterface) SanitizePlug ¶
func (iface *BoolFileInterface) SanitizePlug(plug *interfaces.Plug) error
SanitizePlug checks and possibly modifies a plug.
func (*BoolFileInterface) SanitizeSlot ¶
func (iface *BoolFileInterface) SanitizeSlot(slot *interfaces.Slot) error
SanitizeSlot checks and possibly modifies a slot. Valid "bool-file" slots must contain the attribute "path".
func (*BoolFileInterface) String ¶
func (iface *BoolFileInterface) String() string
String returns the same value as Name().
type BrowserSupportInterface ¶
type BrowserSupportInterface struct{}
func (*BrowserSupportInterface) AutoConnect ¶
func (iface *BrowserSupportInterface) AutoConnect() bool
func (*BrowserSupportInterface) ConnectedPlugSnippet ¶
func (iface *BrowserSupportInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BrowserSupportInterface) ConnectedSlotSnippet ¶
func (iface *BrowserSupportInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BrowserSupportInterface) Name ¶
func (iface *BrowserSupportInterface) Name() string
func (*BrowserSupportInterface) PermanentPlugSnippet ¶
func (iface *BrowserSupportInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BrowserSupportInterface) PermanentSlotSnippet ¶
func (iface *BrowserSupportInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*BrowserSupportInterface) SanitizePlug ¶
func (iface *BrowserSupportInterface) SanitizePlug(plug *interfaces.Plug) error
func (*BrowserSupportInterface) SanitizeSlot ¶
func (iface *BrowserSupportInterface) SanitizeSlot(slot *interfaces.Slot) error
type ContentInterface ¶
type ContentInterface struct{}
ContentInterface allows sharing content between snaps
func (*ContentInterface) AutoConnect ¶
func (iface *ContentInterface) AutoConnect() bool
func (*ContentInterface) ConnectedPlugSnippet ¶
func (iface *ContentInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ContentInterface) ConnectedSlotSnippet ¶
func (iface *ContentInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ContentInterface) Name ¶
func (iface *ContentInterface) Name() string
func (*ContentInterface) PermanentPlugSnippet ¶
func (iface *ContentInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ContentInterface) PermanentSlotSnippet ¶
func (iface *ContentInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ContentInterface) SanitizePlug ¶
func (iface *ContentInterface) SanitizePlug(plug *interfaces.Plug) error
func (*ContentInterface) SanitizeSlot ¶
func (iface *ContentInterface) SanitizeSlot(slot *interfaces.Slot) error
type DockerInterface ¶
type DockerInterface struct{}
func (*DockerInterface) AutoConnect ¶
func (iface *DockerInterface) AutoConnect() bool
func (*DockerInterface) ConnectedPlugSnippet ¶
func (iface *DockerInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerInterface) ConnectedSlotSnippet ¶
func (iface *DockerInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerInterface) Name ¶
func (iface *DockerInterface) Name() string
func (*DockerInterface) PermanentPlugSnippet ¶
func (iface *DockerInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerInterface) PermanentSlotSnippet ¶
func (iface *DockerInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerInterface) SanitizePlug ¶
func (iface *DockerInterface) SanitizePlug(plug *interfaces.Plug) error
func (*DockerInterface) SanitizeSlot ¶
func (iface *DockerInterface) SanitizeSlot(slot *interfaces.Slot) error
type DockerSupportInterface ¶
type DockerSupportInterface struct{}
func (*DockerSupportInterface) AutoConnect ¶
func (iface *DockerSupportInterface) AutoConnect() bool
func (*DockerSupportInterface) ConnectedPlugSnippet ¶
func (iface *DockerSupportInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerSupportInterface) ConnectedSlotSnippet ¶
func (iface *DockerSupportInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerSupportInterface) Name ¶
func (iface *DockerSupportInterface) Name() string
func (*DockerSupportInterface) PermanentPlugSnippet ¶
func (iface *DockerSupportInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerSupportInterface) PermanentSlotSnippet ¶
func (iface *DockerSupportInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*DockerSupportInterface) SanitizePlug ¶
func (iface *DockerSupportInterface) SanitizePlug(plug *interfaces.Plug) error
func (*DockerSupportInterface) SanitizeSlot ¶
func (iface *DockerSupportInterface) SanitizeSlot(slot *interfaces.Slot) error
type FwupdInterface ¶
type FwupdInterface struct{}
FwupdInterface type
func (*FwupdInterface) AutoConnect ¶
func (iface *FwupdInterface) AutoConnect() bool
AutoConnect returns whether interface should be auto-connected by default
func (*FwupdInterface) ConnectedPlugSnippet ¶
func (iface *FwupdInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedPlugSnippet returns security snippets for plug at connection
func (*FwupdInterface) ConnectedSlotSnippet ¶
func (iface *FwupdInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedSlotSnippet returns security snippets for slot at connection
func (*FwupdInterface) PermanentPlugSnippet ¶
func (iface *FwupdInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentPlugSnippet - no slot snippets provided
func (*FwupdInterface) PermanentSlotSnippet ¶
func (iface *FwupdInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentSlotSnippet returns security snippets for slot at install
func (*FwupdInterface) SanitizePlug ¶
func (iface *FwupdInterface) SanitizePlug(plug *interfaces.Plug) error
SanitizePlug checks the plug definition is valid
func (*FwupdInterface) SanitizeSlot ¶
func (iface *FwupdInterface) SanitizeSlot(slot *interfaces.Slot) error
SanitizeSlot checks the slot definition is valid
type GpioInterface ¶
type GpioInterface struct{}
GpioInterface type
func (*GpioInterface) AutoConnect ¶
func (iface *GpioInterface) AutoConnect() bool
AutoConnect returns whether interface should be auto-connected by default
func (*GpioInterface) ConnectedPlugSnippet ¶
func (iface *GpioInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedPlugSnippet returns security snippets for plug at connection
func (*GpioInterface) ConnectedSlotSnippet ¶
func (iface *GpioInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedSlotSnippet - no slot snippets provided
func (*GpioInterface) PermanentPlugSnippet ¶
func (iface *GpioInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentPlugSnippet returns security snippets for plug at install
func (*GpioInterface) PermanentSlotSnippet ¶
func (iface *GpioInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentSlotSnippet - no slot snippets provided
func (*GpioInterface) SanitizePlug ¶
func (iface *GpioInterface) SanitizePlug(plug *interfaces.Plug) error
SanitizePlug checks the plug definition is valid
func (*GpioInterface) SanitizeSlot ¶
func (iface *GpioInterface) SanitizeSlot(slot *interfaces.Slot) error
SanitizeSlot checks the slot definition is valid
func (*GpioInterface) String ¶
func (iface *GpioInterface) String() string
String returns the same value as Name().
type HidrawInterface ¶
type HidrawInterface struct{}
HidrawInterface is the type for hidraw interfaces.
func (*HidrawInterface) AutoConnect ¶
func (iface *HidrawInterface) AutoConnect() bool
AutoConnect indicates whether this type of interface should allow autoconnect
func (*HidrawInterface) ConnectedPlugSnippet ¶
func (iface *HidrawInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedPlugSnippet returns security snippet specific to the plug
func (*HidrawInterface) ConnectedSlotSnippet ¶
func (iface *HidrawInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedSlotSnippet no extra permissions granted on connection
func (*HidrawInterface) Name ¶
func (iface *HidrawInterface) Name() string
Name of the hidraw interface.
func (*HidrawInterface) PermanentPlugSnippet ¶
func (iface *HidrawInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentPlugSnippet no permissions provided to plug permanently
func (*HidrawInterface) PermanentSlotSnippet ¶
func (iface *HidrawInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentSlotSnippet returns snippets granted on install
func (*HidrawInterface) SanitizePlug ¶
func (iface *HidrawInterface) SanitizePlug(plug *interfaces.Plug) error
SanitizePlug checks and possibly modifies a plug.
func (*HidrawInterface) SanitizeSlot ¶
func (iface *HidrawInterface) SanitizeSlot(slot *interfaces.Slot) error
SanitizeSlot checks validity of the defined slot
func (*HidrawInterface) String ¶
func (iface *HidrawInterface) String() string
type LocationControlInterface ¶
type LocationControlInterface struct{}
func (*LocationControlInterface) AutoConnect ¶
func (iface *LocationControlInterface) AutoConnect() bool
func (*LocationControlInterface) ConnectedPlugSnippet ¶
func (iface *LocationControlInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationControlInterface) ConnectedSlotSnippet ¶
func (iface *LocationControlInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationControlInterface) Name ¶
func (iface *LocationControlInterface) Name() string
func (*LocationControlInterface) PermanentPlugSnippet ¶
func (iface *LocationControlInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationControlInterface) PermanentSlotSnippet ¶
func (iface *LocationControlInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationControlInterface) SanitizePlug ¶
func (iface *LocationControlInterface) SanitizePlug(plug *interfaces.Plug) error
func (*LocationControlInterface) SanitizeSlot ¶
func (iface *LocationControlInterface) SanitizeSlot(slot *interfaces.Slot) error
type LocationObserveInterface ¶
type LocationObserveInterface struct{}
func (*LocationObserveInterface) AutoConnect ¶
func (iface *LocationObserveInterface) AutoConnect() bool
func (*LocationObserveInterface) ConnectedPlugSnippet ¶
func (iface *LocationObserveInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationObserveInterface) ConnectedSlotSnippet ¶
func (iface *LocationObserveInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationObserveInterface) Name ¶
func (iface *LocationObserveInterface) Name() string
func (*LocationObserveInterface) PermanentPlugSnippet ¶
func (iface *LocationObserveInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationObserveInterface) PermanentSlotSnippet ¶
func (iface *LocationObserveInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LocationObserveInterface) SanitizePlug ¶
func (iface *LocationObserveInterface) SanitizePlug(plug *interfaces.Plug) error
func (*LocationObserveInterface) SanitizeSlot ¶
func (iface *LocationObserveInterface) SanitizeSlot(slot *interfaces.Slot) error
type LxdSupportInterface ¶
type LxdSupportInterface struct{}
func (*LxdSupportInterface) AutoConnect ¶
func (iface *LxdSupportInterface) AutoConnect() bool
func (*LxdSupportInterface) ConnectedPlugSnippet ¶
func (iface *LxdSupportInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LxdSupportInterface) ConnectedSlotSnippet ¶
func (iface *LxdSupportInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LxdSupportInterface) Name ¶
func (iface *LxdSupportInterface) Name() string
func (*LxdSupportInterface) PermanentPlugSnippet ¶
func (iface *LxdSupportInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LxdSupportInterface) PermanentSlotSnippet ¶
func (iface *LxdSupportInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*LxdSupportInterface) SanitizePlug ¶
func (iface *LxdSupportInterface) SanitizePlug(plug *interfaces.Plug) error
func (*LxdSupportInterface) SanitizeSlot ¶
func (iface *LxdSupportInterface) SanitizeSlot(slot *interfaces.Slot) error
type MirInterface ¶
type MirInterface struct{}
func (*MirInterface) AutoConnect ¶
func (iface *MirInterface) AutoConnect() bool
func (*MirInterface) ConnectedPlugSnippet ¶
func (iface *MirInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MirInterface) ConnectedSlotSnippet ¶
func (iface *MirInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MirInterface) Name ¶
func (iface *MirInterface) Name() string
func (*MirInterface) PermanentPlugSnippet ¶
func (iface *MirInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MirInterface) PermanentSlotSnippet ¶
func (iface *MirInterface) PermanentSlotSnippet( slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MirInterface) SanitizePlug ¶
func (iface *MirInterface) SanitizePlug(plug *interfaces.Plug) error
func (*MirInterface) SanitizeSlot ¶
func (iface *MirInterface) SanitizeSlot(slot *interfaces.Slot) error
type ModemManagerInterface ¶
type ModemManagerInterface struct{}
func (*ModemManagerInterface) AutoConnect ¶
func (iface *ModemManagerInterface) AutoConnect() bool
func (*ModemManagerInterface) ConnectedPlugSnippet ¶
func (iface *ModemManagerInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ModemManagerInterface) ConnectedSlotSnippet ¶
func (iface *ModemManagerInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ModemManagerInterface) Name ¶
func (iface *ModemManagerInterface) Name() string
func (*ModemManagerInterface) PermanentPlugSnippet ¶
func (iface *ModemManagerInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ModemManagerInterface) PermanentSlotSnippet ¶
func (iface *ModemManagerInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*ModemManagerInterface) SanitizePlug ¶
func (iface *ModemManagerInterface) SanitizePlug(plug *interfaces.Plug) error
func (*ModemManagerInterface) SanitizeSlot ¶
func (iface *ModemManagerInterface) SanitizeSlot(slot *interfaces.Slot) error
type MprisInterface ¶
type MprisInterface struct{}
func (*MprisInterface) AutoConnect ¶
func (iface *MprisInterface) AutoConnect() bool
func (*MprisInterface) ConnectedPlugSnippet ¶
func (iface *MprisInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MprisInterface) ConnectedSlotSnippet ¶
func (iface *MprisInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MprisInterface) Name ¶
func (iface *MprisInterface) Name() string
func (*MprisInterface) PermanentPlugSnippet ¶
func (iface *MprisInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MprisInterface) PermanentSlotSnippet ¶
func (iface *MprisInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*MprisInterface) SanitizePlug ¶
func (iface *MprisInterface) SanitizePlug(slot *interfaces.Plug) error
func (*MprisInterface) SanitizeSlot ¶
func (iface *MprisInterface) SanitizeSlot(slot *interfaces.Slot) error
type NetworkManagerInterface ¶
type NetworkManagerInterface struct{}
func (*NetworkManagerInterface) AutoConnect ¶
func (iface *NetworkManagerInterface) AutoConnect() bool
func (*NetworkManagerInterface) ConnectedPlugSnippet ¶
func (iface *NetworkManagerInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*NetworkManagerInterface) ConnectedSlotSnippet ¶
func (iface *NetworkManagerInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*NetworkManagerInterface) Name ¶
func (iface *NetworkManagerInterface) Name() string
func (*NetworkManagerInterface) PermanentPlugSnippet ¶
func (iface *NetworkManagerInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*NetworkManagerInterface) PermanentSlotSnippet ¶
func (iface *NetworkManagerInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*NetworkManagerInterface) SanitizePlug ¶
func (iface *NetworkManagerInterface) SanitizePlug(plug *interfaces.Plug) error
func (*NetworkManagerInterface) SanitizeSlot ¶
func (iface *NetworkManagerInterface) SanitizeSlot(slot *interfaces.Slot) error
type PppInterface ¶
type PppInterface struct{}
func (*PppInterface) AutoConnect ¶
func (iface *PppInterface) AutoConnect() bool
func (*PppInterface) ConnectedPlugSnippet ¶
func (iface *PppInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PppInterface) ConnectedSlotSnippet ¶
func (iface *PppInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PppInterface) Name ¶
func (iface *PppInterface) Name() string
func (*PppInterface) PermanentPlugSnippet ¶
func (iface *PppInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PppInterface) PermanentSlotSnippet ¶
func (iface *PppInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PppInterface) SanitizePlug ¶
func (iface *PppInterface) SanitizePlug(plug *interfaces.Plug) error
func (*PppInterface) SanitizeSlot ¶
func (iface *PppInterface) SanitizeSlot(slot *interfaces.Slot) error
type PulseAudioInterface ¶
type PulseAudioInterface struct{}
func (*PulseAudioInterface) AutoConnect ¶
func (iface *PulseAudioInterface) AutoConnect() bool
func (*PulseAudioInterface) ConnectedPlugSnippet ¶
func (iface *PulseAudioInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PulseAudioInterface) ConnectedSlotSnippet ¶
func (iface *PulseAudioInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PulseAudioInterface) Name ¶
func (iface *PulseAudioInterface) Name() string
func (*PulseAudioInterface) PermanentPlugSnippet ¶
func (iface *PulseAudioInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PulseAudioInterface) PermanentSlotSnippet ¶
func (iface *PulseAudioInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*PulseAudioInterface) SanitizePlug ¶
func (iface *PulseAudioInterface) SanitizePlug(slot *interfaces.Plug) error
func (*PulseAudioInterface) SanitizeSlot ¶
func (iface *PulseAudioInterface) SanitizeSlot(slot *interfaces.Slot) error
type SerialPortInterface ¶
type SerialPortInterface struct{}
SerialPortInterface is the type for serial port interfaces.
func (*SerialPortInterface) AutoConnect ¶
func (iface *SerialPortInterface) AutoConnect() bool
AutoConnect indicates whether this type of interface should allow autoconnect
func (*SerialPortInterface) ConnectedPlugSnippet ¶
func (iface *SerialPortInterface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedPlugSnippet returns security snippet specific to the plug
func (*SerialPortInterface) ConnectedSlotSnippet ¶
func (iface *SerialPortInterface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
ConnectedSlotSnippet no extra permissions granted on connection
func (*SerialPortInterface) Name ¶
func (iface *SerialPortInterface) Name() string
Name of the serial-port interface.
func (*SerialPortInterface) PermanentPlugSnippet ¶
func (iface *SerialPortInterface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentPlugSnippet no permissions provided to plug permanently
func (*SerialPortInterface) PermanentSlotSnippet ¶
func (iface *SerialPortInterface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
PermanentSlotSnippet returns snippets granted on install
func (*SerialPortInterface) SanitizePlug ¶
func (iface *SerialPortInterface) SanitizePlug(plug *interfaces.Plug) error
SanitizePlug checks and possibly modifies a plug.
func (*SerialPortInterface) SanitizeSlot ¶
func (iface *SerialPortInterface) SanitizeSlot(slot *interfaces.Slot) error
SanitizeSlot checks validity of the defined slot
func (*SerialPortInterface) String ¶
func (iface *SerialPortInterface) String() string
type UDisks2Interface ¶
type UDisks2Interface struct{}
func (*UDisks2Interface) AutoConnect ¶
func (iface *UDisks2Interface) AutoConnect() bool
func (*UDisks2Interface) ConnectedPlugSnippet ¶
func (iface *UDisks2Interface) ConnectedPlugSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*UDisks2Interface) ConnectedSlotSnippet ¶
func (iface *UDisks2Interface) ConnectedSlotSnippet(plug *interfaces.Plug, slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*UDisks2Interface) Name ¶
func (iface *UDisks2Interface) Name() string
func (*UDisks2Interface) PermanentPlugSnippet ¶
func (iface *UDisks2Interface) PermanentPlugSnippet(plug *interfaces.Plug, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*UDisks2Interface) PermanentSlotSnippet ¶
func (iface *UDisks2Interface) PermanentSlotSnippet(slot *interfaces.Slot, securitySystem interfaces.SecuritySystem) ([]byte, error)
func (*UDisks2Interface) SanitizePlug ¶
func (iface *UDisks2Interface) SanitizePlug(slot *interfaces.Plug) error
func (*UDisks2Interface) SanitizeSlot ¶
func (iface *UDisks2Interface) SanitizeSlot(slot *interfaces.Slot) error
Source Files ¶
- all.go
- bluetooth_control.go
- bluez.go
- bool_file.go
- browser_support.go
- camera.go
- common.go
- content.go
- cups_control.go
- docker.go
- docker_support.go
- firewall_control.go
- fuse_support.go
- fwupd.go
- gpio.go
- gsettings.go
- hardware_observe.go
- hidraw.go
- home.go
- kernel_module_control.go
- libvirt.go
- locale_control.go
- location_control.go
- location_observe.go
- log_observe.go
- lxd_support.go
- mir.go
- modem_manager.go
- mount_observe.go
- mpris.go
- network.go
- network_bind.go
- network_control.go
- network_manager.go
- network_observe.go
- network_setup_observe.go
- opengl.go
- optical_drive.go
- ppp.go
- process_control.go
- pulseaudio.go
- removable_media.go
- screen_inhibit_control.go
- serial_port.go
- snapd_control.go
- system_observe.go
- system_trace.go
- time_control.go
- timeserver_control.go
- timezone_control.go
- tpm.go
- udisks2.go
- unity7.go
- upower_observe.go
- utils.go
- x11.go