Documentation
¶
Overview ¶
Package plugin provides access control policy management for plugins.
Index ¶
- type ACPManager
- type Logging
- func (l *Logging) Debug(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)
- func (l *Logging) Error(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)
- func (l *Logging) Info(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)
- func (l *Logging) Warn(ctx context.Context, msg *protobyss.LogMessage) (*emptypb.Empty, error)
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.
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 ¶
NewLogging creates a new protobyss.Logging.
Click to show internal directories.
Click to hide internal directories.