fs

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilePluginRepo

type FilePluginRepo struct {
	// contains filtered or unexported fields
}

func NewFilePluginRepo

func NewFilePluginRepo(logger log.Logger, failOnError bool, sliPluginLoader SLIPluginLoader, sloPluginLoader SLOPluginLoader, k8sTransformLoader K8sTransformPluginLoader, fss ...fs.FS) (*FilePluginRepo, error)

NewFilePluginRepo returns a new FilePluginRepo that loads SLI and SLO plugins from the given file system.

func (*FilePluginRepo) GetK8sTransformPlugin added in v0.16.0

func (r *FilePluginRepo) GetK8sTransformPlugin(ctx context.Context, id string) (*pluginenginek8stransform.Plugin, error)

func (*FilePluginRepo) GetSLIPlugin

func (r *FilePluginRepo) GetSLIPlugin(ctx context.Context, id string) (*pluginenginesli.SLIPlugin, error)

func (*FilePluginRepo) GetSLOPlugin

func (r *FilePluginRepo) GetSLOPlugin(ctx context.Context, id string) (*pluginengineslo.Plugin, error)

func (*FilePluginRepo) ListK8sTransformPlugins added in v0.16.0

func (r *FilePluginRepo) ListK8sTransformPlugins(ctx context.Context) (map[string]pluginenginek8stransform.Plugin, error)

func (*FilePluginRepo) ListSLIPlugins

func (r *FilePluginRepo) ListSLIPlugins(ctx context.Context) (map[string]pluginenginesli.SLIPlugin, error)

func (*FilePluginRepo) ListSLOPlugins

func (r *FilePluginRepo) ListSLOPlugins(ctx context.Context) (map[string]pluginengineslo.Plugin, error)

func (*FilePluginRepo) Reload

func (r *FilePluginRepo) Reload(ctx context.Context) error

type K8sTransformPluginLoader added in v0.16.0

type K8sTransformPluginLoader interface {
	LoadRawPlugin(ctx context.Context, src string) (*pluginenginek8stransform.Plugin, error)
}

type SLIPluginLoader

type SLIPluginLoader interface {
	LoadRawSLIPlugin(ctx context.Context, src string) (*pluginenginesli.SLIPlugin, error)
}

type SLOPluginLoader

type SLOPluginLoader interface {
	LoadRawPlugin(ctx context.Context, src string) (*pluginengineslo.Plugin, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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