runners

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCRunner

func NewGRPCRunner(srv *grpc.Server, sockFile string, leaderElection bool) manager.Runnable

NewGRPCRunner creates controller-runtime's manager.Runnable for a gRPC server. The server will listen on UNIX domain socket at sockFile. If leaderElection is true, the server will run only when it is elected as leader.

func NewMetricsExporter

func NewMetricsExporter(conn *grpc.ClientConn, mgr manager.Manager, nodeName string) manager.Runnable

NewMetricsExporter creates controller-runtime's manager.Runnable to run a metrics exporter for a node.

Types

type Checker

type Checker interface {
	manager.Runnable
	Ready() (bool, error)
}

Checker is the interface to check plugin readiness.

func NewChecker

func NewChecker(check func() error, interval time.Duration) Checker

NewChecker creates controller-runtime's manager.Runnable to run health check function periodically at given interval.

type NodeMetrics

type NodeMetrics struct {
	FreeBytes   uint64
	DeviceClass string
}

NodeMetrics is a set of metrics of a TopoLVM Node.

Jump to

Keyboard shortcuts

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