Documentation
¶
Index ¶
- type BoolFileType
- func (t *BoolFileType) Name() string
- func (t *BoolFileType) SanitizeSkill(skill *skills.Skill) error
- func (t *BoolFileType) SanitizeSlot(skill *skills.Slot) error
- func (t *BoolFileType) SkillSecuritySnippet(skill *skills.Skill, securitySystem skills.SecuritySystem) ([]byte, error)
- func (t *BoolFileType) SlotSecuritySnippet(skill *skills.Skill, securitySystem skills.SecuritySystem) ([]byte, error)
- func (t *BoolFileType) String() string
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().