exec

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDredgefileName  = "Dredgefile"
	DefaultDredgeRepo      = "https://github.com/dredge-dev/dredge-repo.git"
	LocalDredgeStorage     = ".dredge"
	LocalDredgeRepoStorage = LocalDredgeStorage + "/repo/"
)

Variables

This section is empty.

Functions

func MergeSources

func MergeSources(parent config.SourcePath, child config.SourcePath) config.SourcePath

func ReadDredgeFile

func ReadDredgeFile(source config.SourcePath) (config.SourcePath, *config.DredgeFile, error)

Types

type Bucket

type Bucket struct {
	Exec        *DredgeExec
	Name        string
	Description string
	// contains filtered or unexported fields
}

func (*Bucket) GetWorkflows

func (b *Bucket) GetWorkflows() ([]*Workflow, error)

type DredgeExec

type DredgeExec struct {
	Parent     *DredgeExec
	Source     config.SourcePath
	DredgeFile *config.DredgeFile
	Env        Env
}

func EmptyExec

func EmptyExec(source config.SourcePath) *DredgeExec

func NewExec

func NewExec(source config.SourcePath) (*DredgeExec, error)

func (*DredgeExec) GetBucket

func (exec *DredgeExec) GetBucket(bucketName string) (*Bucket, error)

func (*DredgeExec) GetBuckets

func (exec *DredgeExec) GetBuckets() ([]*Bucket, error)

func (*DredgeExec) GetWorkflow

func (exec *DredgeExec) GetWorkflow(bucketName, workflowName string) (*Workflow, error)

func (*DredgeExec) GetWorkflows

func (exec *DredgeExec) GetWorkflows() ([]*Workflow, error)

func (*DredgeExec) Import

func (exec *DredgeExec) Import(source config.SourcePath) (*DredgeExec, error)

func (*DredgeExec) ReadSource

func (exec *DredgeExec) ReadSource(source config.SourcePath) ([]byte, error)

type Env

type Env map[string]string

func NewEnv

func NewEnv() Env

func (Env) AddInput

func (e Env) AddInput(input config.Input, reader io.Reader) error

func (Env) AddVariables

func (e Env) AddVariables(v config.Variables)

func (Env) Clone

func (e Env) Clone() Env

type Workflow

type Workflow struct {
	Exec        *DredgeExec
	Name        string
	Description string
	Inputs      []config.Input
	Steps       []config.Step
}

Jump to

Keyboard shortcuts

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