package
12.0.0+incompatible
Repository: https://github.com/kubernetes/client-go.git
Documentation: pkg.go.dev
# Functions
AnonymousClientConfig returns a copy of the given config with all user credentials (cert/key, bearer token, and username/password) and custom transports (WrapTransport, Transport) removed.
CopyConfig returns a copy of the given config.
DefaultKubernetesUserAgent returns a User-Agent string built from static global vars.
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.
DefaultVersionedAPIPathFor constructs the default path for the given group version, assuming the given API path, following the standard conventions of the Kubernetes API.
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().
IsValidPathSegmentName validates the name can be safely encoded as a path segment.
IsValidPathSegmentPrefix validates the name can be used as a prefix for a name which will be encoded as a path segment It does not check for exact matches with disallowed names, since an arbitrary suffix might make the name valid.
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.
RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config object.
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.
ValidatePathSegmentName validates the name can be safely encoded as a path segment.
# Variables
NameMayNotBe specifies strings that cannot be used as names specified as path segments (like the REST API or etcd store).
NameMayNotContain specifies substrings that cannot be used in names specified as path segments (like the REST API or etcd store).
# Structs
Config holds the common attributes that can be passed to a Kubernetes client on initialization.
ImpersonationConfig has all the available impersonation options.
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().
+k8s:deepcopy-gen=true 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
AuthProviderConfigPersister allows a plugin to persist configuration info for just itself.
HTTPClient is an interface for testing a request object.
Interface captures the set of operations for generically interacting with Kubernetes REST apis.
ResponseWrapper is an interface for getting a response.
# Type aliases
Factory generates an AuthProvider plugin.