dentry

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RootObjectID = "root"
)

Variables

View Source
var Registry = &SchemaRegistry{schemas: []Schema{}, schemaTypes: []types.Kind{}}

Functions

func Access2Mode

func Access2Mode(access types.Access) (mode uint32)

func AddInternalAnnotation

func AddInternalAnnotation(obj *types.Object, key, value string, encode bool)

func AnnotationContent2RawData

func AnnotationContent2RawData(ann *types.AnnotationItem) ([]byte, error)

func CreateMirrorObject

func CreateMirrorObject(src, newParent *types.Object, attr types.ObjectAttr) (*types.Object, error)

func DeleteAnnotation

func DeleteAnnotation(obj *types.Object, key string)

func GetInternalAnnotation

func GetInternalAnnotation(obj *types.Object, key string) *types.AnnotationItem

func InitRootObject

func InitRootObject() *types.Object

func IsAccess

func IsAccess(access types.Access, mask uint32) error

func IsMirrorObject

func IsMirrorObject(obj *types.Object) bool

func RawData2AnnotationContent

func RawData2AnnotationContent(raw []byte) string

func UpdateAccessWithMode

func UpdateAccessWithMode(access *types.Access, mode uint32)

Types

type Schema

type Schema struct {
	CType   types.Kind
	Version string
	Spec    reflect.Type
}

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

func (*SchemaRegistry) Register

func (s *SchemaRegistry) Register(cType types.Kind, version string, spec interface{})

Jump to

Keyboard shortcuts

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