spawn

package
v0.0.0-...-ee3d319 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxPerUser                 = 3
	DefaultExpiration          = 24 * time.Hour
	MaxExpirationDurationHours = 24 * time.Hour * 7 // 7 days
)

Variables

This section is empty.

Functions

func CreateHost

func CreateHost(so Options) (*host.Host, error)

CreateHost spawns a host with the given options.

func MakeExtendedHostExpiration

func MakeExtendedHostExpiration(host *host.Host, extendBy time.Duration) (time.Time, error)

func SetHostRDPPassword

func SetHostRDPPassword(ctx context.Context, host *host.Host, password string) error

func TerminateHost

func TerminateHost(ctx context.Context, host *host.Host, settings *evergreen.Settings, user string) error

func ValidateRDPPassword

func ValidateRDPPassword(password string) bool

XXX: if modifying any of the password validation logic, you changes must also be ported into public/static/js/directives/directives.spawn.js

Types

type Options

type Options struct {
	Distro    string
	UserName  string
	PublicKey string
	TaskId    string
	Owner     *user.DBUser
}

Options holds the required parameters for spawning a host.

Jump to

Keyboard shortcuts

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