digitalocean

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverName = "digitalocean"
)

Variables

View Source
var (
	ErrInvalidConfig          = errors.New("invalid config")
	ErrClusterNameIsRequired  = errors.New("digitalocean provider: cluster name is required")
	ErrNodePoolNameIsRequired = errors.New("digitalocean provider: node pool name is required")
	ErrTokenIsRequired        = errors.New("digitalocean provider: token is required")
)
View Source
var (
	ErrClusterNotFound  = errors.New("digitalocean provider: cluster not found")
	ErrNodePoolNotFound = errors.New("digitalocean provider: node pool not found")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Token        string
	ClusterName  string
	NodePoolName string
}

type Driver

type Driver struct{}

func (*Driver) Connect

func (p *Driver) Connect(config interface{}) (nodepoolmanager.Provider, error)

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(client *godo.Client, clusterName string, nodePoolName string) (*Provider, error)

func (*Provider) DeleteNodes

func (p *Provider) DeleteNodes(ctx context.Context, IDs []string) error

func (*Provider) ResizeNode

func (p *Provider) ResizeNode(ctx context.Context, count int) error

Jump to

Keyboard shortcuts

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