beekeeper

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: BSD-3-Clause Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cluster orchestration.Cluster, action Action, options interface{}, stages []Stage, seed int64, logger logging.Logger) (err error)

Run runs check against the cluster

func RunConcurrently

func RunConcurrently(ctx context.Context, cluster orchestration.Cluster, action Action, options interface{}, stages []Stage, buffer int, seed int64, logger logging.Logger) (err error)

RunConcurrently runs check against the cluster, cluster updates are executed concurrently

Types

type Action

type Action interface {
	Run(ctx context.Context, cluster orchestration.Cluster, o interface{}) (err error)
}

Action defines Beekeeper Action's interface. An action that needs to expose metrics should implement the metrics.Reporter interface.

func NewActionMiddleware added in v0.11.0

func NewActionMiddleware(tracer opentracing.Tracer, action Action, actionName string) Action

ActionMiddleware tracks request, and adds spans to context.

type Actions

type Actions struct {
	AddCount    int
	StartCount  int
	StopCount   int
	DeleteCount int
}

Actions represents node group update actions

type Stage

type Stage []Update

Stage define stages for updating Bee

type Update

type Update struct {
	NodeGroup string
	Actions   Actions
}

Update represents details for updating a node group

Jump to

Keyboard shortcuts

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