handlers

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 IsQueued

func IsQueued(runName string) watchtools.ConditionFunc

Return true if run is queued

func LogQueuePosition

func LogQueuePosition(runName string) watchtools.ConditionFunc

Log queue position until run is at front of queue

func LogRunPhase

func LogRunPhase() watchtools.ConditionFunc

Log run's phase

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL