fs

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: Apache-2.0 Imports: 9 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, fss ...fs.FS) (*FilePluginRepo, error)

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

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