modelgraph

package
v1.15.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const CacheKeyPrefix = "wg|"
View Source
const DELIMITER = "|"

Variables

View Source
var ErrGraphError = errors.New("authorization model graph error")
View Source
var ErrInvalidModel = errors.New("invalid authorization model encountered")
View Source
var ErrModelNotFound = errors.New("authorization model not found")

Functions

func WildcardRelationReference

func WildcardRelationReference(objectType string) *openfgav1.RelationReference

Types

type AuthorizationModelGraph

type AuthorizationModelGraph struct {
	*authzGraph.WeightedAuthorizationModelGraph
	// contains filtered or unexported fields
}

func (*AuthorizationModelGraph) CanApplyRecursion

func (*AuthorizationModelGraph) FlattenNode

func (m *AuthorizationModelGraph) FlattenNode(node *authzGraph.WeightedAuthorizationModelNode, userType string, hasWildcardRequest bool, recursivePath bool) ([]*authzGraph.WeightedAuthorizationModelEdge, error)

func (*AuthorizationModelGraph) GetConditions

func (*AuthorizationModelGraph) GetDirectEdgeFromNodeForUserType

func (m *AuthorizationModelGraph) GetDirectEdgeFromNodeForUserType(objectRelation string, userType string) (*authzGraph.WeightedAuthorizationModelEdge, error)

func (*AuthorizationModelGraph) GetModelID

func (m *AuthorizationModelGraph) GetModelID() string

type AuthorizationModelGraphResolver

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

func (*AuthorizationModelGraphResolver) Resolve

Jump to

Keyboard shortcuts

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