node

package
Version: v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrInitResources

type ErrInitResources struct {
	Message string
	Err     error
}

ErrInitResources to wrap error messages for all errors encountered during node initialization so the node can be de-registered on failure

func (*ErrInitResources) Error added in v1.0.7

func (e *ErrInitResources) Error() string

type Node

type Node interface {
	InitResources(resourceManager resource.ResourceManager, helper api.EC2APIHelper) error
	DeleteResources(resourceManager resource.ResourceManager, helper api.EC2APIHelper) error
	UpdateResources(resourceManager resource.ResourceManager, helper api.EC2APIHelper) error

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

func NewManagedNode added in v1.1.0

func NewManagedNode(log logr.Logger, nodeName string, instanceID string, os string) Node

NewManagedNode returns node managed by the controller

func NewUnManagedNode added in v1.1.0

func NewUnManagedNode() Node

NewUnManagedNode returns a node that's not managed by the controller

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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