cel

package
v0.0.0-...-9e9722d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompiler

func NewCompiler() *compiler

Types

type ExternalClaimsMapper

type ExternalClaimsMapper interface {
	// EvalExternalClaims evaluates the given external claims and returns a list of EvaluationResult.
	// This is used for external claim source validation that contains multiple external claims.
	EvalExternalClaims(context.Context, traits.Mapper) ([]authenticationcel.EvaluationResult, error)
}

func NewExternalClaimsMapper

func NewExternalClaimsMapper(compilationResults ...authenticationcel.CompilationResult) ExternalClaimsMapper

type ExternalSourceCELMapper

type ExternalSourceCELMapper struct {
	URL        authenticationcel.ClaimsMapper
	Conditions authenticationcel.ClaimsMapper
	Sources    ExternalClaimsMapper
}

ExternalSourceCELMapper is a struct that holds the compiled expressions used when externally sourcing claims.

type ExternalSourceConditionExpression

type ExternalSourceConditionExpression struct {
	Expression string
}

func (*ExternalSourceConditionExpression) GetExpression

func (v *ExternalSourceConditionExpression) GetExpression() string

GetExpression returns the CEL expression.

func (*ExternalSourceConditionExpression) ReturnTypes

func (v *ExternalSourceConditionExpression) ReturnTypes() []*celgo.Type

ReturnTypes returns the CEL expression return types.

type ExternalSourceMappingExpression

type ExternalSourceMappingExpression struct {
	Claim      string
	Expression string
}

func (*ExternalSourceMappingExpression) GetExpression

func (v *ExternalSourceMappingExpression) GetExpression() string

GetExpression returns the CEL expression.

func (*ExternalSourceMappingExpression) ReturnTypes

func (v *ExternalSourceMappingExpression) ReturnTypes() []*celgo.Type

ReturnTypes returns the CEL expression return types.

type ExternalSourceURLExpression

type ExternalSourceURLExpression struct {
	Hostname       string
	PathExpression string
}

func (*ExternalSourceURLExpression) GetExpression

func (v *ExternalSourceURLExpression) GetExpression() string

GetExpression returns the CEL expression.

func (*ExternalSourceURLExpression) ReturnTypes

func (v *ExternalSourceURLExpression) ReturnTypes() []*celgo.Type

ReturnTypes returns the CEL expression return types.

Jump to

Keyboard shortcuts

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