Documentation ¶
Index ¶
- Variables
- type Option
- func WithLabels(labels map[string]string) Option
- func WithLogger(logger logrus.FieldLogger) Option
- func WithResources(resources map[string]float64) Option
- func WithSecurity(security *security.Security) Option
- func WithStandby(standby *StandbyConfig) Option
- func WithUpstream(upstream *upstream.Upstream) Option
- type StandbyConfig
- type Task
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInitializationFailed = errors.New("worker initialization failed") ErrShutdown = errors.New("worker is shutting down") )
View Source
var ErrIsolationMissing = errors.New("isolation configuration is required for standby")
View Source
var ErrUnsupportedIsolation = errors.New("only Tart and Vetu instances are currently supported for standby")
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Worker)
func WithLabels ¶
func WithLogger ¶ added in v0.30.0
func WithLogger(logger logrus.FieldLogger) Option
func WithResources ¶ added in v0.79.0
func WithSecurity ¶ added in v0.102.0
func WithStandby ¶ added in v0.113.0
func WithStandby(standby *StandbyConfig) Option
func WithUpstream ¶ added in v0.87.0
type StandbyConfig ¶ added in v0.113.0
func (*StandbyConfig) UnmarshalYAML ¶ added in v0.113.0
func (standby *StandbyConfig) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.