result

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUCCESS   string = "\u2714"
	FAILURE   string = "\u2717"
	ATTENTION string = "\u26A0"
	SKIPPED   string = "-"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition added in v0.50.0

type Condition struct {
	//Name holds the condition name
	Name string
	/*
		Result holds the condition result, accepted values must be one:
			* "SUCCESS"
			* "FAILURE"
			* "ATTENTION"
			* "SKIPPED"
	*/
	Result string
	// Pass stores the information detected by the condition execution.
	Pass bool
	// Description stores the condition execution description.
	Description string
	// Scm stores scm information
	Scm SCM
	// ID contains a uniq identifier for the condition
	ID string
	// ConsoleOutput stores the console output of the condition execution
	ConsoleOutput string
}

Conditions holds condition execution result

func (*Condition) SetConsoleOutput added in v0.55.0

func (c *Condition) SetConsoleOutput(out *bytes.Buffer)

SetConsoleOutput sets the console output of the condition execution

type GitBranch added in v0.53.0

type GitBranch struct {
	// Source defines the branch used as a source
	Source string
	// Working defines the working branch used by Updatecli
	Working string
	// Target defines the branch used by Updatecli to apply the changes done from the working branch
	Target string
}

type SCM added in v0.53.0

type SCM struct {
	// URL defines the git URL
	URL string
	// Branch defines the different branches used by Updatecli
	Branch GitBranch
	// ID contains a uniq identifier for the condition
	ID string
}

SCM defines scm information

type Source added in v0.50.0

type Source struct {
	// Name holds the source name
	Name string
	/*
		Result holds the source result, accepted values must be one:
			* "SUCCESS"
			* "FAILURE"
			* "ATTENTION"
			* "SKIPPED"
	*/
	Result string
	// Information stores the information detected by the source execution such as a version
	Information string
	// Description stores the source execution description
	Description string
	// Scm stores scm information
	Scm SCM
	// ID contains a uniq identifier for the source
	ID string
	//Changelog holds the changelog description
	Changelog string
	// ConsoleOutput stores the console output of the source execution
	ConsoleOutput string
}

Source holds source execution result

func (*Source) SetConsoleOutput added in v0.55.0

func (s *Source) SetConsoleOutput(out *bytes.Buffer)

SetConsoleOutput sets the console output of the source execution

type Target added in v0.50.0

type Target struct {
	// Name holds the target name
	Name string
	// DryRun defines if a target was executed in DryRun mode
	DryRun bool
	/*
		Result holds the target result, accepted values must be one:
			* "SUCCESS"
			* "FAILURE"
			* "ATTENTION"
			* "SKIPPED"
	*/
	Result string
	// Information stores the old information detected by the target execution
	Information string
	// NewInformation stores the new information updated by during the target execution
	NewInformation string
	// Description stores the target execution description
	Description string
	// Files holds the list of files modified by a target execution
	Files []string
	// Changed specifies if the target was modify during the pipeline execution
	Changed bool
	// Scm stores scm information
	Scm SCM
	// ID contains a uniq identifier for the target
	ID string
	// ConsoleOutput stores the console output of the target execution
	ConsoleOutput string
}

Target holds target execution result

func (*Target) SetConsoleOutput added in v0.55.0

func (t *Target) SetConsoleOutput(out *bytes.Buffer)

SetConsoleOutput sets the console output of the target execution

func (*Target) String added in v0.50.0

func (t *Target) String() string

Jump to

Keyboard shortcuts

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