Documentation
¶
Index ¶
- Constants
- type Block
- func (b Block) Changed(state stateStorage.State, p *Pipeline) bool
- func (b Block) GetDepsFull() []string
- func (b Block) GetDepsState(p *Pipeline) string
- func (b Block) GetState() (string, error)
- func (b *Block) Run(state stateStorage.State, p *Pipeline, dry bool)
- func (b Block) Visualize(ctx *dot.Graph, p *Pipeline, fileMap *map[string]*File, m *map[string]dot.Node, ...)
- type Checkable
- type File
- func (f *File) Analyze()
- func (f File) Changed(s stateStorage.State, p *Pipeline) bool
- func (f File) GetDepsFull() []string
- func (f File) GetFullName() string
- func (f File) GetState() (string, error)
- func (f File) Visualize(ctx *dot.Graph, p *Pipeline, fileMap *map[string]*File, m *map[string]dot.Node, ...)
- type Graphable
- type IncludeBlock
- type Pipeline
- func (p Pipeline) Changed(state stateStorage.State, pipeline *Pipeline) bool
- func (p *Pipeline) Enrich()
- func (p Pipeline) GetDepsFull() []string
- func (p Pipeline) GetGraphable() map[string]Graphable
- func (p Pipeline) GetState() (string, error)
- func (p Pipeline) List() []string
- func (p Pipeline) Run(state stateStorage.State, pl *Pipeline, dry bool)
- func (p Pipeline) Stages() map[string]PipelineBlock
- func (p Pipeline) Visualize(ctx *dot.Graph, pi *Pipeline, fileMap *map[string]*File, ...)
- type PipelineBlock
- type PipelineBlockBase
- type PipelineRaw
- type Visualizable
Constants ¶
View Source
const ( StateNameExec = "exec" StateNameEnv = "env" StateNameCheckCmd = "checkCmd" StateNameCheck = "checkOutHash" StateNameCheckSuccess = "checkOutSuccess" )
View Source
const ( DirShape = "septagon" FileShape = "oval" DotFilePrefix = "file:" )
View Source
const ( Separator = "/" MainNamespace = "" MainName = "" MainFullName = MainNamespace + "/" + MainName PipelineShape = "parallelogram" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct {
PipelineBlockBase `yaml:",inline"`
Name string `yaml:"-"`
Description string `yaml:"desc,omitempty"`
Check []string `yaml:"check,omitempty"`
Exec []string `yaml:"exec,omitempty"`
In []string `yaml:"in,omitempty"`
Out []string `yaml:"out,omitempty"`
Env []string `yaml:"env,omitempty"`
Stdout bool `yaml:"stdout,omitempty"`
Stderr bool `yaml:"stderr,omitempty"`
MayFail bool `yaml:"may-fail,omitempty"`
Idempotent bool `yaml:"idempotent,omitempty"`
}
func NewBlockFromMap ¶
func (Block) GetDepsFull ¶
func (Block) GetDepsState ¶
type File ¶
type File struct {
Name string
Deps []*Block
Analyzed bool
Size int64
Mode os.FileMode
ModTime time.Time
IsDir bool
Exists bool
// contains filtered or unexported fields
}
func (File) GetDepsFull ¶
func (File) GetFullName ¶
type IncludeBlock ¶
type Pipeline ¶
type Pipeline struct {
*PipelineBlockBase `yaml:",inline"`
Version float32 `yaml:"version"`
Settings settings.Settings `yaml:"settings,omitempty"`
Pipeline map[string]PipelineBlock `yaml:"pipeline"`
BlocksMap map[string]PipelineBlock `yaml:"-"`
FilesMap map[string]*File `yaml:"-"`
State stateStorage.State `yaml:"-"`
}
func NewPipeline ¶
func (Pipeline) Changed ¶
func (p Pipeline) Changed(state stateStorage.State, pipeline *Pipeline) bool
func (Pipeline) GetDepsFull ¶
func (Pipeline) GetGraphable ¶
func (Pipeline) Stages ¶
func (p Pipeline) Stages() map[string]PipelineBlock
type PipelineBlock ¶
type PipelineBlock interface {
Checkable
Graphable
Visualizable
Run(state stateStorage.State, p *Pipeline, dry bool)
GetParent() *Pipeline
}
type PipelineBlockBase ¶
type PipelineBlockBase struct {
Deps []string `yaml:"deps"`
Parent *Pipeline `yaml:"-"`
FullName string `yaml:"-"`
DepsFull []string `yaml:"-"`
}
func (PipelineBlockBase) GetFullName ¶
func (p PipelineBlockBase) GetFullName() string
func (PipelineBlockBase) GetParent ¶
func (p PipelineBlockBase) GetParent() *Pipeline
type PipelineRaw ¶
Click to show internal directories.
Click to hide internal directories.