plugin

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package plugin provides access control policy management for plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACPManager

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

ACPManager manages access control policy plugins and their lifecycle.

func NewACPManager

func NewACPManager(ctx context.Context) (*ACPManager, error)

NewACPManager creates and initializes a new ACPManager instance.

func (*ACPManager) HandleMessage

func (a *ACPManager) HandleMessage(
	ctx context.Context, req *protobyss.ACPContainer,
) ([]*protobyss.ACPContainer, error)

HandleMessage passes a message through all loaded ACP plugins and returns the resulting messages.

func (*ACPManager) Load

func (a *ACPManager) Load(ctx context.Context, path string) error

Load loads an ACP plugin from the given path.

type Logging

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

Logging implements WASM-host side logging so that plugin messages are visible in the logs.

func NewLogging

func NewLogging(logger zerolog.Logger, plugPath string) *Logging

NewLogging creates a new protobyss.Logging.

func (*Logging) Debug

func (l *Logging) Debug(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)

Debug logs a message at DEBUG level.

func (*Logging) Error

func (l *Logging) Error(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)

Error logs a message at ERROR level.

func (*Logging) Info

func (l *Logging) Info(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)

Info logs a message at INFO level.

func (*Logging) Warn

func (l *Logging) Warn(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)

Warn logs a message WARN level.

Jump to

Keyboard shortcuts

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