package
1.2.0-alpha.8
Repository: https://github.com/liugenping/kubernetes.git
Documentation: pkg.go.dev

# Packages

Package auth defines a file format for holding authentication information needed by clients of Kubernetes.
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.
This is made a separate package and should only be imported by tests, because it imports testapi.
Package portforward adds support for SSH-like port forwarding from the client's local host to remote containers.
Package remotecommand adds support for executing commands in containers, with support for separate stdin, stdout, and stderr streams, as well as TTY.
No description provided by the author

# Functions

No description provided by the author
ControllerHasDesiredReplicas returns a condition that will be true if and only if 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.
DeploymentHasDesiredReplicas returns a condition that will be true if and only if the desired replica count for a deployment equals its updated replicas count.
No description provided by the author
Returns the appropriate field label to use for name of the involved object as per the given API version.
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 client.New() or client.RESTClientFor().
IsTimeout tests if this is a timeout error in the underlying transport.
JobHasDesiredParallelism returns a condition that will be true if the desired parallelism count for a job equals the current active counts or is less by an appropriate successful/unsuccessful count.
LoadTLSFiles copies the data from the CertFile, KeyFile, and CAFile fields into the CertData, KeyData, and CAFile fields, or returns an error.
MatchesServerVersion queries the server to compares the build version (git hash) of the client with the server's build version.
NegotiateVersion queries the server's supported api versions to find a version that both client and server support.
New creates a Kubernetes client for the given config.
No description provided by the author
No description provided by the author
New creates a new DiscoveryClient for the given RESTClient.
NewDiscoveryClientForConfig creates a new DiscoveryClient for the given config.
NewDiscoveryClientForConfig creates a new DiscoveryClient for the given config.
NewExtensions creates a new ExtensionsClient for the given config.
NewExtensionsOrDie creates a new ExtensionsClient for the given config and panics if there is an error in the config.
NewInCluster is a shortcut for calling InClusterConfig() and then New().
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.
ReplicaSetHasDesiredReplicas returns a condition that will be true if and only if the desired replica count for a ReplicaSet's ReplicaSelector equals the Replicas count.
RESTClientFor returns a RESTClient that satisfies the requested attributes on a client Config object.
RetryConflict executes the provided function repeatedly, retrying if the server returns a conflicting write.
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
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
A constant that clients can use to refer in a field selector to the object name field.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultBackoff is the recommended backoff for a conflict where a client may be attempting to make an unrelated modification to a resource under active management by one or more controllers.
DefaultRetry is the recommended retry for a conflict where multiple clients are making changes to the same resource.

# Structs

AutoscalingClient is used to interact with Kubernetes autoscaling features.
Client is the implementation of a Kubernetes client.
Config holds the common attributes that can be passed to a Kubernetes client on initialization.
No description provided by the author
No description provided by the author
DiscoveryClient implements the functions that discover server-supported API groups, versions and resources.
ExtensionsClient is used to interact with experimental Kubernetes features.
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().
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
No description provided by the author
No description provided by the author
ComponentStatusInterface contains methods to retrieve ComponentStatus.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DaemonsSetsNamespacer has methods to work with DaemonSet resources in a namespace.
DeploymentInterface has methods to work with Deployment resources.
DeploymentsNamespacer has methods to work with Deployment resources in a namespace.
DiscoveryInterface holds the methods that discover server-supported API groups, versions and resources.
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.
Interface holds the experimental methods for clients of Kubernetes to allow mock testing.
FlagSet abstracts the flag interface for compatibility with both Golang "flag" and cobra pflags (Posix style).
HorizontalPodAutoscalerInterface has methods to work with HorizontalPodAutoscaler resources.
HorizontalPodAutoscalersNamespacer has methods to work with HorizontalPodAutoscaler resources in a namespace.
HTTPClient is an interface for testing a request object.
IngressInterface exposes methods to work on Ingress resources.
IngressNamespacer has methods to work with Ingress resources in a namespace.
Interface holds the methods for clients of Kubernetes, an interface to allow mock testing.
JobInterface exposes methods to work on Job resources.
JobsNamespacer has methods to work with Job resources in a namespace.
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
PersistentVolumeClaimInterface has methods to work with PersistentVolumeClaim resources.
PersistentVolumeClaimsNamespacer has methods to work with PersistentVolumeClaim resources in a namespace.
PersistentVolumeInterface has methods to work with PersistentVolume resources.
No description provided by the author
PodInterface has methods to work with Pod resources.
No description provided by the author
No description provided by the author
PodsNamespacer has methods to work with Pod resources in a namespace.
PodTemplateInterface has methods to work with PodTemplate resources.
PodTemplatesNamespacer has methods to work with PodTemplate resources in a namespace.
ReplicaSetInterface has methods to work with ReplicaSet resources.
ReplicaSetsNamespacer has methods to work with ReplicaSet 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.
ResponseWrapper is an interface for getting a response.
ScaleInterface has methods to work with Scale (sub)resources.
No description provided by the author
No description provided by the author
No description provided by the author
ServerGroupsInterface has methods for obtaining supported groups on the API server.
ServerResourcesInterface has methods for obtaining supported resources on the API server.
ServerVersionInterface has a method for retrieving the server's version.
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.
SwaggerSchemaInterface has a method to retrieve the swagger schema.
No description provided by the author
ThirdPartyResourceNamespacer has methods to work with ThirdPartyResource resources in a namespace.