Categoryk8s.io/kubectlpkgpolymorphichelpers
package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/kubectl.git
Documentation: pkg.go.dev

# Functions

GetFirstPod returns a pod matching the namespace and label selector and the number of all pods that match the label selector.
GetPodList returns a PodList matching the namespace and label selector.
HistoryViewerFor returns an implementation of HistoryViewer interface for the given schema kind.
No description provided by the author
RollbackerFor returns an implementation of Rollbacker interface for the given schema kind.
SelectorsForObject returns the pod label selector for a given object.
StatusViewerFor returns a StatusViewer for the resource specified by kind.

# Constants

No description provided by the author

# Variables

AllPodLogsForObjectFn gives a way to easily override the function for unit testing if needed.
AttachablePodForObjectFn gives a way to easily override the function for unit testing if needed.
CanBeExposedFn gives a way to easily override the function for unit testing if needed.
HistoryViewerFn gives a way to easily override the function for unit testing if needed.
LogsForObjectFn gives a way to easily override the function for unit testing if needed.
MapBasedSelectorForObjectFn gives a way to easily override the function for unit testing if needed.
MultiProtocolsForObjectFn gives a way to easily override the function for unit testing if needed.
ObjectPauserFn gives a way to easily override the function for unit testing if needed.
ObjectRestarterFn gives a way to easily override the function for unit testing if needed.
ObjectResumerFn gives a way to easily override the function for unit testing if needed.
PortsForObjectFn gives a way to easily override the function for unit testing if needed.
ProtocolsForObjectFn gives a way to easily override the function for unit testing if needed Deprecated: use MultiProtocolsForObjectFn instead.
RollbackerFn gives a way to easily override the function for unit testing if needed.
StatusViewerFn gives a way to easily override the function for unit testing if needed.
UpdatePodSpecForObjectFn gives a way to easily override the function for unit testing if needed.

# Structs

No description provided by the author
No description provided by the author
DaemonSetStatusViewer implements the StatusViewer interface.
No description provided by the author
No description provided by the author
DeploymentStatusViewer implements the StatusViewer interface.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StatefulSetStatusViewer implements the StatusViewer interface.

# Interfaces

HistoryViewer provides an interface for resources have historical information.
Rollbacker provides an interface for resources that can be rolled back.
StatusViewer provides an interface for resources that have rollout status.

# Type aliases

AllPodLogsForObjectFunc is a function type that can tell you how to get logs for a runtime.object.
AttachablePodForObjectFunc is a function type that can tell you how to get the pod for which to attach a given object.
CanBeExposedFunc is a function type that can tell you whether a given GroupKind is capable of being exposed.
HistoryViewerFunc is a function type that can tell you how to view change history.
LogsForObjectFunc is a function type that can tell you how to get logs for a runtime.object.
MapBasedSelectorForObjectFunc will call the provided function on mapping the baesd selector for object, return "" if object is not supported, or return an error.
MultiProtocolsWithForObjectFunc will call the provided function on the protocols for the object, return nil-map if no protocols for the object, or return an error.
ObjectPauserFunc is a function type that marks the object in a given info as paused.
ObjectRestarterFunc is a function type that updates an annotation in a deployment to restart it..
ObjectResumerFunc is a function type that marks the object in a given info as resumed.
PortsForObjectFunc returns the ports associated with the provided object.
ProtocolsForObjectFunc will call the provided function on the protocols for the object, return nil-map if no protocols for the object, or return an error.
RollbackerFunc gives a way to change the rollback version of the specified RESTMapping type.
StatusViewerFunc is a function type that can tell you how to print rollout status.
UpdatePodSpecForObjectFunc will call the provided function on the pod spec this object supports, return false if no pod spec is supported, or return an error.