taskserver

package
v0.0.0-...-e9f0680 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CloseTearDown    bool   `yaml:"closeTearDown"`
	TargetServeAdder string `yaml:"targetServeAdder"`
}

func NewConfig

func NewConfig() *Config

func (*Config) RegisterFlagsWithPrefix

func (c *Config) RegisterFlagsWithPrefix(prefix string, f *pflag.FlagSet)

RegisterFlagsWithPrefix is used to register flags

func (*Config) Validate

func (c *Config) Validate() error

type Provider

type Provider interface {
	RunSingleTaskCase(ctx context.Context, itfName, caseName string) (task.RunTaskReply, error)
}

func New

func New(log logger.Logger, cfg *Config,
	caseProvider caseprovider.Provider,
	protoProvider protomanager.Provider,
	apiProvider apimanager.Provider,
	pluginRegistry pluginregistry.Registry,
) Provider

New return a TaskService

Jump to

Keyboard shortcuts

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