computed

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeBulkCheck

func ComputeBulkCheck(
	ctx context.Context,
	d dispatch.Check,
	params CheckParameters,
	resourceIDs []string,
) (map[string]*v1.ResourceCheckResult, *v1.ResponseMeta, error)

ComputeBulkCheck computes a check result for the given resources and subject, computing any caveat expressions found.

func ComputeCheck

func ComputeCheck(
	ctx context.Context,
	d dispatch.Check,
	params CheckParameters,
	resourceID string,
) (*v1.ResourceCheckResult, *v1.ResponseMeta, error)

ComputeCheck computes a check result for the given resource and subject, computing any caveat expressions found.

Types

type CheckParameters

type CheckParameters struct {
	ResourceType       *core.RelationReference
	Subject            *core.ObjectAndRelation
	CaveatContext      map[string]any
	AtRevision         datastore.Revision
	MaximumDepth       uint32
	IsDebuggingEnabled bool
}

CheckParameters are the parameters for the ComputeCheck call. *All* are required.

Jump to

Keyboard shortcuts

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