package
1.4.0-alpha.2
Repository: https://github.com/stackpointcloud/kubernetes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
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

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.
DeploymentHasDesiredReplicas returns a condition that will be true if and only if the desired replica count for a deployment equals its updated replicas count.
Returns the appropriate field label to use for name of the involved object as per the given API version.
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.
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
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
NewCertificates creates a new CertificatesClient for the given config.
NewCertificatesOrDie creates a new CertificatesClient for the given config and panics if there is an error in the 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.
No description provided by the author
No description provided by the author
NewRbac creates a new RbacClient for the given config.
NewRbacOrDie creates a new RbacClient for the given config and panics if there is an error in the config.
PodCompleted returns true if the pod has run to completion, false if the pod has not yet reached running state, or an error in any other case.
PodContainerRunning returns false until the named container has ContainerStatus running (at least once), and will return an error if the pod is deleted, runs to completion, or the container pod is not available.
PodNotPending returns true if the pod has left the pending state, false if it has not, or an error in any other case (such as if the pod was deleted).
PodRunning returns true if the pod is running, false if the pod has not yet reached running state, returns ErrPodCompleted if the pod has run to completion, or an error in any other case.
PodRunningAndReady returns true if the pod is running and ready, false if the pod has not yet reached those states, returns ErrPodCompleted if the pod has run to completion, or an error in any other case.
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.
RetryConflict executes the provided function repeatedly, retrying if the server returns a conflicting write.
ServiceAccountHasSecrets returns true if the service account has at least one secret, false if it does not, or an error.
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.

# Constants

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.
ErrPodCompleted is returned by PodRunning or PodContainerRunning to indicate that the pod has already reached completed state.

# Structs

AppsClient is used to interact with Kubernetes batch features.
AutoscalingClient is used to interact with Kubernetes autoscaling features.
BatchClient is used to interact with Kubernetes batch features.
No description provided by the author
Client is the implementation of a Kubernetes client.
No description provided by the author
ExtensionsClient is used to interact with experimental Kubernetes features.
No description provided by the author
NetworkPolicies implements NetworkPolicyNamespacer interface.
PolicyClient is used to interact with Kubernetes batch features.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
CertificateSigningRequestInterface has methods to work with CertificateSigningRequest resources.
Interface holds the methods for clients of Kubernetes to allow mock testing.
ClusterRoleBindingInterface has methods to work with ClusterRoleBinding resources.
ClusterRoleBindings has methods to work with ClusterRoleBinding resources in a namespace.
ClusterRoleInterface has methods to work with ClusterRole resources.
ClusterRoles has methods to work with ClusterRole resources in a namespace.
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.
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.
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
NetworkPolicyInterface exposes methods to work on NetworkPolicy resources.
NetworkPolicyNamespacer has methods to work with NetworkPolicy resources in a namespace.
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
PetSetInterface exposes methods to work on PetSet resources.
PetSetNamespacer has methods to work with PetSet resources in a namespace.
PodDisruptionBudgetInterface exposes methods to work on PodDisruptionBudget resources.
PodDisruptionBudgetNamespacer has methods to work with PodDisruptionBudget resources in a namespace.
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.
No description provided by the author
Interface holds the methods for clients of Kubernetes to allow mock testing.
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.
RoleBindingInterface has methods to work with RoleBinding resources.
RoleBindingsNamespacer has methods to work with RoleBinding resources in a namespace.
RoleInterface has methods to work with Role resources.
RolesNamespacer has methods to work with Role resources in a namespace.
ScaleInterface has methods to work with Scale (sub)resources.
No description provided by the author
ScheduledJobInterface exposes methods to work on ScheduledJob resources.
ScheduledJobsNamespacer has methods to work with ScheduledJob 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
ServiceInterface has methods to work with Service resources.
ServicesNamespacer has methods to work with Service resources in a namespace.
No description provided by the author
StorageClassInterface has methods to work with StorageClass resources.
No description provided by the author
ThirdPartyResourceNamespacer has methods to work with ThirdPartyResource resources in a namespace.