fragments

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FragmentNotFoundError

type FragmentNotFoundError struct {
	TenantId     tenant.Id
	FragmentName string
}

func (*FragmentNotFoundError) Error

func (e *FragmentNotFoundError) Error() string

type FragmentStorer

type FragmentStorer interface {
	GetAllFragments(context.Context) ([]route.PluginConfig, error)
	GetFragment(context.Context, tenant.Id, string) (route.PluginConfig, error)
	GetAllTenantFragments(ctx context.Context, id tenant.Id) ([]route.PluginConfig, error)
	SetFragment(context.Context, tenant.Id, route.PluginConfig) error
	SetFragments(context.Context, tenant.Id, []route.PluginConfig) error
	DeleteFragment(context.Context, tenant.Id, string) error
	DeleteFragments(context.Context, tenant.Id, []string) error
}

FragmentStorer stores fragments of route configuration. A fragment is a plugin configuration identified by its unique name and tenant. A fragment can represent a receiver, sender or filter plugin configuration and is always of type route.PluginConfig.

type InvalidFragmentError

type InvalidFragmentError struct {
	Err error
}

func (*InvalidFragmentError) Error

func (e *InvalidFragmentError) Error() string

func (*InvalidFragmentError) Unwrap

func (e *InvalidFragmentError) Unwrap() error

Jump to

Keyboard shortcuts

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