Documentation ¶
Index ¶
- Constants
- Variables
- func CheckErr(err error)
- func GetCtrlAdvertisedAddress() string
- func GetCtrlAdvertisedPort() string
- func GetCtrlBindAddress() string
- func GetCtrlEdgeAdvertisedAddress() string
- func GetCtrlEdgeAdvertisedPort() string
- func GetCtrlEdgeAltAdvertisedAddress() string
- func GetCtrlEdgeBindAddress() string
- func GetCtrlEdgeIdentityEnrollmentDuration() time.Duration
- func GetCtrlEdgeRouterEnrollmentDuration() time.Duration
- func GetEdgeRouterIpOvderride() string
- func GetRouterAdvertisedAddress() string
- func GetRouterSans() string
- func GetZitiEdgeRouterC() string
- func GetZitiEdgeRouterL() string
- func GetZitiEdgeRouterListenerBindPort() string
- func GetZitiEdgeRouterO() string
- func GetZitiEdgeRouterOU() string
- func GetZitiEdgeRouterPort() string
- func GetZitiEdgeRouterST() string
- func GetZitiHome() string
- func HomeDir() string
- func HostnameOrNetworkName() string
- func JFrogAPIKey() string
- func NormalizePath(input string) string
- func StandardErrorMessage(err error) (string, bool)
- func WorkingDir() (string, error)
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 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 GetCtrlEdgeRouterEnrollmentDuration ¶ added in v0.28.2
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 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 GetZitiEdgeRouterST ¶ added in v0.29.0
func GetZitiEdgeRouterST() string
func GetZitiHome ¶
func GetZitiHome() string
func HostnameOrNetworkName ¶ added in v0.28.2
func HostnameOrNetworkName() string
func JFrogAPIKey ¶
func JFrogAPIKey() string
func NormalizePath ¶
NormalizePath replaces windows \ with / which windows allows for
func StandardErrorMessage ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.