job_store

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CrdClientset *crdclientset.Clientset
View Source
var DynamicClientset *dynamic.DynamicClient
View Source
var JobThroughputStore cache.Store

Functions

func CreateCRDDefinition

func CreateCRDDefinition() error

func CreateJobThroughputMetricObj

func CreateJobThroughputMetricObj(metric *JobPerformanceMetric) error

func GetJobThroughput

func GetJobThroughput(performantID string, slType string) (float64, error)

func InitInformer

func InitInformer() error

func ObjToUnstructured

func ObjToUnstructured(obj interface{}) (*unstructured.Unstructured, error)

func SetClientset

func SetClientset(c *crdclientset.Clientset, dynamic *dynamic.DynamicClient)

Types

type JobPerformanceMetric

type JobPerformanceMetric struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              JobPerformanceMetricSpec `json:"spec"`
}

type JobPerformanceMetricSpec

type JobPerformanceMetricSpec struct {
	PerformantID string  `json:"performantID"`
	SLType       string  `json:"slType"`
	IterPerSec   float64 `json:"iterPerSec"`
}

Jump to

Keyboard shortcuts

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