util

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 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(goos string, out io.Writer)

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 LookPath added in v0.17.0

type LookPath func(filename string) (string, error)

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