Documentation ¶
Index ¶
- Variables
- func ContainerAttachable(pod, container string) watchtools.ConditionFunc
- func ContainerReady(pod, container string, init, isTTY bool) watchtools.ConditionFunc
- func ContainerStreamable(pod, container string) watchtools.ConditionFunc
- func InitContainerAttachable(pod, container string) watchtools.ConditionFunc
- func InitContainerStreamable(pod, container string) watchtools.ConditionFunc
- func IsQueued(runName string) watchtools.ConditionFunc
- func LogQueuePosition(runName string) watchtools.ConditionFunc
- func LogRunPhase() watchtools.ConditionFunc
- func PodHandlerWrapper(name string, h podHandler) watchtools.ConditionFunc
Constants ¶
This section is empty.
Variables ¶
var PrematurelySucceededPodError = errors.New("pod prematurely succeeded")
Functions ¶
func ContainerAttachable ¶
func ContainerAttachable(pod, container string) watchtools.ConditionFunc
ContainerAttachable is an event handler that returns true if a pod container's TTY can be attached to, i.e. the container has started and is ready to handshake (therefore it should not have finished yet).
func ContainerReady ¶
func ContainerReady(pod, container string, init, isTTY bool) watchtools.ConditionFunc
ContainerReady returns an appropriate event handler for determining when pod is ready for attaching to or streaming from.
func ContainerStreamable ¶
func ContainerStreamable(pod, container string) watchtools.ConditionFunc
ContainerStreamable is an event handler that returns true if the pod Container's logs can be streamed, i.e. the container has at least started
func InitContainerAttachable ¶
func InitContainerAttachable(pod, container string) watchtools.ConditionFunc
InitContainerAttachable is an event handler that returns true if a pod initContainer's TTY can be attached to, i.e. the init container has started and is ready to handshake (therefore it should not have finished yet).
func InitContainerStreamable ¶
func InitContainerStreamable(pod, container string) watchtools.ConditionFunc
InitContainerStreamable is an event handler that returns true if the pod initContainer's logs can be streamed, i.e. the init container has at least started
func LogQueuePosition ¶
func LogQueuePosition(runName string) watchtools.ConditionFunc
Log queue position until run is at front of queue
func PodHandlerWrapper ¶
func PodHandlerWrapper(name string, h podHandler) watchtools.ConditionFunc
PodHandlerWrapper is a wrapper for creating handlers for pod events
Types ¶
This section is empty.