policies

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package policy provides policy and permission interfaces for OpenBotStack.

Policy enforcement happens in the control plane BEFORE execution. The runtime blindly executes; the control plane governs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllowAllEnforcer

type AllowAllEnforcer struct{}

AllowAllEnforcer is a stub implementation of PolicyEnforcer that permits all actions.

func NewAllowAllEnforcer

func NewAllowAllEnforcer() *AllowAllEnforcer

NewAllowAllEnforcer creates a new AllowAllEnforcer.

func (*AllowAllEnforcer) IsAllowed

func (e *AllowAllEnforcer) IsAllowed(action string, context map[string]any) (bool, error)

IsAllowed always returns true, nil.

type PolicyEnforcer

type PolicyEnforcer interface {
	// IsAllowed checks if the action is permitted for the given context.
	IsAllowed(action string, context map[string]any) (bool, error)
}

PolicyEnforcer checks whether an action is permitted. Full definition deferred to future implementation.

Jump to

Keyboard shortcuts

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