result

package
v0.0.0-...-081ecb4 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Groups []*StepGroup
	// contains filtered or unexported fields
}

func NewLog

func NewLog(logger *log.Logger) *Log

func (*Log) AddStepGroup

func (lg *Log) AddStepGroup(name string) *StepGroup

func (*Log) LastStepGroup

func (lg *Log) LastStepGroup() *StepGroup

func (*Log) RunNewGroup

func (lg *Log) RunNewGroup(name string, f func(sg *StepGroup) error) error

func (*Log) RunNewGroupVoid

func (lg *Log) RunNewGroupVoid(name string, f func(sg *StepGroup))

type Result

type Result struct {
	ServiceConfig goenvconfig.Service

	WorkDir             string
	Environment         map[string]string
	GolangciLintVersion string

	Log   *Log
	Error string `json:",omitempty"`
}

func (Result) Finish

func (res Result) Finish()

type Step

type Step struct {
	Description string
	OutputLines []string `json:",omitempty"`
	Error       string   `json:",omitempty"`
	// contains filtered or unexported fields
}

func (*Step) AddError

func (s *Step) AddError(err string)

func (*Step) AddOutput

func (s *Step) AddOutput(output string)

func (*Step) AddOutputLine

func (s *Step) AddOutputLine(format string, args ...interface{})

type StepGroup

type StepGroup struct {
	Name     string
	Steps    []*Step
	Duration time.Duration
	// contains filtered or unexported fields
}

func (*StepGroup) AddStep

func (sg *StepGroup) AddStep(desc string) *Step

func (*StepGroup) AddStepCmd

func (sg *StepGroup) AddStepCmd(cmd string, args ...string) *Step

func (*StepGroup) Finish

func (sg *StepGroup) Finish()

func (*StepGroup) LastStep

func (sg *StepGroup) LastStep() *Step

Jump to

Keyboard shortcuts

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