node

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LifecycleManager

type LifecycleManager struct {
	// contains filtered or unexported fields
}

func NewLifecycleManager

func NewLifecycleManager(nodeName string, k8sClient kubernetes.Interface) *LifecycleManager

func (*LifecycleManager) CreateNodeObject

func (self *LifecycleManager) CreateNodeObject(nodeSkeletonFile string) (*corev1.Node, error)

func (*LifecycleManager) DeleteNode

func (self *LifecycleManager) DeleteNode(stop context.CancelFunc) error

func (*LifecycleManager) Run

func (self *LifecycleManager) Run(ctx context.Context, cancel context.CancelCauseFunc, n *corev1.Node)

type LifecycleManagerI

type LifecycleManagerI interface {
	CreateNodeObject(string) (*corev1.Node, error)
	Run(context.Context, context.CancelCauseFunc, *corev1.Node)
	DeleteNode(context.CancelFunc) error
}

Jump to

Keyboard shortcuts

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