actions

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gate

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

func New

func New(policy Policy, authorizationKey []byte) (*Gate, error)

func (*Gate) AuthorizeOnce

func (gate *Gate) AuthorizeOnce(
	request *antiflockv1.SecureActionRequest,
	prior *antiflockv1.SecureActionDecision,
	authorizedDestinations []string,
	expiresAt, now time.Time,
	explicitConsent bool,
) (*antiflockv1.SecureActionDecision, error)

func (*Gate) Evaluate

type Policy

type Policy struct {
	NodeIDs             []string
	ApplicationIDs      []string
	ActionTypes         []string
	DataClasses         []string
	Sensitivities       []string
	AllowedDestinations []string
	AllowOneTimeBypass  bool
	OneTimeBypassTTL    time.Duration
}

Jump to

Keyboard shortcuts

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