Documentation
¶
Index ¶
- Constants
- func Config(err error, op string) error
- func ConfigValidation(err error) error
- func Connection(err error, target string) error
- func Etcd(err error, op string, args ...interface{}) error
- func ExitCode(err error) int
- func KubeClient(err error, op string, args ...interface{}) error
- func NewConfigError(op string, format string, args ...interface{}) error
- func NewRuntimeError(op string, format string, args ...interface{}) error
- func NoKubeClient() error
- func Runtime(err error, op string, args ...interface{}) error
- func SSH(err error, op string, args ...interface{}) error
- type ConfigError
- type ConnectionError
- type CredentialsError
- type EtcdError
- type ExecError
- type KubeClientError
- type RuntimeError
- type SSHError
Constants ¶
const (
DefaultExitCode = 1
RuntimeErrorExitCode = 10
EtcdErrorExitCode = 11
KubeClientErrorExitCode = 12
SSHErrorExitCode = 13
ConnectionErrorExitCode = 14
ConfigErrorExitCode = 15
ExecErrorExitCode = 16
)
Variables ¶
This section is empty.
Functions ¶
func ConfigValidation ¶
func ConfigValidation(err error) error
ConfigValidation is a shortcut to quickly construct ConfigError
func Connection ¶
func Connection(err error, target string) error
Connection is a shortcut to quickly construct ConnectionError
func Etcd ¶
func Etcd(err error, op string, args ...interface{}) error
Etcd is a shortcut to quickly construct EtcdError
func KubeClient ¶
func KubeClient(err error, op string, args ...interface{}) error
KubeClient is a shortcut to quickly construct KubeClientError
func NewConfigError ¶
func NewConfigError(op string, format string, args ...interface{}) error
func NewRuntimeError ¶
func NewRuntimeError(op string, format string, args ...interface{}) error
func NoKubeClient ¶
func NoKubeClient() error
NoKubeClient is a shortcut to quickly construct KubeClientError with predefined not initialized error
Types ¶
type ConfigError ¶
type ConfigError struct {
Err error
Op string
}
ConfigError wraps configuration related errors
type ConnectionError ¶
type ConnectionError struct {
Err error
Target string
}
ConnectionError wraps connections related errors
type CredentialsError ¶
type CredentialsError struct {
Err error
Op string
Provider string
}
CredentialsError wraps cloud provider credentials related errors
type EtcdError ¶
type EtcdError struct {
Err error
Op string
}
EtcdError wraps etcd client related errors
type ExecError ¶
type ExecError struct {
Err error
Op string
Cmd string
Stderr string
}
ExecError wraps SSH related errors
type KubeClientError ¶
type KubeClientError struct {
Err error
Op string
}
KubeClientError wraps kubernetes client related errors
type RuntimeError ¶
type RuntimeError struct {
Err error
Op string
}
RuntimeError wraps kubernetes client related errors