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 ¶
View Source
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 ¶
ConfigValidation is a shortcut to quickly construct ConfigError
func Connection ¶
Connection is a shortcut to quickly construct ConnectionError
func KubeClient ¶
KubeClient is a shortcut to quickly construct KubeClientError
func NewConfigError ¶
func NewRuntimeError ¶
func NoKubeClient ¶
func NoKubeClient() error
NoKubeClient is a shortcut to quickly construct KubeClientError with predefined not initialized error
Types ¶
type ConfigError ¶
ConfigError wraps configuration related errors
func (ConfigError) Error ¶
func (e ConfigError) Error() string
func (ConfigError) Unwrap ¶
func (e ConfigError) Unwrap() error
type ConnectionError ¶
ConnectionError wraps connections related errors
func (ConnectionError) Error ¶
func (e ConnectionError) Error() string
func (ConnectionError) Unwrap ¶
func (e ConnectionError) Unwrap() error
type CredentialsError ¶
CredentialsError wraps cloud provider credentials related errors
func (CredentialsError) Error ¶
func (e CredentialsError) Error() string
func (CredentialsError) Unwrap ¶
func (e CredentialsError) Unwrap() error
type KubeClientError ¶
KubeClientError wraps kubernetes client related errors
func (KubeClientError) Error ¶
func (e KubeClientError) Error() string
func (KubeClientError) Unwrap ¶
func (e KubeClientError) Unwrap() error
type RuntimeError ¶
RuntimeError wraps kubernetes client related errors
func (RuntimeError) Error ¶
func (e RuntimeError) Error() string
func (RuntimeError) Unwrap ¶
func (e RuntimeError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.