minipipeline

package
v0.0.0-...-2658d01 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	sync.RWMutex
	Name  string
	Steps []*Step
	Err   error
}

func (*Pipeline) Copy

func (p *Pipeline) Copy() *Pipeline

func (*Pipeline) Current

func (p *Pipeline) Current() *Step

func (*Pipeline) Step

func (p *Pipeline) Step(name string, fn func() error) error

type ProgressGroup

type ProgressGroup struct {
	*errgroup.Group
	// contains filtered or unexported fields
}

func (*ProgressGroup) Go

func (pg *ProgressGroup) Go(fn func() error)

type Set

type Set struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Set) Pipeline

func (s *Set) Pipeline(name string) *Pipeline

func (*Set) Snapshot

func (s *Set) Snapshot() []*Pipeline

type Step

type Step struct {
	sync.RWMutex
	Name       string
	StartedAt  time.Time
	FinishedAt time.Time
	Err        error
	// contains filtered or unexported fields
}

func (*Step) ProgressAll

func (s *Step) ProgressAll(delta uint32)

func (*Step) ProgressDone

func (s *Step) ProgressDone(delta uint32)

func (*Step) ProgressGroup

func (s *Step) ProgressGroup() ProgressGroup

func (*Step) String

func (s *Step) String() string

Jump to

Keyboard shortcuts

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