flow

package
v0.0.0-...-feeaf7e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Defaults

type Defaults struct {
	Run Run `yaml:"run,omitempty" json:"run,omitempty"`
}

type Docker

type Docker struct {
	Image    string `yaml:"image,omitempty" json:"image,omitempty"`
	Username string `yaml:"username,omitempty" json:"username,omitempty"`
	Password string `yaml:"password,omitempty" json:"password,omitempty"`
}

type Flow

type Flow struct {
	Name string   `yaml:"name,omitempty" json:"name,omitempty"`
	On   []string `yaml:"on,omitempty" json:"on,omitempty"`
	Jobs []*Job   `yaml:"jobs,omitempty" json:"jobs,omitempty"`
}

type Job

type Job struct {
	Name     string   `yaml:"name,omitempty" json:"name,omitempty"`
	Docker   Docker   `yaml:"docker,omitempty" json:"docker,omitempty"`
	If       string   `yaml:"if,omitempty" json:"if,omitempty"`
	Defaults Defaults `yaml:"defaults,omitempty" json:"defaults,omitempty"`
	Steps    []*Step  `yaml:"steps,omitempty" json:"steps,omitempty"`
}

type Result

type Result struct {
	Status   status.Status `json:"status" yaml:"status"`
	Duration int64         `json:"duration" yaml:"duration"`
	StartAt  *time.Time    `json:"startAt" yaml:"startAt"`
	CloseAt  *time.Time    `json:"closeAt" yaml:"closeAt"`
}

type Run

type Run struct {
	Shell            string `yaml:"shell,omitempty" json:"shell,omitempty"`
	WorkingDirectory string `yaml:"working-directory,omitempty" json:"workingDirectory,omitempty"`
}

type Step

type Step struct {
	Uses   *string            `yaml:"uses,omitempty" json:"uses"`
	With   *map[string]string `yaml:"with,omitempty" json:"with"`
	Run    *string            `yaml:"run,omitempty" json:"run"`
	Result Result             `yaml:"result" json:"result"`
}

Jump to

Keyboard shortcuts

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