Package org.projectnessie.services.cel
Class CELUtil
java.lang.Object
org.projectnessie.services.cel.CELUtil
A utility class for CEL declarations and other things.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface'Mirrored' interface wrapping aContentfor CEL to have convenience fields for CEL and to avoid missing fields due to@JsonIgnore.static interfaceBase interface for 'mirrored' wrappers exposing data to CEL expression about entities that are associated with keys.static interface'Mirrored' interface wrapping aKeyEntryfor CEL to have convenience fields and maintain backward compatibility to older ways of exposing this data to scripts..static interface'Mirrored' interface wrapping aOperationfor CEL to have convenience fields for CEL and to avoid missing fields due to@JsonIgnore. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl>static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl>static final Stringstatic final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl>static final org.projectnessie.model.CommitMetastatic final org.projectnessie.model.ReferenceMetadatastatic final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl>static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl>static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl>static final org.projectnessie.cel.tools.ScriptHoststatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Method Summary
-
Field Details
-
CONTAINER
- See Also:
-
SCRIPT_HOST
public static final org.projectnessie.cel.tools.ScriptHost SCRIPT_HOST -
VAR_REF
- See Also:
-
VAR_REF_TYPE
- See Also:
-
VAR_REF_META
- See Also:
-
VAR_COMMIT
- See Also:
-
VAR_KEY
- See Also:
-
VAR_ENTRY
- See Also:
-
VAR_PATH
- See Also:
-
VAR_ROLE
- See Also:
-
VAR_OP
- See Also:
-
VAR_OPERATIONS
- See Also:
-
VAR_REFLOG
- See Also:
-
REFERENCES_DECLARATIONS
public static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl> REFERENCES_DECLARATIONS -
COMMIT_LOG_DECLARATIONS
public static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl> COMMIT_LOG_DECLARATIONS -
CONTENT_KEY_DECLARATIONS
public static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl> CONTENT_KEY_DECLARATIONS -
ENTRIES_DECLARATIONS
public static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl> ENTRIES_DECLARATIONS -
AUTHORIZATION_RULE_DECLARATIONS
public static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl> AUTHORIZATION_RULE_DECLARATIONS -
COMMIT_LOG_TYPES
-
CONTENT_KEY_TYPES
-
REFLOG_TYPES
-
REFERENCES_TYPES
-
ENTRIES_TYPES
-
EMPTY_COMMIT_META
public static final org.projectnessie.model.CommitMeta EMPTY_COMMIT_META -
EMPTY_REFERENCE_METADATA
public static final org.projectnessie.model.ReferenceMetadata EMPTY_REFERENCE_METADATA -
REFLOG_DECLARATIONS
public static final List<org.projectnessie.cel.relocated.com.google.api.expr.v1alpha1.Decl> REFLOG_DECLARATIONS
-
-
Method Details
-
forCel
'Mirrors' Nessie model objects for CEL.- Parameters:
model- Nessie model object- Returns:
- object suitable for CEL expressions
-
forCel
public static Object forCel(org.projectnessie.model.ContentKey key, org.projectnessie.model.Content.Type type)
-