hostinit

package
v0.0.0-...-900fa13 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunnerName  = "hostinit"
	Description = "initialize new Evergreen hosts"
)

Variables

View Source
var (
	ErrHostAlreadyInitializing = errors.New("Host already initializing")
)

Error indicating another hostinit got to the setup first.

View Source
var (
	SSHTimeoutSeconds = int64(300) // 5 minutes
)

Longest duration allowed for running setup script.

Functions

This section is empty.

Types

type HostInit

type HostInit struct {
	Settings *evergreen.Settings
}

HostInit is responsible for running setup scripts on Evergreen hosts.

func (*HostInit) IsHostReady

func (init *HostInit) IsHostReady(host *host.Host) (bool, error)

IsHostReady returns whether or not the specified host is ready for its setup script to be run.

func (*HostInit) ProvisionHost

func (init *HostInit) ProvisionHost(h *host.Host) error

Provision the host, and update the database accordingly.

type Runner

type Runner struct{}

Runner executes the hostinit process.

func (*Runner) Description

func (r *Runner) Description() string

func (*Runner) Name

func (r *Runner) Name() string

func (*Runner) Run

func (r *Runner) Run(config *evergreen.Settings) error

Jump to

Keyboard shortcuts

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