lucifer

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package lucifer provides Go bindings for running lucifer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminTaskCommand

func AdminTaskCommand(c Config, a AdminTaskArgs) *exec.Cmd

AdminTaskCommand creates an exec.Cmd for running a lucifer admintask.

func AuditTaskCommand

func AuditTaskCommand(c Config, a AuditTaskArgs) *exec.Cmd

AuditTaskCommand creates an exec.Cmd for running a lucifer audittask.

func DeployTaskCommand

func DeployTaskCommand(c Config, a DeployTaskArgs) *exec.Cmd

DeployTaskCommand creates an exec.Cmd for running a lucifer deploytask.

func TestCommand

func TestCommand(c Config, r TestArgs) *exec.Cmd

TestCommand creates an exec.Cmd for running a lucifer test.

Types

type AdminTaskArgs

type AdminTaskArgs struct {
	TaskArgs
	Host string
	Task string
	// The default values for the following are usually fine.
	GCPProject string
}

AdminTaskArgs contains the arguments for creating a lucifer admintask command.

type AuditTaskArgs

type AuditTaskArgs struct {
	TaskArgs
	Host    string
	Actions string
}

AuditTaskArgs contains the arguments for creating a lucifer audittask command.

type Config

type Config struct {
	// BinDir is the directory containing Lucifer binaries.
	BinDir       string
	AutotestPath string
	LabpackDir   string
}

Config contains information needed to run Lucifer commands.

type DeployTaskArgs

type DeployTaskArgs struct {
	TaskArgs
	Host    string
	Actions string
}

DeployTaskArgs contains the arguments for creating a lucifer deploytask command.

type TaskArgs

type TaskArgs struct {
	AbortSock  string
	GCPProject string
	ResultsDir string
	LogDogFile string
}

TaskArgs contains the arguments shared between all Lucifer task types. This can be used to facilitate share common setup code.

type TestArgs

type TestArgs struct {
	TaskArgs
	Hosts    []string
	TaskName string

	XTestArgs          string
	XClientTest        bool
	XJobOwner          string
	XKeyvals           map[string]string
	XLevel             XLevel
	XLocalOnlyHostInfo bool
	XPrejobTask        constants.AdminTaskType
	XProvisionLabels   []string
}

TestArgs contains the arguments for creating a lucifer test command. This only includes the subset of the available arguments that is currently needed.

type XLevel

type XLevel string

XLevel is an enum for the available Lucifer handoff levels. This is a transitory concept while the Autotest scheduler is being migrated to use Lucifer.

const (
	LuciferLevelStarting        XLevel = "STARTING"
	LuciferLevelSkylabProvision XLevel = "SKYLAB_PROVISION"
)

Lucifer level constants.

Jump to

Keyboard shortcuts

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