types

package
v0.0.0-...-921daf7 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolFileType

type BoolFileType struct{}

BoolFileType is the type of all the bool-file skills.

func (*BoolFileType) Name

func (t *BoolFileType) Name() string

Name returns the name of the bool-file type.

func (*BoolFileType) SanitizeSkill

func (t *BoolFileType) SanitizeSkill(skill *skills.Skill) error

SanitizeSkill checks and possibly modifies a skill. Valid "bool-file" skills must contain the attribute "path".

func (*BoolFileType) SanitizeSlot

func (t *BoolFileType) SanitizeSlot(skill *skills.Slot) error

SanitizeSlot checks and possibly modifies a skill slot.

func (*BoolFileType) SkillSecuritySnippet

func (t *BoolFileType) SkillSecuritySnippet(skill *skills.Skill, securitySystem skills.SecuritySystem) ([]byte, error)

SkillSecuritySnippet returns the configuration snippet required to provide a bool-file skill. Producers gain control over exporting, importing GPIOs as well as controlling the direction of particular pins.

func (*BoolFileType) SlotSecuritySnippet

func (t *BoolFileType) SlotSecuritySnippet(skill *skills.Skill, securitySystem skills.SecuritySystem) ([]byte, error)

SlotSecuritySnippet returns the configuration snippet required to use a bool-file skill. Consumers gain permission to read, write and lock the designated file.

func (*BoolFileType) String

func (t *BoolFileType) String() string

String returns the same value as Name().

Jump to

Keyboard shortcuts

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