# Packages
Package cache is a client-side caching mechanism.
Package clientcmd provides one stop shopping for building a working client from a fixed config,
from a .kubeconfig file, from command line flags, or from any merged combination.
Package portforward adds support for SSH-like port forwarding from the client's local host to remote containers.
Package record has all client logic for recording and reporting events.
Package remotecommand adds support for executing commands in containers, with support for separate stdin, stdout, and stderr streams, as well as TTY.
# Functions
BindClientConfigFlags registers a standard set of CLI flags for connecting to a Kubernetes API server.
No description provided by the author
ControllerHasDesiredReplicas returns a condition that will be true iff the desired replica count for a controller's ReplicaSelector equals the Replicas count.
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.
HTTPWrappersForConfig wraps a round tripper with any relevant layered behavior from the config.
IsConfigTransportTLS returns true iff the provided config will result in a protected connection to the server when it is passed to client.New() or client.RESTClientFor().
IsTimeout tests if this is a timeout error in the underlying transport.
IsUnexpectedStatusError determines if err is due to an unexpected status from the server.
LoadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData, KeyData, and CAFile fields, or returns an error.
No description provided by the author
New creates a Kubernetes client for the given config.
No description provided by the author
No description provided by the author
No description provided by the author
TODO: this structure is questionable, it should be using client.Config and overriding defaults.
NewOrDie creates a Kubernetes client and panics if the provided API version is not recognized.
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
No description provided by the author
No description provided by the author
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.
# Variables
ErrPodInfoNotAvailable may be returned when the requested pod info is not available.
# Structs
Client is the implementation of a Kubernetes client.
Config holds the common attributes that can be passed to a Kubernetes client on initialization.
Fake implements Interface.
No description provided by the author
FakeEndpoints implements EndpointInterface.
FakeEvents implements EventInterface.
FakeKubeletClient is a fake implementation of KubeletClient which returns an error when called.
FakeLimitRanges implements PodsInterface.
FakeNamespaces implements NamespacesInterface.
FakeNodes implements MinionInterface.
FakePods implements PodsInterface.
FakeReplicationControllers implements ReplicationControllerInterface.
FakeResourceQuotas implements ResourceQuotaInterface.
FakeRESTClient provides a fake RESTClient interface.
Fake implements SecretInterface.
Fake implements ServiceInterface.
No description provided by the author
HTTPKubeletClient is the default implementation of PodInfoGetter and KubeletHealthchecker, accesses the kubelet over HTTP.
No description provided by the author
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().
TLSClientConfig contains settings to enable transport layer security.
UnexpectedStatusError is returned as an error if a response's body and HTTP code don't make sense together.
# Interfaces
APIStatus is exposed by errors that can be converted to an api.Status object for finer grained details.
No description provided by the author
EndpointsInterface has methods to work with Endpoints resources.
EndpointsNamespacer has methods to work with Endpoints resources in a namespace.
EventInterface has methods to work with Event resources.
EventNamespacer can return an EventInterface for the given namespace.
FlagSet abstracts the flag interface for compatibility with both Golang "flag" and cobra pflags (Posix style).
HTTPClient is an interface for testing a request object.
Interface holds the methods for clients of Kubernetes, an interface to allow mock testing.
KubeletClient is an interface for all kubelet functionality.
KubeletHealthchecker is an interface for healthchecking kubelets.
LimitRangeInterface has methods to work with LimitRange resources.
LimitRangesNamespacer has methods to work with LimitRange resources in a namespace.
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
PodInfoGetter is an interface for things that can get information about a pod's containers.
PodInterface has methods to work with Pod resources.
PodsNamespacer has methods to work with Pod resources in a namespace.
ReplicationControllerInterface has methods to work with ReplicationController resources.
ReplicationControllersNamespacer has methods to work with ReplicationController resources in a namespace.
ResourceQuotaInterface has methods to work with ResourceQuota resources.
ResourceQuotasNamespacer has methods to work with ResourceQuota resources in a namespace.
No description provided by the author
No description provided by the author
ServiceInterface has methods to work with Service resources.
ServicesNamespacer has methods to work with Service resources in a namespace.
VersionInterface has a method to retrieve the server version.
# Type aliases
No description provided by the author