machineoutput

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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

func MarshalJSONIndented(obj interface{}) ([]byte, error)

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

Jump to

Keyboard shortcuts

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