worker

package
v0.122.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfiguration = errors.New("configuration error")
View Source
var ErrRun = errors.New("run failed")

Functions

func NewPauseCmd added in v0.77.0

func NewPauseCmd() *cobra.Command

func NewResumeCmd added in v0.77.0

func NewResumeCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewRunCmd

func NewRunCmd() *cobra.Command

Types

type Config added in v0.87.0

type Config struct {
	Name  string `yaml:"name"`
	Token string `yaml:"token"`

	Labels    map[string]string  `yaml:"labels"`
	Resources map[string]float64 `yaml:"resources"`

	Log ConfigLog `yaml:"log"`

	RPC ConfigRPC `yaml:"rpc"`

	Upstreams []ConfigUpstream `yaml:"upstreams"`

	Security *security.Security `yaml:"security"`

	Standby *worker.StandbyConfig `yaml:"standby"`

	ResourceModifiers []*resourcemodifier.Modifier `yaml:"resource-modifiers"`
}

type ConfigLog added in v0.87.0

type ConfigLog struct {
	Level        string `yaml:"level"`
	File         string `yaml:"file"`
	RotateSize   string `yaml:"rotate-size"`
	MaxRotations uint   `yaml:"max-rotations"`
}

type ConfigRPC added in v0.87.0

type ConfigRPC struct {
	Endpoint string `yaml:"endpoint"`
}

type ConfigUpstream added in v0.87.0

type ConfigUpstream struct {
	Token    string `yaml:"token"`
	Endpoint string `yaml:"endpoint"`
}

Jump to

Keyboard shortcuts

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