Documentation
¶
Index ¶
- Constants
- type Error
- func BadURL(urlStr string, e error) Error
- func ConflictingDemands(msg string) Error
- func EmptyValue(key string, value interface{}) Error
- func InvalidPort(str string) Error
- func MustBeLoopbackURL(url *url.URL) Error
- func NotCIDR(str string) Error
- func NotHostname(str string) Error
- func NotIPv4(str string) Error
- func NotValidKeepalivePeriod(str string) Error
- func NotValidKeepaliveTimeout(str string) Error
- func NotValidNetworkType(key string, value interface{}) Error
- func Unconfirmed(str string) Error
- func UnknownApplicationError(e error) Error
- func UnknownCLIError(e error) Error
- func UnknownFileIOError(e error) Error
- func UnknownGRPCError(e error) Error
- func UnknownSysError(e error) Error
Constants ¶
const ApplicationError = 3000
ApplicationError error group indicates application related errors. Starting with error code 3xxx.
const CLIError = 2000
CLIError error group indicates command related errors. Starting with error code 2xxx.
const ErrBadURL = 3003
ErrBadURL indicates that given url string can not be parsed.
const ErrConflictingDemands = 3006
ErrConflictingDemands indicates that users demands are conflicting with each other.
const ErrEmptyValue = 3004
ErrEmptyValue indicates that given value is empty.
const ErrInvalidPort = 3009
ErrInvalidPort indicates that given value is not a valid port number.
const ErrMustBeLoopbackURL = 3002
ErrMustBeLoopbackURL indicates that given url does not resolv to a known looback ip addr.
const ErrNotCIDR = 3008
ErrNotCIDR indicates that given value is not a CIDR.
const ErrNotHostname = 3007
ErrNotHostname indicates that given value is not an hostname.
const ErrNotIPv4 = 3005
ErrNotIPv4 indicates that given value is not an IPv4.
const ErrNotValidKeepalivePeriod = 3012
ErrNotValidKeepalivePeriod indicates that supplied keepalive period is invalid
const ErrNotValidKeepaliveTimeout = 3013
ErrNotValidKeepaliveTimeout indicates that supplied keepalive timeout is invalid
const ErrNotValidNetworkType = 3011
ErrNotValidNetworkType indicates that supplied network type is invalid.
const ErrUnconfirmed = 3010
ErrUnconfirmed indicates a UI confirmation dialog is cancelled by the user.
const ErrUnknownApplicationError = 3001
ErrUnknownApplicationError indicates an unknown application error.
const ErrUnknownCLIError = 2001
ErrUnknownCLIError indicates an unknown cli error.
const ErrUnknownFileIOError = 1003
ErrUnknownFileIOError indicates an unknown File IO error.
const ErrUnknownGRPCError = 1002
ErrUnknownGRPCError indicates an unknown gRPC error.
const ErrUnknownSysError = 1001
ErrUnknownSysError indicates an unknown system error.
const SystemError = 1000
SystemError error group indicates system related errors. Starting with error code 1xxx.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Message string `json:"message"` Args map[string]interface{} `json:"args"` Code int `json:"code"` }
Error ...
func NotValidKeepalivePeriod ¶ added in v0.2.8
NotValidKeepalivePeriod ...
func NotValidKeepaliveTimeout ¶ added in v0.2.8
NotValidKeepaliveTimeout ...
func NotValidNetworkType ¶
NotValidNetworkType ...
func UnknownApplicationError ¶
UnknownApplicationError ...