Documentation ¶
Index ¶
- type Kube
- type Lock
- type Node
- func (node *Node) ClearAnnotation(annotation string) error
- func (node *Node) GetAnnotation(annotation string) (string, bool, error)
- func (node *Node) GetCondition(conditionType corev1.NodeConditionType) (condition corev1.NodeCondition, exists bool, err error)
- func (node *Node) HasCondition(conditionType corev1.NodeConditionType) (bool, error)
- func (node *Node) InitCondition(conditionType corev1.NodeConditionType) error
- func (node *Node) SetAnnotation(annotation string, value string) error
- func (node *Node) SetCondition(conditions ...corev1.NodeCondition) error
- func (node *Node) SetSchedulableIfAnnotated(annotation string) (changed bool, err error)
- func (node *Node) SetUnschedulable(unschedulable bool) error
- func (node *Node) String() string
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct {
// contains filtered or unexported fields
}
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) ClearAnnotation ¶
func (*Node) GetAnnotation ¶
func (*Node) GetCondition ¶
func (node *Node) GetCondition(conditionType corev1.NodeConditionType) (condition corev1.NodeCondition, exists bool, err error)
func (*Node) HasCondition ¶
func (node *Node) HasCondition(conditionType corev1.NodeConditionType) (bool, error)
func (*Node) InitCondition ¶
func (node *Node) InitCondition(conditionType corev1.NodeConditionType) error
func (*Node) SetCondition ¶
func (node *Node) SetCondition(conditions ...corev1.NodeCondition) error
func (*Node) SetSchedulableIfAnnotated ¶
set node to schedulable if test-and-clear annotation
func (*Node) SetUnschedulable ¶
Click to show internal directories.
Click to hide internal directories.