effector

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EffectAllow = "allow"
	EffectDeny  = "deny"
)

Variables

This section is empty.

Functions

func NewAllowAndDeny

func NewAllowAndDeny(effectKey string) core.Effector

New an allow-and-deny effector.

The effector return allow when any matched policy is allow, and there is no any matched policy is deny.

There is must be an effect column in policy.

Valid effect values:

  • allow
  • deny

func NewAllowOverride

func NewAllowOverride() core.Effector

New an allow-override effector.

The effector return allow when any matched policy is allow. There is no effect column, policy is default to be allow effect.

func NewDenyOverride

func NewDenyOverride(policyEffectKey string) core.Effector

New an deny-override effector.

The effector return allow when there is no any matched policy is deny. There is must be an effect column in policy.

Valid effect values:

  • allow
  • deny

Types

This section is empty.

Jump to

Keyboard shortcuts

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