Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Control ¶
Control holds the config for one Miniserver control
func (*Control) Validate ¶
func (c *Control) Validate() ControlError
Validate returns an error if a control contains invalid data
type ControlError ¶
ControlError implements GetType() wich is used in tests to test the validation.
type InvalidAuthKeyError ¶ added in v0.3.0
type InvalidAuthKeyError struct {
Name string
}
InvalidAuthKeyError is an error type for invalid authKeys
func (*InvalidAuthKeyError) Error ¶ added in v0.3.0
func (e *InvalidAuthKeyError) Error() string
func (*InvalidAuthKeyError) GetType ¶ added in v0.3.0
func (e *InvalidAuthKeyError) GetType() string
GetType returns a string containing the error Type
type InvalidCategoryError ¶
type InvalidCategoryError struct {
Category string
}
InvalidCategoryError is an error type for invalid categories
func (*InvalidCategoryError) Error ¶
func (e *InvalidCategoryError) Error() string
func (*InvalidCategoryError) GetType ¶
func (e *InvalidCategoryError) GetType() string
GetType returns a string containing the error Type
type InvalidCommandError ¶
InvalidCommandError is an error type for invalid commands
func (*InvalidCommandError) Error ¶
func (e *InvalidCommandError) Error() string
func (*InvalidCommandError) GetType ¶
func (e *InvalidCommandError) GetType() string
GetType returns a string containing the error Type
type InvalidControlNameError ¶ added in v0.2.0
type InvalidControlNameError struct {
Name string
}
InvalidControlNameError is an error type for invalid commands
func (*InvalidControlNameError) Error ¶ added in v0.2.0
func (e *InvalidControlNameError) Error() string
func (*InvalidControlNameError) GetType ¶ added in v0.2.0
func (e *InvalidControlNameError) GetType() string
GetType returns a string containing the error Type
type NoAuthKeysError ¶ added in v0.3.0
type NoAuthKeysError struct {
Name string
}
NoAuthKeysError is an error type for invalid authKeys
func (*NoAuthKeysError) Error ¶ added in v0.3.0
func (e *NoAuthKeysError) Error() string
func (*NoAuthKeysError) GetType ¶ added in v0.3.0
func (e *NoAuthKeysError) GetType() string
GetType returns a string containing the error Type