provider

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceProvider

type ResourceProvider interface {
	// InitResource initializes the resource provider
	InitResource(instance ec2.EC2Instance) error
	// DeInitResources de initializes the resource provider
	DeInitResource(instance ec2.EC2Instance) error
	// UpdateResourceCapacity updates the resource capacity
	UpdateResourceCapacity(instance ec2.EC2Instance) error
	// SubmitAsyncJob submits a job to the worker
	SubmitAsyncJob(job interface{})
	// ProcessAsyncJob processes a job form the worker queue
	ProcessAsyncJob(job interface{}) (ctrl.Result, error)
	// GetPool returns the warm pool for resources that support warm pool
	GetPool(nodeName string) (pool.Pool, bool)
	// IsInstanceSupported returns true if an instance type is supported by the provider
	IsInstanceSupported(instance ec2.EC2Instance) bool
	// Introspect allows introspection of all nodes for the given resource
	Introspect() interface{}
	// IntrospectNode allows introspection of a node for the given resource
	IntrospectNode(node string) interface{}
}

ResourceProvider is the provider interface that each resource managed by the controller has to implement

Directories

Path Synopsis
ip
eni

Jump to

Keyboard shortcuts

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