caasprobebinder

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package caasprobebinder exists to bind probe providers to the caasprober.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a new manifold for a caasprobebinder worker.

Types

type ManifoldConfig

type ManifoldConfig struct {
	// ProberName is the name of the caasprober worker to get from the
	// dependency engine.
	ProberName string

	// ProbeProviderNames is a list of probe providers to fetch from the
	// dependency engine.
	ProbeProviderNames []string

	// DefaultProviders is a list of probe providers that are given to this
	// worker at instantiation and not fetched from the dependency engine.
	DefaultProviders map[string]probe.ProbeProvider
}

ManifoldConfig is the configuration used to setup a new caasprober.

func (ManifoldConfig) Start

func (c ManifoldConfig) Start(ctx context.Context, getter dependency.Getter) (worker.Worker, error)

func (ManifoldConfig) Validate

func (c ManifoldConfig) Validate() error

type ProbeBinder

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

ProbeBinder is a worker that binds a set of probe providers onto a caasprober worker.

func NewProbeBinder

func NewProbeBinder(probes *caasprober.CAASProbes, providers map[string]probe.ProbeProvider) (*ProbeBinder, error)

NewProbeBinder constructs a new caas probe binder worker.

func (*ProbeBinder) Kill

func (c *ProbeBinder) Kill()

Kill implements worker.Kill

func (*ProbeBinder) Wait

func (c *ProbeBinder) Wait() error

Wait implements worker.Wait

Jump to

Keyboard shortcuts

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