Documentation ¶
Index ¶
- type Nodes
- func (n *Nodes) Add(node *simulator.UnremovableNode)
- func (n *Nodes) AddReason(node *apiv1.Node, reason simulator.UnremovableReason)
- func (n *Nodes) AddTimeout(node *simulator.UnremovableNode, timeout time.Time)
- func (n *Nodes) AsList() []*simulator.UnremovableNode
- func (n *Nodes) Contains(nodeName string) bool
- func (n *Nodes) HasReason(nodeName string) bool
- func (n *Nodes) IsRecent(nodeName string) bool
- func (n *Nodes) Update(nodeInfos nodeInfoGetter, timestamp time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nodes ¶
type Nodes struct {
// contains filtered or unexported fields
}
Nodes tracks the state of cluster nodes that cannot be removed.
func (*Nodes) Add ¶
func (n *Nodes) Add(node *simulator.UnremovableNode)
Add adds an unremovable node.
func (*Nodes) AddReason ¶
func (n *Nodes) AddReason(node *apiv1.Node, reason simulator.UnremovableReason)
AddReason adds an unremovable node due to the specified reason.
func (*Nodes) AddTimeout ¶
func (n *Nodes) AddTimeout(node *simulator.UnremovableNode, timeout time.Time)
AddTimeout adds a new unremovable node with a timeout until which the node should be considered unremovable.
func (*Nodes) AsList ¶
func (n *Nodes) AsList() []*simulator.UnremovableNode
AsList returns a list of unremovable nodes.
Click to show internal directories.
Click to hide internal directories.