build

package
v0.0.0-...-6ade924 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	PluginName string
	Out        io.Writer
	Modules    module.Registry
	*logger.Logger

	Runner    Runner
	CurState  StateSaver
	PrevState State
	Registry  Registry
	// contains filtered or unexported fields
}

func NewManager

func NewManager() *Manager

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, in chan []*confgroup.Group)

type Registry

type Registry interface {
	Register(name string) (bool, error)
	Unregister(name string) error
}

type Runner

type Runner interface {
	Start(job jobpkg.Job)
	Stop(fullName string)
}

type State

type State interface {
	Contains(cfg confgroup.Config, states ...string) bool
}

type StateSaver

type StateSaver interface {
	Save(cfg confgroup.Config, state string)
	Remove(cfg confgroup.Config)
}

Jump to

Keyboard shortcuts

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