Documentation ¶
Index ¶
Constants ¶
const ( RunnerName = "hostinit" Description = "initialize new Evergreen hosts" )
const (
SCPTimeout = time.Minute
)
Variables ¶
var (
ErrHostAlreadyInitializing = errors.New("Host already initializing")
)
Error indicating another hostinit got to the setup first.
var (
SSHTimeoutSeconds = int64(300) // 5 minutes
)
Longest duration allowed for running setup script.
Functions ¶
Types ¶
type HostInit ¶
HostInit is responsible for running setup scripts on Evergreen hosts.
func (*HostInit) IsHostReady ¶
IsHostReady returns whether or not the specified host is ready for its setup script to be run.
func (*HostInit) LoadClient ¶
func (init *HostInit) LoadClient(target *host.Host) (*LoadClientResult, error)
LoadClient places the evergreen command line client on the host, places a copy of the user's settings onto the host, and makes the binary appear in the $PATH when the user logs in. If successful, returns an instance of LoadClientResult which contains the paths where the binary and config file were written to.
type LoadClientResult ¶
LoadClientResult indicates the locations on a target host where the CLI binary and it's config file have been written to.