util

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2017 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatError

func FormatError(err error) (string, error)

func MarshallError

func MarshallError(errMsg, service, version string) ([]byte, error)

func MaybePrintKubectlDownloadMsg added in v0.13.0

func MaybePrintKubectlDownloadMsg()

func MaybeReportErrorAndExit

func MaybeReportErrorAndExit(errToReport error)

func PromptUserForAccept

func PromptUserForAccept(r io.Reader) bool

func ReportError

func ReportError(err error, url string) error

func UploadError

func UploadError(b []byte, url string) error

Types

type Message

type Message struct {
	Message        string `json:"message"`
	ServiceContext `json:"serviceContext"`
}

type ServiceContext

type ServiceContext struct {
	Service string `json:"service"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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