Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotDefined = errors.New("notDefined") ErrNotImplemented = errors.New("notImplemented") ErrBadRequest = errors.New("badRequest") ErrInProgress = errors.New("inProgress") ErrBusy = errors.New("busy") ErrTimedOut = errors.New("timedOut") ErrFailed = errors.New("failed") ErrInternalError = errors.New("internalError") ErrUnknown = errors.New("unknown") )
View Source
var ( ServiceAction = &Service{ Kind: "Action", Version: "v1.0", URI: "/v1.0/action", } ServiceProbe = &Service{ Kind: "Probe", Version: "v1.0", URI: "/v1.0/probe", } )
Functions ¶
func Error2Type ¶
func Type2Error ¶
Types ¶
type Action ¶
type Action struct { Name string `json:"name"` Exec *ExecAction `json:"exec,omitempty"` TimeoutSeconds int32 `json:"timeoutSeconds,omitempty"` RetryPolicy *RetryPolicy `json:"retryPolicy,omitempty"` }
type ActionRequest ¶
type ActionResponse ¶
type ExecAction ¶
type Probe ¶
type Probe struct { Action string `json:"action"` InitialDelaySeconds int32 `json:"initialDelaySeconds,omitempty"` PeriodSeconds int32 `json:"periodSeconds,omitempty"` SuccessThreshold int32 `json:"successThreshold,omitempty"` FailureThreshold int32 `json:"failureThreshold,omitempty"` ReportPeriodSeconds *int32 `json:"reportPeriodSeconds,omitempty"` }
type ProbeEvent ¶
type RetryPolicy ¶
Click to show internal directories.
Click to hide internal directories.