pluginerrs

package
v1.9.2-0...-bffd871 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorRegistry

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

func ProvideErrorTracker

func ProvideErrorTracker() *ErrorRegistry

func (*ErrorRegistry) Clear

func (r *ErrorRegistry) Clear(_ context.Context, pluginID string)

func (*ErrorRegistry) Error

func (r *ErrorRegistry) Error(_ context.Context, pluginID string) *plugins.Error

func (*ErrorRegistry) Errors

func (r *ErrorRegistry) Errors(_ context.Context) []*plugins.Error

func (*ErrorRegistry) Record

func (r *ErrorRegistry) Record(_ context.Context, err *plugins.Error)

type ErrorTracker

type ErrorTracker interface {
	Record(ctx context.Context, err *plugins.Error)
	Clear(ctx context.Context, pluginID string)
	Errors(ctx context.Context) []*plugins.Error
	Error(ctx context.Context, pluginID string) *plugins.Error
}

type Store

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

func ProvideStore

func ProvideStore(errs ErrorTracker) *Store

func (*Store) PluginError

func (s *Store) PluginError(ctx context.Context, pluginID string) *plugins.Error

func (*Store) PluginErrors

func (s *Store) PluginErrors(ctx context.Context) []*plugins.Error

Jump to

Keyboard shortcuts

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