Documentation
¶
Index ¶
Constants ¶
View Source
const PluginFactoryName = "NewPlugin"
PluginFactoryName is the required name for the plugin factory.
View Source
const PluginIDName = "PluginID"
View Source
const PluginVersionName = "PluginVersion"
View Source
const Version = "prometheus/k8stransform/v1"
Version is this plugin type version.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sObjects ¶
type K8sObjects struct {
Items []*unstructured.Unstructured
}
type Plugin ¶
type Plugin interface {
TransformK8sObjects(ctx context.Context, kmeta model.K8sMeta, sloResult model.PromSLOGroupResult) (*K8sObjects, error)
}
Plugin knows how to transform K8s objects, these transformers should be simple and only focused on transforming K8s objects generated from SLOs.
type PluginFactory ¶
type PluginID ¶
type PluginID = string
PluginID is the ID of the plugin (e.g: sloth.dev/my-test-plugin/v1).
type PluginVersion ¶
type PluginVersion = string
PluginVersion is the version of the plugin (e.g: `prometheus/k8stransform/v1`).
Click to show internal directories.
Click to hide internal directories.