helpers

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultErrorExitCode = 1
)

Variables

View Source
var ErrExit = fmt.Errorf("exit")

ErrExit may be passed to CheckError to instruct it to output nothing but exit with status code 1.

Functions

func CheckErr

func CheckErr(err error)

CheckErr prints a user friendly error to STDERR and exits with a non-zero exit code. Unrecognized errors will be printed with an "error: " prefix.

This method is generic to the command in use and may be used by non-Kubectl commands.

func GetCtrlAdvertisedAddress added in v0.29.0

func GetCtrlAdvertisedAddress() string

func GetCtrlAdvertisedPort added in v0.29.0

func GetCtrlAdvertisedPort() string

func GetCtrlBindAddress added in v0.29.0

func GetCtrlBindAddress() string

func GetCtrlDatabaseFile added in v1.1.0

func GetCtrlDatabaseFile() string

func GetCtrlEdgeAdvertisedAddress added in v0.28.2

func GetCtrlEdgeAdvertisedAddress() string

func GetCtrlEdgeAdvertisedPort added in v0.28.2

func GetCtrlEdgeAdvertisedPort() string

func GetCtrlEdgeAltAdvertisedAddress added in v0.29.0

func GetCtrlEdgeAltAdvertisedAddress() string

func GetCtrlEdgeBindAddress added in v0.29.0

func GetCtrlEdgeBindAddress() string

func GetCtrlEdgeIdentityEnrollmentDuration added in v0.28.2

func GetCtrlEdgeIdentityEnrollmentDuration() time.Duration

func GetCtrlEdgeRouterEnrollmentDuration added in v0.28.2

func GetCtrlEdgeRouterEnrollmentDuration() time.Duration

func GetEdgeRouterIpOvderride added in v0.29.0

func GetEdgeRouterIpOvderride() string

func GetRouterAdvertisedAddress added in v0.29.0

func GetRouterAdvertisedAddress() string

func GetRouterSans added in v0.29.0

func GetRouterSans() string

func GetZitiEdgeRouterC added in v0.29.0

func GetZitiEdgeRouterC() string

func GetZitiEdgeRouterDnsSvcIpRange added in v1.1.0

func GetZitiEdgeRouterDnsSvcIpRange() string

func GetZitiEdgeRouterL added in v0.29.0

func GetZitiEdgeRouterL() string

func GetZitiEdgeRouterListenerBindPort

func GetZitiEdgeRouterListenerBindPort() string

func GetZitiEdgeRouterO added in v0.29.0

func GetZitiEdgeRouterO() string

func GetZitiEdgeRouterOU added in v0.29.0

func GetZitiEdgeRouterOU() string

func GetZitiEdgeRouterPort

func GetZitiEdgeRouterPort() string

func GetZitiEdgeRouterResolver added in v1.1.0

func GetZitiEdgeRouterResolver() string

func GetZitiEdgeRouterST added in v0.29.0

func GetZitiEdgeRouterST() string

func GetZitiHome

func GetZitiHome() string

func HomeDir

func HomeDir() string

func HostnameOrNetworkName added in v0.28.2

func HostnameOrNetworkName() string

func JFrogAPIKey

func JFrogAPIKey() string

func NormalizePath

func NormalizePath(input string) string

NormalizePath replaces windows \ with / which windows allows for

func StandardErrorMessage

func StandardErrorMessage(err error) (string, bool)

StandardErrorMessage translates common errors into a human readable message, or returns false if the error is not one of the recognized types. It may also log extended information to glog.

This method is generic to the command in use and may be used by non-Kubectl commands.

func WorkingDir

func WorkingDir() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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