config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_HOME = "/home"

Variables

This section is empty.

Functions

This section is empty.

Types

type DredgeFile

type DredgeFile struct {
	Env       Env
	Workflows []Workflow
}

func ReadDredgeFile

func ReadDredgeFile(filename string) (*DredgeFile, error)

type Env

type Env struct {
	Variables map[string]string
	Runtimes  []Runtime
}

type Runtime

type Runtime struct {
	Name  string
	Type  string
	Image string
	Home  *string
	Cache []string
	Ports []string
}

func (Runtime) GetHome

func (r Runtime) GetHome() string

type ShellStep

type ShellStep struct {
	Cmd     string
	Runtime string
}

type Step

type Step struct {
	Name     *string
	Shell    *ShellStep
	Template *TemplateStep
}

func (Step) Validate

func (s Step) Validate() bool

type TemplateStep

type TemplateStep struct {
	Input string
	Dest  TemplateString
}

type TemplateString

type TemplateString string

type Workflow

type Workflow struct {
	Name        string
	Description string
	Inputs      map[string]string
	Steps       []Step
}

Jump to

Keyboard shortcuts

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