Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionInput ¶
type ActionMetadata ¶
type ActionMetadata struct {
Name string `yaml:"name"`
Inputs map[string]ActionInput `yaml:"inputs"`
Outputs map[string]ActionOutput `yaml:"outputs"`
Runs ActionRuns `yaml:"runs"`
}
func LoadActionMetadata ¶
func LoadActionMetadata(actionDir string) (*ActionMetadata, string, error)
type ActionOutput ¶
type ActionReference ¶
type ActionReference struct {
Kind referenceKind
Original string
Owner string
Repo string
Path string
Ref string
Image string
Local string
}
func ParseActionReference ¶
func ParseActionReference(raw string) (ActionReference, error)
func (ActionReference) CachePath ¶
func (ref ActionReference) CachePath() string
func (ActionReference) Repository ¶
func (ref ActionReference) Repository() string
type ActionRuns ¶
type ActionRuns struct {
Using string `yaml:"using"`
Main string `yaml:"main"`
Pre string `yaml:"pre"`
Post string `yaml:"post"`
PreIf string `yaml:"pre-if"`
PostIf string `yaml:"post-if"`
Image string `yaml:"image"`
Env map[string]string `yaml:"env"`
Entrypoint string `yaml:"entrypoint"`
PreEntrypoint string `yaml:"pre-entrypoint"`
PostEntrypoint string `yaml:"post-entrypoint"`
Args []string `yaml:"args"`
Steps []CompositeActionStep `yaml:"steps"`
}
type CompositeActionStep ¶
type CompositeActionStep struct {
ID string `yaml:"id"`
Name string `yaml:"name"`
Run string `yaml:"run"`
Uses string `yaml:"uses"`
With map[string]interface{} `yaml:"with"`
Env map[string]interface{} `yaml:"env"`
Shell string `yaml:"shell"`
WorkingDirectory string `yaml:"working-directory"`
If string `yaml:"if"`
ContinueOnError bool `yaml:"continue-on-error"`
}
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) Cleanup ¶
func (e *Engine) Cleanup(ctx ExecContext) error
func (*Engine) FinalizeJob ¶
func (*Engine) Prepare ¶
func (e *Engine) Prepare(ctx ExecContext) error
type EvaluationInput ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
func NewEvaluator ¶
func NewEvaluator(input EvaluationInput) *Evaluator
func (*Evaluator) Evaluate ¶
func (e *Evaluator) Evaluate(input string, defaultStatusCheck actexpr.DefaultStatusCheck) (interface{}, error)
func (*Evaluator) Interpolate ¶
type ExecContext ¶
type FileCommandResult ¶
type StepFiles ¶
type StepFiles struct {
HostDir string
HostEnv string
HostOutput string
HostPath string
HostState string
HostSummary string
ContainerEnv string
ContainerOutput string
ContainerPath string
ContainerState string
ContainerSummary string
}
func NewStepFiles ¶
func (StepFiles) Parse ¶
func (files StepFiles) Parse() (FileCommandResult, error)
Click to show internal directories.
Click to hide internal directories.