digitalocean

package
v0.6.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(name string, configuration map[string]string, nodeLister corelistersv1.NodeLister) (autoscaling.Engine, error)

NewClient creates a new instance of the DigitalOcean Autoscaling Engine, or an error It is expected that we do not modify the name or configuration here as the caller may not have passed a DeepCopy

Types

type Engine

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

Engine is an instance of the DigitalOcean autoscaling engine

func (Engine) Name

func (e Engine) Name() string

Name returns the name of the engine

func (Engine) SetTargetNodeCount

func (e Engine) SetTargetNodeCount(nodeSelectors map[string]string, numNodes int, strategy string) (bool, error)

SetTargetNodeCount takes action to scale the target node pool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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