machineoutput

package
v1.0.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 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 OutputError

func OutputError(machineOutput Error)

OutputError outputs a "successful" machine-readable output format in json

func OutputSuccess

func OutputSuccess(machineOutput Success)

OutputSuccess outputs a "successful" machine-readable output format in json

Types

type Error

type Error struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Message           string `json:"message"`
}

Error for machine readable output error messages

type Success

type Success struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Message           string `json:"message"`
}

Success 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