Documentation ¶
Index ¶
- Constants
- type Context
- func (c *Context) AddChild(k string, v string) *Context
- func (c *Context) AddProcess(stage *RunningStage)
- func (c *Context) Getenv(k string) string
- func (c *Context) GetenvWithDefault(k string, defaultValue string) string
- func (c *Context) Parent() *Context
- func (c *Context) RootParent() *Context
- func (c *Context) SetStatus(s Status)
- type Data
- func (d Data) AsMap() map[string]interface{}
- func (d Data) GetBool(key string) bool
- func (d Data) GetBoolWithOk(key string) (bool, bool)
- func (d Data) GetList(key string) []string
- func (d Data) GetMap(key string) Data
- func (d Data) GetString(key string) string
- func (d Data) GetStringWithDefault(key string, defaultValue string) string
- type RunningStage
- type Status
Constants ¶
View Source
const ( KeyCwd = "cwd" KeyStatus = "status" )
View Source
const ( StatusSuccess = "success" StatusMessage = "message" StatusMatrixId = "matrixId" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Processes []*RunningStage DataMutex sync.Mutex Logger *log.Entry Key string Value string Graph *depgraph.Graph IsMatrix bool BuildID uuid.UUID TempDir string Data Data // contains filtered or unexported fields }
func (*Context) AddProcess ¶
func (c *Context) AddProcess(stage *RunningStage)
func (*Context) GetenvWithDefault ¶
func (*Context) RootParent ¶
type RunningStage ¶
RunningStage schema will be used to store references to running stages and can be used to terminate running stages later
Click to show internal directories.
Click to hide internal directories.