spawner

package
v0.0.0-...-ceaa06b Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2013 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonSpawnPool

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

func NewAmazonSpawnPool

func NewAmazonSpawnPool(name, accessKey, secretKey, zone, privateKey string) (pool *AmazonSpawnPool, err error)

func (AmazonSpawnPool) Grow

func (pool AmazonSpawnPool) Grow(conf string) (err error)

Spawn instance will spawn an instance to whatever stack is specified in the environment

func (AmazonSpawnPool) Shrink

func (pool AmazonSpawnPool) Shrink() (err error)

Kill instance will kill a single instance in the environment

type SpawnPool

type SpawnPool interface {
	// Grows the pool by one instance
	Grow(conf string) (err error)
	// Shrinsk the pool one instance
	Shrink() (err error)
}

func GetSpawnPool

func GetSpawnPool(name string) (pool SpawnPool, err error)

GetSpawnPool will return spawn pool from the environment or etcd

Jump to

Keyboard shortcuts

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