runners

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeThick = "thick"
	TypeThin  = "thin"
)

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(vgServiceClient proto.VGServiceClient, client client.Client, 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 {
	DataPercent        float64
	MetadataPercent    float64
	FreeBytes          uint64
	SizeBytes          uint64
	ThinPoolSizeBytes  uint64
	OverProvisionBytes uint64
	DeviceClass        string
	DeviceClassType    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