package
1.5.0-alpha.0
Repository: https://github.com/jbeda/kubernetes.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DefaultKubernetesUserAgent returns the default user agent that clients can use.
DefaultServerURL converts a host, host:port, or URL string to the default base server API path to use with a Client at a given API version following the standard conventions for a Kubernetes API.
No description provided by the author
HTTPWrappersForConfig wraps a round tripper with any relevant layered behavior from the config.
InClusterConfig returns a config object which uses the service account kubernetes gives to pods.
IsConfigTransportTLS returns true if and only if the provided config will result in a protected connection to the server when it is passed to restclient.RESTClientFor().
LoadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData, KeyData, and CAFile fields, or returns an error.
NewRequest creates a new request helper object for accessing runtime.Objects on a server.
NewRESTClient creates a new RESTClient.
No description provided by the author
RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config object.
ServerAPIVersions returns the GroupVersions supported by the API server.
SetKubernetesDefaults sets default values on the provided client config for accessing the Kubernetes API or returns an error if any of the defaults are impossible or invalid.
TLSConfigFor returns a tls.Config that will provide the transport level security defined by the provided Config.
TransportFor returns an http.RoundTripper that will provide the authentication or transport level security defined by the provided Config.
UnversionedRESTClientFor is the same as RESTClientFor, except that it allows the config.Version to be empty.

# Constants

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

# Structs

Config holds the common attributes that can be passed to a Kubernetes client on initialization.
No description provided by the author
NoBackoff is a stub implementation, can be used for mocking or else as a default.
Request allows for building up a request to a server in a chained fashion.
RequestConstructionError is returned when there's an error assembling a request.
RESTClient imposes common Kubernetes API conventions on a set of resource paths.
Result contains the result of calling Request.Do().
No description provided by the author
TLSClientConfig contains settings to enable transport layer security.
URLBackoff struct implements the semantics on top of Backoff which we need for URL specific exponential backoff.

# Interfaces

No description provided by the author
AuthProviderConfigPersister allows a plugin to persist configuration info for just itself.
No description provided by the author
HTTPClient is an interface for testing a request object.
ResponseWrapper is an interface for getting a response.

# Type aliases

Factory generates an AuthProvider plugin.