Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoCandidatesProvided = fmt.Errorf("candidates are a required field") ErrNoCommandProvided = fmt.Errorf("command is a required field") )
Functions ¶
func CandidatesFromConfig ¶ added in v0.5.0
func CandidatesFromConfig(cfg config.CIDConfig) ([]executable.Executable, error)
func Execute ¶ added in v0.5.0
func Execute(opts Opts) (stdout string, stderr string, cand executable.Executable, err error)
Execute gets called from actions or the api to execute commands
Types ¶
type Opts ¶ added in v0.5.0
type Opts struct {
Candidates []executable.Executable
CandidateTypes []executable.CandidateType
Command string
Env map[string]string
ProjectDir string
WorkDir string
TempDir string
CaptureOutput bool
HideStandardOutput bool
HideStandardError bool
Ports []int
UserProvidedConstraint string
Constraints map[string]string
Stdin io.Reader
}
Click to show internal directories.
Click to hide internal directories.