Documentation ¶
Overview ¶
Package nodewatch implements Kubernetes node watcher.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeWatcher ¶
type NodeWatcher struct {
// contains filtered or unexported fields
}
NodeWatcher defines a NodeWatcher-based node watcher.
func NewNodeWatcher ¶
func NewNodeWatcher(client *kubernetes.Client, nodename string) *NodeWatcher
NewNodeWatcher creates new Kubernetes node watcher.
func (*NodeWatcher) Get ¶
func (r *NodeWatcher) Get() (*corev1.Node, error)
Get returns the Node resource.
func (*NodeWatcher) Nodename ¶
func (r *NodeWatcher) Nodename() string
Nodename returns the watched nodename.
Click to show internal directories.
Click to hide internal directories.