cranerror

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default ok code
	CodeOk = 0

	//Default error code
	CodeUndefined = "503-10001"

	//Node error code
	CodeErrorUpdateNodeMethod = "503-11302"
	CodeErrorNodeRole         = "503-11303"
	CodeErrorNodeAvailability = "503-11304"
	CodeGetNodeInfoError      = "503-11305"
)

Variables

This section is empty.

Functions

func NewError

func NewError(code string, message string) error

Types

type ContainerStatsStopError

type ContainerStatsStopError struct {
	ID  string
	Err error
}

func (*ContainerStatsStopError) Error

func (e *ContainerStatsStopError) Error() string

type CraneError

type CraneError struct {
	Code string `json:"Code"`
	Err  error  `json:"Err"`
}

func (*CraneError) Error

func (e *CraneError) Error() string

type NodeConnError

type NodeConnError struct {
	ID       string
	Endpoint string
	Err      error
}

func (*NodeConnError) Error

func (e *NodeConnError) Error() string

type ServicePortConflictError

type ServicePortConflictError struct {
	Name          string
	Namespace     string
	PublishedPort string
	Err           error
}

func (*ServicePortConflictError) Error

func (e *ServicePortConflictError) Error() string

Jump to

Keyboard shortcuts

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