Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { // Run start a new external system call for a measurement // Should be idempotent and do nothing if a call has already been started Run(*v1alpha1.AnalysisRun, v1alpha1.Metric) v1alpha1.Measurement // Checks if the external system call is finished and returns the current measurement Resume(*v1alpha1.AnalysisRun, v1alpha1.Metric, v1alpha1.Measurement) v1alpha1.Measurement // Terminate will terminate an in-progress measurement Terminate(*v1alpha1.AnalysisRun, v1alpha1.Metric, v1alpha1.Measurement) v1alpha1.Measurement // GarbageCollect is used to garbage collect completed measurements to the specified limit GarbageCollect(*v1alpha1.AnalysisRun, v1alpha1.Metric, int) error // Type gets the provider type Type() string }
Provider methods to query a external systems and generate a measurement
type ProviderFactory ¶
type ProviderFactory struct { KubeClient kubernetes.Interface JobLister batchlisters.JobLister }
func (*ProviderFactory) NewProvider ¶
NewProvider creates the correct provider based on the provider type of the Metric
Click to show internal directories.
Click to hide internal directories.