pkg

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2014 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.1.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Communicator

type Communicator interface {
	Run(command string) string
}

type Config

type Config struct {
	Defaults *cfgDefaults
	Nodes    []*cfgNode
}

type Node

type Node struct {
	Communicator Communicator
	ID           string
	Status       string
	Hostname     string
	Host         string
	Port         string
	Provider     Provider
	Provisioners []Provisioner
}

func (*Node) GetCommunicator

func (n *Node) GetCommunicator() Communicator

TODO Change this

func (*Node) TruncID

func (n *Node) TruncID() string

type NodeInfo

type NodeInfo struct {
	ID       string
	Hostname string
	Host     string
	Port     string
}

type Provider

type Provider interface {
	Up(hostname string) (*NodeInfo, error)
	Stop(hostname, ID string) error
	Destroy(hostname, ID string) error
}

type Provisioner

type Provisioner interface {
	Run(node *Node)
}

Directories

Path Synopsis
communicators
ssh
providers
provisioners

Jump to

Keyboard shortcuts

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