policy

package
v0.0.0-...-c043ed3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageRequest

type ImageRequest struct {
	Path           string
	Method         string
	Header         http.Header
	NumberOfImages int
	SizeOfImages   int64
}

type ImageRequestsEngine

type ImageRequestsEngine interface {
	IsAllowed(ctx context.Context, request ImageRequest) (bool, error)
}

func NewImageRequestsEngine

func NewImageRequestsEngine(regoPath string) ImageRequestsEngine

Jump to

Keyboard shortcuts

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