package
0.0.0-20240604055142-425648ea8796
Repository: https://github.com/samba-in-kubernetes/samba-operator.git
Documentation: pkg.go.dev

# Functions

ExitCode returns an non-successful exit code value for a given error, and a boolean set to true if the exit code is based on the error itself.
NewBufferedCommandHandler returns a new BufferedCommandHandler.
NewTestClient return a new kube util test client.
NewTestExec returns a new TestExec pointer.
PodIsReady returns true if a pod is running and containers are ready.
WaitForAllPodReady will for all pods selected to be ready, up to the deadline specified by the context, if the context lacks a deadline the call will block indefinitely.
WaitForAnyPodExists will wait for a pod to exist, up to the deadline specified by the context, if the context lacks a deadline the call will block indefinitely.
WaitForAnyPodReady will wait for a pod to be ready, up to the deadline specified by the context, if the context lacks a deadline the call will block indefinitely.

# Variables

ErrNoMatchingPods indicates a selector didn't match any pods.
ErrTooFewMatchingPods indicates a selector should have matched more pods than were selected.
ErrTooManyMatchingPods indicates a selector should have matched fewer pods than were selected.
TypedClientScheme is the scheme specific to our typed object client.

# Structs

BufferedCommandHandler uses byte buffers to save command output.
DirectSource interfaces are used to specify k8s resources directly from a ReadCloser stream.
FileSource selects a file path and an optional namespace where the file contains one or more k8s resource.
MutatingSource uses another input source and applies a custom Mutate function to change the objects read from the source.
PodCommand identifies a pod and a container and a command to run.
PodFetchOptions controls what set of pods will be fetched.
TestClient is a helper for doing common things for our tests easily in kubernetes.
TestExec is used to execute CommandRequests.

# Interfaces

APIObject can be used to stand in for any API object.
CommandHandler interfaces provide parameters for running a command on a pod.
InputSource interfaces are used to specify k8s resources.
MutatingInputSource are input sources that can arbitrarily change the objects read from the input.
TypedObjectClient can be used to interact with non-core typed objects dynamically.