package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev

# Packages

# Functions

AllLocalIP4 returns all the IPv4 addresses that this host can be reached on.
DefaultLocalIP4 returns an IPv4 address that this host can be reached on.
Env returns an environment variable or a default value if not specified.
GetCertificateFunc returns a function that can be used in tls.Config#GetCertificate Returns nil if len(certs) == 0.
GetDisplayFilename returns the absolute path of the filename as long as there was no error, otherwise it returns the filename as-is.
GetDistributionName returns an appropriate Kubernetes distribution name.
GetEnv returns an environment value if specified.
GetPlatformName returns an appropriate platform name for given binary name.
GetProductName chooses appropriate product for a binary name.
HostnameMatches returns true if the given hostname is matched by the given matchSpec.
HostnameMatchSpecCandidates returns a list of match specs that would match the provided hostname Returns nil if len(hostname) == 0.
InitLogrus sets the logrus trace level based on the glog trace level.
ListenAndServeTLS starts a server that listens on the provided TCP mode (as supported by net.Listen).
NewGLogWriterV returns a new Writer that delegates to `klog.Info` at the desired level of verbosity.
PrivateKeysFromPEM extracts all blocks recognized as private keys into an output PEM encoded byte array, or returns an error.
RelativizePathWithNoBacksteps updates the given refs to be relative paths, relative to the given base directory as long as they do not require backsteps.
ReplaceCommandName recursively processes the examples in a given command to change a hardcoded command name (like 'kubectl' to the appropriate target name).
ResolvePaths updates the given refs to be absolute paths, relative to the given base directory.
ResolveResource returns the resource type and name of the resourceString.
SiblingCommand returns a sibling command to the given command.
TryListen tries to open a connection on the given port and returns true if it succeeded.
WaitForSuccessfulDial attempts to connect to the given address, closing and returning nil on the first successful connection.

# Constants

# Variables

ErrorNoDefaultIP is returned when no suitable non-loopback address can be found.