Documentation ¶
Index ¶
- func Interfaces() []interfaces.Interface
- func NewCupsControlInterface() interfaces.Interface
- func NewFirewallControlInterface() interfaces.Interface
- func NewGsettingsInterface() interfaces.Interface
- func NewHomeInterface() 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 NewOpenglInterface() interfaces.Interface
- func NewPulseAudioInterface() interfaces.Interface
- func NewSnapdControlInterface() interfaces.Interface
- func NewSystemObserveInterface() interfaces.Interface
- func NewTimeserverControlInterface() interfaces.Interface
- func NewTimezoneControlInterface() 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(slot *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(slot *interfaces.Plug) error
- func (iface *BoolFileInterface) SanitizeSlot(slot *interfaces.Slot) error
- func (iface *BoolFileInterface) 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(slot *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(slot *interfaces.Plug) error
- func (iface *LocationObserveInterface) 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(slot *interfaces.Plug) error
- func (iface *ModemManagerInterface) 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(slot *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(slot *interfaces.Plug) error
- func (iface *PppInterface) 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 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 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(slot *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(slot *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 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(slot *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(slot *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(slot *interfaces.Plug) error
func (*ModemManagerInterface) SanitizeSlot ¶
func (iface *ModemManagerInterface) 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(slot *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(slot *interfaces.Plug) error
func (*PppInterface) SanitizeSlot ¶
func (iface *PppInterface) SanitizeSlot(slot *interfaces.Slot) error
Source Files ¶
- all.go
- bluez.go
- bool_file.go
- common.go
- cups_control.go
- firewall_control.go
- gsettings.go
- home.go
- locale_control.go
- location_control.go
- location_observe.go
- log_observe.go
- modem_manager.go
- mount_observe.go
- network.go
- network_bind.go
- network_control.go
- network_manager.go
- network_observe.go
- opengl.go
- ppp.go
- pulseaudio.go
- snapd_control.go
- system_observe.go
- timeserver_control.go
- timezone_control.go
- unity7.go
- utils.go
- x11.go