node

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInitResources = fmt.Errorf("failed to initalize resources")
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	AddOrUpdateNode(v1Node *v1.Node) error
	DeleteNode(nodeName string) error
	GetNode(nodeName string) (node Node, managed bool)
}

func NewNodeManager

func NewNodeManager(logger logr.Logger, provider []provider.ResourceProvider, ec2APIHelper api.EC2APIHelper, k8sWrapper k8s.K8sWrapper) Manager

NewNodeManager returns a new node manager

type Node

type Node interface {
	InitResources(resourceProviders []provider.ResourceProvider, helper api.EC2APIHelper) error
	DeleteResources(resourceProviders []provider.ResourceProvider, helper api.EC2APIHelper) error
	UpdateResources(resourceProviders []provider.ResourceProvider, helper api.EC2APIHelper) error

	UpdateCustomNetworkingSpecs(subnetID string, securityGroup []string)
	IsReady() bool
}

func NewNode

func NewNode(log logr.Logger, nodeName string, instanceId string, os string) Node

NewNode returns a new node object

Jump to

Keyboard shortcuts

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