pipelines

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DepMap = make(map[string]*Dep)

Functions

func BuildDepMap

func BuildDepMap(m map[string]Line) (map[string]*Dep, error)

Types

type Dep

type Dep struct {
	ID    string
	Deps  []*Dep
	Deped []*Dep
}

func FindDeps

func FindDeps(handler pipeline.Handler, depMap map[string]*Dep) ([]*Dep, error)

func (Dep) HasDepID

func (dep Dep) HasDepID(id string) ([]string, bool)

type Deps

type Deps []*Dep

func (Deps) IDs

func (deps Deps) IDs() []string

type Line

type Line struct {
	Index   int              `json:"index"`
	ID      string           `json:"id"`
	Handler pipeline.Handler `json:"handler"`
}

type LineMap

type LineMap map[string]Line

func (LineMap) GetHandlerOK

func (m LineMap) GetHandlerOK(name string) (pipeline.Handler, bool)

type Lines

type Lines struct {
	LineMap LineMap
	DepMap  map[string]*Dep
}

func InitLinesByConfs

func InitLinesByConfs(confs []pipeConf) (*Lines, error)

func InitLinesByFile

func InitLinesByFile(confPath string) (*Lines, error)

func (*Lines) AddByConfJSON

func (l *Lines) AddByConfJSON(id, confJSON string) error

func (*Lines) Delete

func (l *Lines) Delete(id string) error

func (Lines) GetDep

func (l Lines) GetDep(id string) (*Dep, bool)

func (Lines) GetHandlerOK

func (l Lines) GetHandlerOK(id string) (pipeline.Handler, bool)

func (*Lines) UpdateByConfJSON

func (l *Lines) UpdateByConfJSON(id, confJSON string) error

Jump to

Keyboard shortcuts

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