openstack

package
v0.0.0-...-5db00e0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

Backend represents the OpenStack backend.

func NewBackend

func NewBackend(conf config.Config) (*Backend, error)

NewBackend returns a new Backend instance.

func (*Backend) GetOffer

func (s *Backend) GetOffer(j *tes.Task) *scheduler.Offer

GetOffer returns an offer based on available OpenStack VM node instances.

func (*Backend) ShouldStartNode

func (s *Backend) ShouldStartNode(n *pbs.Node) bool

ShouldStartNode tells the scaler loop which nodes belong to this scheduler backend, basically.

func (*Backend) StartNode

func (s *Backend) StartNode(w *pbs.Node) error

StartNode calls out to OpenStack APIs to start a new node instance.

Jump to

Keyboard shortcuts

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