static

package
v0.0.0-...-a204096 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "static"

Variables

View Source
var (
	// bson fields for the Settings struct
	HostsKey = bsonutil.MustHaveTag(Settings{}, "Hosts")

	// bson fields for the Host struct
	NameKey = bsonutil.MustHaveTag(Host{}, "Name")
)

Functions

This section is empty.

Types

type Host

type Host struct {
	Name string `mapstructure:"name" json:"name" bson:"name"`
}

type Settings

type Settings struct {
	Hosts []Host `mapstructure:"hosts" json:"hosts" bson:"hosts"`
}

func (*Settings) Validate

func (s *Settings) Validate() error

Validate checks that the settings from the configuration are valid.

type StaticManager

type StaticManager struct{}

func (*StaticManager) CanSpawn

func (staticMgr *StaticManager) CanSpawn() (bool, error)

func (*StaticManager) Configure

func (staticMgr *StaticManager) Configure(settings *evergreen.Settings) error

func (*StaticManager) GetDNSName

func (staticMgr *StaticManager) GetDNSName(host *host.Host) (string, error)

get instance DNS

func (*StaticManager) GetInstanceStatus

func (staticMgr *StaticManager) GetInstanceStatus(host *host.Host) (cloud.CloudStatus, error)

get the status of an instance

func (*StaticManager) GetSSHOptions

func (staticMgr *StaticManager) GetSSHOptions(h *host.Host, keyPath string) (opts []string, err error)

func (*StaticManager) GetSettings

func (_ *StaticManager) GetSettings() cloud.ProviderSettings

func (*StaticManager) IsSSHReachable

func (staticMgr *StaticManager) IsSSHReachable(host *host.Host, keyPath string) (bool, error)

func (*StaticManager) IsUp

func (staticMgr *StaticManager) IsUp(host *host.Host) (bool, error)

func (*StaticManager) OnUp

func (staticMgr *StaticManager) OnUp(host *host.Host) error

func (*StaticManager) SpawnInstance

func (staticMgr *StaticManager) SpawnInstance(distro *distro.Distro, hostOpts cloud.HostOptions) (*host.Host, error)

func (*StaticManager) TerminateInstance

func (staticMgr *StaticManager) TerminateInstance(host *host.Host) error

terminate an instance

func (*StaticManager) TimeTilNextPayment

func (staticMgr *StaticManager) TimeTilNextPayment(host *host.Host) time.Duration

determine how long until a payment is due for the host. static hosts always return 0 for this number

Jump to

Keyboard shortcuts

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