context

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Result string
}

Condition hold context information gathered during an updatecli run that are specific to a condition resource

type Context

type Context struct {
	Name       string
	PipelineID string // PipelineID allows to identify a full pipeline run, this value is propagated into each target if not defined at that level
	Title      string // Title is used for the full pipelin

	Sources    map[string]Source
	Conditions map[string]Condition
	Targets    map[string]Target

	SourcesStageReport    []reports.Stage
	ConditionsStageReport []reports.Stage
	TargetsStageReport    []reports.Stage

	Config *config.Config
}

Context contains every context information gathered during an updatecli run

func (*Context) Init

func (c *Context) Init(config *config.Config)

Init initialize a updatecli context based on its bind configuration

func (*Context) String

func (c *Context) String() string

type Source

type Source struct {
	Output    string
	Result    string
	Changelog string
}

Source hold context information gathered during an updatecli run that are specific to a source resource

type Target

type Target struct {
	Result string
}

Target hold context information gathered during an updatecli run that are specific to a condition resource

Jump to

Keyboard shortcuts

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