Documentation ¶
Overview ¶
Package lucifer provides Go bindings for running lucifer.
Index ¶
- func AdminTaskCommand(c Config, a AdminTaskArgs) *exec.Cmd
- func AuditTaskCommand(c Config, a AuditTaskArgs) *exec.Cmd
- func DeployTaskCommand(c Config, a DeployTaskArgs) *exec.Cmd
- func TestCommand(c Config, r TestArgs) *exec.Cmd
- type AdminTaskArgs
- type AuditTaskArgs
- type Config
- type DeployTaskArgs
- type TaskArgs
- type TestArgs
- type XLevel
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.
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 ¶
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 ¶
DeployTaskArgs contains the arguments for creating a lucifer deploytask command.
type TaskArgs ¶
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.