builtin

package
v0.0.0-...-677ed08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2016 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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) Name

func (iface *FwupdInterface) Name() string

Name of the FwupdInterface

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) Name

func (iface *GpioInterface) Name() string

Name of the GpioInterface

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL