Documentation ¶
Index ¶
Constants ¶
View Source
const NodeClassLabel = "np.class"
View Source
const PodDurationLabel = "np.runDuration"
View Source
const PodPhaseLabel = "np.terminalPhase"
Variables ¶
This section is empty.
Functions ¶
func RunDuration ¶
Returns the specified run duration as declared in a well-known pod label. If left unset or the value cannot be parsed as a duration, defaults to 1 second.
Types ¶
type FakeNode ¶
type FakeNode interface { Name() string Class() string Start(client *kubernetes.Clientset) error Stop() error }
func NewFakeNode ¶
Click to show internal directories.
Click to hide internal directories.