actuator

package
v0.0.0-...-4d78981 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(env env.Interface, log *logrus.Entry, dialer proxy.Dialer, dbg actuatorDBs, m metrics.Emitter) *service

Types

type Actuator

type Actuator interface {
	Process(context.Context) (bool, error)
	AddMaintenanceTasks(map[string]tasks.MaintenanceTask)
}

func NewActuator

func NewActuator(
	ctx context.Context,
	_env env.Interface,
	log *logrus.Entry,
	clusterResourceID string,
	oc database.OpenShiftClusters,
	mmf database.MaintenanceManifests,
	now func() time.Time) (Actuator, error)

type Runnable

type Runnable interface {
	Run(context.Context, <-chan struct{}, chan<- struct{}) error
}

Jump to

Keyboard shortcuts

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