Documentation ¶
Index ¶
- Constants
- Variables
- func Access2Mode(access types.Access) (mode uint32)
- func AddInternalAnnotation(obj *types.Object, key, value string, encode bool)
- func AnnotationContent2RawData(ann *types.AnnotationItem) ([]byte, error)
- func CreateMirrorObject(src, newParent *types.Object, attr types.ObjectAttr) (*types.Object, error)
- func DeleteAnnotation(obj *types.Object, key string)
- func GetInternalAnnotation(obj *types.Object, key string) *types.AnnotationItem
- func InitRootObject() *types.Object
- func IsAccess(access types.Access, mask uint32) error
- func IsMirrorObject(obj *types.Object) bool
- func RawData2AnnotationContent(raw []byte) string
- func UpdateAccessWithMode(access *types.Access, mode uint32)
- type Schema
- type SchemaRegistry
- func (s *SchemaRegistry) GetSchema(cType types.Kind) interface{}
- func (s *SchemaRegistry) GetSchemaTypes() []types.Kind
- func (s *SchemaRegistry) GetSchemas() []Schema
- func (s *SchemaRegistry) IsStructuredType(cType types.Kind) bool
- func (s *SchemaRegistry) Register(cType types.Kind, version string, spec interface{})
Constants ¶
View Source
const (
RootObjectID = "root"
)
Variables ¶
View Source
var Registry = &SchemaRegistry{schemas: []Schema{}, schemaTypes: []types.Kind{}}
Functions ¶
func Access2Mode ¶
func AddInternalAnnotation ¶
func AnnotationContent2RawData ¶
func AnnotationContent2RawData(ann *types.AnnotationItem) ([]byte, error)
func CreateMirrorObject ¶
func DeleteAnnotation ¶
func GetInternalAnnotation ¶
func GetInternalAnnotation(obj *types.Object, key string) *types.AnnotationItem
func InitRootObject ¶
func IsMirrorObject ¶
func UpdateAccessWithMode ¶
Types ¶
type SchemaRegistry ¶
type SchemaRegistry struct {
// contains filtered or unexported fields
}
func (*SchemaRegistry) GetSchema ¶
func (s *SchemaRegistry) GetSchema(cType types.Kind) interface{}
func (*SchemaRegistry) GetSchemaTypes ¶
func (s *SchemaRegistry) GetSchemaTypes() []types.Kind
func (*SchemaRegistry) GetSchemas ¶
func (s *SchemaRegistry) GetSchemas() []Schema
func (*SchemaRegistry) IsStructuredType ¶
func (s *SchemaRegistry) IsStructuredType(cType types.Kind) bool
Click to show internal directories.
Click to hide internal directories.