builtin

package
v0.0.0-...-7cedb2b Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2016 License: GPL-3.0 Imports: 9 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 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 NewGsettingsInterface

func NewGsettingsInterface() interfaces.Interface

NewGsettingsInterface returns a new "gsettings" interface.

func NewHomeInterface

func NewHomeInterface() interfaces.Interface

NewHomeInterface returns a new "home" 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 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 NewPulseAudioInterface

func NewPulseAudioInterface() interfaces.Interface

NewPulseAudioInterface returns a new "pulseaudio" 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 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 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 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 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 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 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(slot *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

Jump to

Keyboard shortcuts

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