Documentation ¶
Overview ¶
Package status implements errors returned by MachineAPIs. MachineAPIs service handlers should return an error created by this package, and machineAPIs clients should expect a corresponding error to be returned from the RPC call.
This package upholds the invariants that a non-nil error may not contain an OK code, and an OK code must result in a nil error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status implements error and Status,
func FromError ¶
FromError returns a Status representing err if it was produced from this package or has a method `GRPCStatus() *Status`. Otherwise, ok is false and a Status is returned with codes.Unknown and the original error message.
Click to show internal directories.
Click to hide internal directories.