plugin

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderType = "RPCPlugin"

Variables

This section is empty.

Functions

func NewRpcPlugin

func NewRpcPlugin(metric v1alpha1.Metric) (metric.Provider, error)

NewRpcPlugin returns a new RPC plugin with a singleton client

Types

type MetricPlugin

type MetricPlugin struct {
	rpc.MetricProviderPlugin
}

func (MetricPlugin) GarbageCollect

func (m MetricPlugin) GarbageCollect(run *v1alpha1.AnalysisRun, metric v1alpha1.Metric, limit int) error

GarbageCollect calls the plugins garbage collect method but cast the error back to an "error" type for the internal interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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