pkg

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCmd

func RunCmd(confPath string, selectedStep string) error

Types

type CiConfig

type CiConfig struct {
	LogFilePath string       `yaml:"log_file"`
	Steps       []StepConfig `yaml:"steps"`
	// contains filtered or unexported fields
}

type CmdConfig

type CmdConfig struct {
	Cmd  string `yaml:"cmd"`
	Path string `yaml:"path,omitempty"`
}

type JobConfig

type JobConfig struct {
	Name       string      `yaml:"name"`
	Cmd        string      `yaml:"cmd"`
	Path       string      `yaml:"path,omitempty"`
	RunBefore  []CmdConfig `yaml:"run_before,omitempty"`
	Background []CmdConfig `yaml:"background,omitempty"`
	RunAfter   []CmdConfig `yaml:"run_after,omitempty"`
}

type JobStatus

type JobStatus struct {
	BeforeHooksSuccess bool
	AfterHooksSuccess  bool
	MainJobSuccess     bool

	Output SafeBuffer
	// contains filtered or unexported fields
}

type RefreshStatusMsg

type RefreshStatusMsg time.Time

type SafeBuffer

type SafeBuffer struct {
	// contains filtered or unexported fields
}

func (*SafeBuffer) String

func (s *SafeBuffer) String() string

func (*SafeBuffer) Write

func (s *SafeBuffer) Write(p []byte) (n int, err error)

type StepConfig

type StepConfig struct {
	Name      string      `yaml:"name"`
	Jobs      []JobConfig `yaml:"jobs"`
	RunBefore []CmdConfig `yaml:"run_before,omitempty"`
	RunAfter  []CmdConfig `yaml:"run_after,omitempty"`
}

type StepStatus

type StepStatus struct {
	BeforeHooks *TaskStatus
	Jobs        []JobStatus
	AfterHooks  *TaskStatus

	Mtx sync.Mutex
	// contains filtered or unexported fields
}

type TaskState

type TaskState int
const (
	STATE_NOT_STARTED TaskState = iota
	STATE_RUNNING
	STATE_SUCCESSFUL
	STATE_FAILED
)

type TaskStatus

type TaskStatus struct {
	Output SafeBuffer
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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