nodepoolmanager

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDriverNotRegistered = errors.New("driver not found")
)

Functions

func RegisterDriver

func RegisterDriver(name string, driver Driver)

Types

type Driver

type Driver interface {
	Connect(config interface{}) (Provider, error)
}

type Provider

type Provider interface {
	ResizeNode(ctx context.Context, count int) error
	DeleteNodes(ctx context.Context, IDs []string) error
}

func New

func New(driver string, config interface{}) (Provider, error)

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

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