cmd

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceTypeFile        string = "file"
	ResourceTypeInline      string = "inline"
	ResourceTypeDockerBuild string = "build"
	ResourceTypeJob         string = "job"
	ResourceTypeExec        string = "exec"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type BuildSpec

type BuildSpec struct {
	Path string
	Tag  string
}

Should be defined in hope pkg

type ExecSpec

type ExecSpec struct {
	Selector string
	Timeout  string
	Command  []string
}

type Job

type Job struct {
	Name       string
	File       string
	Parameters []string
}

TODO: Allow jobs to define max retry parameters, or accept them on the

command line.

type Resource

type Resource struct {
	Name       string
	File       string
	Inline     string
	Parameters []string
	Build      BuildSpec
	Job        string
	Exec       ExecSpec
	Tags       []string
}

func (*Resource) GetType

func (resource *Resource) GetType() (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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