job_manager

package
v2.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	Run(sourceType utils.SourceType, source string) error
}

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

func New(jobNames []string, config *config.Config, logger *logrus.Entry, createRunnersFunc createJobFunc) *Manager

func (*Manager) Run

func (m *Manager) Run(sourceType utils.SourceType, userInput string) (map[string]Result, error)

type Result

type Result interface {
	GetError() error
}

Jump to

Keyboard shortcuts

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