errors

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

This section is empty.

Types

type ClusterError

type ClusterError struct {
	Reason  commonerrors.ClusterStatusError
	Message string
}

A more descriptive kind of error that represents an error condition that should be set in the Cluster.Status. The "Reason" field is meant for short, enum-style constants meant to be interpreted by clusters. The "Message" field is meant to be read by humans.

func CreateCluster

func CreateCluster(format string, args ...interface{}) *ClusterError

func DeleteCluster

func DeleteCluster(format string, args ...interface{}) *ClusterError

func InvalidClusterConfiguration

func InvalidClusterConfiguration(format string, args ...interface{}) *ClusterError

func (*ClusterError) Error

func (e *ClusterError) Error() string

type MachineError

type MachineError struct {
	Reason  commonerrors.MachineStatusError
	Message string
}

A more descriptive kind of error that represents an error condition that should be set in the Machine.Status. The "Reason" field is meant for short, enum-style constants meant to be interpreted by machines. The "Message" field is meant to be read by humans.

func CreateMachine

func CreateMachine(msg string, args ...interface{}) *MachineError

func DeleteMachine

func DeleteMachine(msg string, args ...interface{}) *MachineError

func InvalidMachineConfiguration

func InvalidMachineConfiguration(msg string, args ...interface{}) *MachineError

func UpdateMachine

func UpdateMachine(msg string, args ...interface{}) *MachineError

func (*MachineError) Error

func (e *MachineError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL