Base envoy codegen

This commit is contained in:
Tomaž Jerman
2023-03-17 10:58:46 +01:00
parent 735cb155f5
commit 804d59722a
84 changed files with 13840 additions and 67 deletions
+7
View File
@@ -107,6 +107,8 @@ import (
// defines a custom field identifier when constructing
// resource filters and assigning reference constraints
filterRefField: string | *""
omitRefFilter: bool | *false
}
}
@@ -224,6 +226,11 @@ HandleField: {
AttributeUserRef: {
goType: "uint64"
dal: { type: "Ref", refModelResType: "corteza::system:user", default: 0 }
envoy: {
store: {
omitRefFilter: true
}
}
}
SortableTimestampField: {
+10 -6
View File
@@ -90,10 +90,7 @@ import (
}
envoy?: #resourceEnvoy & {
// @todo temporary; easier development on less resources
use: bool | *false
omit: bool | *false
$resourceIdent: ident
}
@@ -147,8 +144,6 @@ import (
#resourceEnvoy: {
$resourceIdent: string
// @todo remove use, temporary for now
use: bool
omit: bool
// Scoped resources prioritize matching with resources in the same scope.
@@ -174,13 +169,22 @@ import (
supportMappedInput: bool | *true
// mappedField controls what identifier the map key represents
// @todo this can probably be inferred so consider removing it.
mappedField: string
mappedField: string | *""
identKeyLabel: string | *strings.ToLower($resourceIdent)
identKeyAlias: [...string] | *[]
// identKeys defines all of the identifiers that can be used when
// referencing this resource
identKeys: [...string] | *([identKeyLabel]+identKeyAlias)
extendedResourceDecoders: [...{
ident: string
expIdent: string
identKeys: [...string]
supportMappedInput: bool | *true
mappedField: string | *""
}] | *[]
}
// store decode/encode configs