special

package
v1.1.48 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 2 Imported by: 0

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 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,
	},
}

Functions

func IsIdProperty

func IsIdProperty(property *model.ResourceProperty) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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