nodeprovider

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 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 NodeProvider

type NodeProvider interface {
	// GetNodeConfig gets the node config with which the node will be inited
	GetNodeConfig() *api.NodeConfig

	// PopulateNodeConfigDefaults populates the node config with default values.
	// This doesn't require having aws Credentials or accessing any external services.
	PopulateNodeConfigDefaults()

	// ValidateConfig validates the node config with appropriate validations for the provider
	ValidateConfig() error

	// PreProcessDaemon runs a pre-init hook function if required by node provider. This could be SSM registration
	// for hybrid nodes
	PreProcessDaemon(ctx context.Context) error

	// GetDaemons returns daemons to be run for the node provider
	GetDaemons() ([]daemon.Daemon, error)

	// GetAspects returns the aspects to be configured for node provider
	GetAspects() []system.SystemAspect

	// Logger defines the logger for the node provider
	Logger() *zap.Logger

	// Cleanup runs post init cleanup if any are required by node provider.
	Cleanup() error

	configenricher.ConfigEnricher
	aws.Config
}

NodeProvider is an interface that defines functions that a nodeProvider should implement

Jump to

Keyboard shortcuts

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