Documentation ¶
Index ¶
Constants ¶
View Source
const APIVersion = "odo.openshift.io/v1alpha1"
APIVersion is the current API version we are using
View Source
const Kind = "Error"
Kind is what kind we should use in the machine readable output
Variables ¶
This section is empty.
Functions ¶
func MarshalJSONIndented ¶
MarshalJSONIndented returns indented json representation of obj
func OutputError ¶
func OutputError(machineOutput interface{})
OutputError outputs a "successful" machine-readable output format in json
func OutputSuccess ¶
func OutputSuccess(machineOutput interface{})
OutputSuccess outputs a "successful" machine-readable output format in json
Types ¶
type GenericError ¶
type GenericError struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Message string `json:"message"` }
GenericError for machine readable output error messages
type GenericSuccess ¶
type GenericSuccess struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Message string `json:"message"` }
GenericSuccess same as above, but copy-and-pasted just in case we change the output in the future
Click to show internal directories.
Click to hide internal directories.