Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnnotationsProperty = &model.ResourceProperty{ Name: "annotations", Type: model.ResourceProperty_MAP, Required: false, Immutable: false, Item: &model.ResourceProperty{ Type: model.ResourceProperty_STRING, }, Annotations: map[string]string{ annotations.SpecialProperty: "true", }, }
View Source
var AuditProperties = []*model.ResourceProperty{ AuditPropertyCreatedBy, AuditPropertyUpdatedBy, AuditPropertyCreatedOn, AuditPropertyUpdatedOn, }
View Source
var AuditPropertyCreatedBy = &model.ResourceProperty{ Name: "createdBy", Type: model.ResourceProperty_STRING, Length: 256, Required: true, Immutable: true, Annotations: map[string]string{ annotations.SpecialProperty: "true", }, }
View Source
var AuditPropertyCreatedOn = &model.ResourceProperty{ Name: "createdOn", Type: model.ResourceProperty_TIMESTAMP, Required: true, Immutable: true, Annotations: map[string]string{ annotations.SpecialProperty: "true", }, }
View Source
var AuditPropertyUpdatedBy = &model.ResourceProperty{ Name: "updatedBy", Type: model.ResourceProperty_STRING, Length: 256, Required: false, Annotations: map[string]string{ annotations.SpecialProperty: "true", }, }
View Source
var AuditPropertyUpdatedOn = &model.ResourceProperty{ Name: "updatedOn", Type: model.ResourceProperty_TIMESTAMP, Required: false, Annotations: map[string]string{ annotations.SpecialProperty: "true", }, }
View Source
var IdProperty = &model.ResourceProperty{ Name: "id", Type: model.ResourceProperty_UUID, Required: true, Immutable: true, Annotations: map[string]string{ annotations.SpecialProperty: "true", annotations.PrimaryProperty: "true", }, }
View Source
var SecurityContextDisallowAll = []*model.Permission{ { Operation: model.OperationType_FULL, Role: rootRoleName, Permit: model.PermitType_PERMIT_TYPE_ALLOW, }, }
View Source
var VersionProperty = &model.ResourceProperty{ Name: "version", Type: model.ResourceProperty_INT32, Required: true, Annotations: map[string]string{ annotations.SpecialProperty: annotations.Enabled, annotations.AllowEmptyPrimitive: annotations.Enabled, }, }
Functions ¶
func IsIdProperty ¶
func IsIdProperty(property *model.ResourceProperty) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.