policy

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Settings *v1alpha1.Settings
	Event    *info.Event
	VCX      provider.Interface
	Logger   *zap.SugaredLogger
}

func (*Policy) IsAllowed

func (p *Policy) IsAllowed(ctx context.Context, tType info.TriggerType) (Result, error)

type Result

type Result int
const (
	ResultNotSet     Result = 0
	ResultAllowed    Result = 1
	ResultDisallowed Result = 2
)

Jump to

Keyboard shortcuts

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