errors

package
v4.0.0-0.14.0+incompat... Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeConfigFileSolutionWindows = `
Make sure that the value of the --config flag passed contains a valid path:
   --config=c:\path\to\valid\file
`
	KubeConfigFileSolutionUnix = `
Make sure that the value of the --config flag passed contains a valid path:
   --config=/path/to/valid/file
`
	KubeConfigSolutionUnix = `` /* 190-byte string literal not displayed */

	KubeConfigSolutionWindows = `` /* 187-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func ErrKubeConfigNotWriteable

func ErrKubeConfigNotWriteable(file string, isExplicitFile bool, err error) error

ErrKubeConfigNotWriteable is returned when the file pointed to by KUBECONFIG cannot be created or written to if isExplicitFile flag is true, the path to .kubeconfig was set using a --config=... flag

func NoProjectsExistMessage

func NoProjectsExistMessage(canRequestProjects bool, commandName string) string

NoProjectsExistMessage returns a message indicating that no projects have been created by the current user.

Types

type Error

type Error interface {
	error
	WithCause(error) Error
	WithSolution(string) Error
	WithDetails(string) Error
}

func NewError

func NewError(msg string, args ...interface{}) Error

Jump to

Keyboard shortcuts

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