util

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 23 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 GetKubeConfigPath added in v0.21.0

func GetKubeConfigPath() string

func GetPort added in v0.19.1

func GetPort() (string, error)

Ask the kernel for a free open port that is ready to use

func KillMountProcess added in v0.19.1

func KillMountProcess() 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