package
1.4.0-alpha.0
Repository: https://github.com/jim-minter/origin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

AllLocalIP4 returns all the IPv4 addresses that this host can be reached on.
No description provided by the author
No description provided by the author
No description provided by the author
DefaultLocalIP4 returns an IPv4 address that this host can be reached on.
No description provided by the author
Env returns an environment variable or a default value if not specified.
No description provided by the author
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.
GetLogLevel returns the current glog log level.
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.
No description provided by the author
IsTerminalReader returns whether the passed io.Reader is a terminal or not.
IsTerminalWriter returns whether the passed io.Writer is a terminal or not.
No description provided by the author
ListenAndServe starts a server that listens on the provided TCP mode (as supported by net.Listen).
ListenAndServeTLS starts a server that listens on the provided TCP mode (as supported by net.Listen).
No description provided by the author
No description provided by the author
NewGLogWriterV returns a new Writer that delegates to `glog.Info` at the desired level of verbosity.
ParseEnv parses the list of environment variables into kubernetes EnvVar.
No description provided by the author
PrivateKeysFromPEM extracts all blocks recognized as private keys into an output PEM encoded byte array, or returns an error.
PromptForBool prompts for user input of a boolean value.
PromptForPasswordString prompts for user input by disabling echo in terminal, useful for password prompt.
PromptForString takes an io.Reader and prompts for user input if it's a terminal, returning the result.
PromptForStringWithDefault prompts for user input but take a default in case nothing is provided.
RelativizePaths updates the given refs to be relative paths, relative to the given base directory.
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).
RequireNoArguments exits with a usage error if extra arguments are provided.
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.
No description provided by the author
TransportFor returns an http.Transport for the given ca and client cert (which may be empty strings).
TryListen tries to open a connection on the given port and returns true if it succeeded.
UnsecuredRoute will return a route with enough info so that it can direct traffic to the service provided by --service.
VersionedPrintObject handles printing an object in the appropriate version by looking at 'output-version' on the command.
WaitForSuccessfulDial attempts to connect to the given address, closing and returning nil on the first successful connection.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrExit is a marker interface for cli commands indicating that the response has been processed.
ErrorNoDefaultIP is returned when no suitable non-loopback address can be found.

# Interfaces

Mux is a standard mux interface for HTTP.

# Type aliases

No description provided by the author