v1

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 PluginFactory = func() (Plugin, error)

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`).

Jump to

Keyboard shortcuts

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