policy

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package policy provides an EnginePlugin that registers the policy.mock module type and policy pipeline step types (step.policy_evaluate, step.policy_load, step.policy_list, step.policy_test). For OPA or Cedar backends, use the workflow-plugin-policy-opa or workflow-plugin-policy-cedar external plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct {
	plugin.BaseEnginePlugin
}

Plugin registers policy engine modules and pipeline steps.

func New

func New() *Plugin

New creates a new policy plugin.

func (*Plugin) Capabilities

func (p *Plugin) Capabilities() []capability.Contract

Capabilities returns the capability contracts defined by this plugin.

func (*Plugin) ModuleFactories

func (p *Plugin) ModuleFactories() map[string]plugin.ModuleFactory

ModuleFactories returns factories for policy.mock. For OPA or Cedar backends, use the workflow-plugin-policy-opa or workflow-plugin-policy-cedar external plugins.

func (*Plugin) ModuleSchemas

func (p *Plugin) ModuleSchemas() []*schema.ModuleSchema

ModuleSchemas returns UI schema definitions for policy module types.

func (*Plugin) StepFactories

func (p *Plugin) StepFactories() map[string]plugin.StepFactory

StepFactories returns the policy step factories.

Jump to

Keyboard shortcuts

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