Documentation ¶
Index ¶
- Variables
- func CreateCRDDefinition() error
- func CreateJobThroughputMetricObj(metric *JobPerformanceMetric) error
- func GetJobThroughput(performantID string, slType string) (float64, error)
- func InitInformer() error
- func ObjToUnstructured(obj interface{}) (*unstructured.Unstructured, error)
- func SetClientset(c *crdclientset.Clientset, dynamic *dynamic.DynamicClient)
- type JobPerformanceMetric
- type JobPerformanceMetricSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var CrdClientset *crdclientset.Clientset
View Source
var DynamicClientset *dynamic.DynamicClient
View Source
var GVR = schema.GroupVersionResource{ Group: constants.CRDGroup, Version: constants.CRDVersion, Resource: constants.CRDPlural, }
View Source
var JobThroughputStore cache.Store
Functions ¶
func CreateCRDDefinition ¶
func CreateCRDDefinition() error
func CreateJobThroughputMetricObj ¶
func CreateJobThroughputMetricObj(metric *JobPerformanceMetric) 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"` }
func MetricFromSpec ¶
func MetricFromSpec(spec *JobPerformanceMetricSpec) *JobPerformanceMetric
Click to show internal directories.
Click to hide internal directories.