Documentation ¶
Overview ¶
Package jsonmessage is a stripped down version of github.com/docker/docker/pkg/jsonmessage without any transitive dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONError ¶
type JSONError struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` }
JSONError wraps a concrete Code and Message, `Code` is is a integer error code, `Message` is the error message.
type JSONMessage ¶
type JSONMessage struct { Status string `json:"status,omitempty"` Error *JSONError `json:"errorDetail,omitempty"` ErrorMessage string `json:"error,omitempty"` //deprecated }
func NewError ¶
func NewError(err error) JSONMessage
Click to show internal directories.
Click to hide internal directories.