MCPcopy Create free account
hub / github.com/Permify/permify / ReadEntityDefinition

Method ReadEntityDefinition

internal/storage/storage.go:115–115  ·  view source on GitHub ↗

ReadEntityDefinition reads entity config from the storage.

(ctx context.Context, tenantID, entityName, version string)

Source from the content-addressed store, hash-verified

113 ReadSchemaString(ctx context.Context, tenantID, version string) (definitions []string, err error)
114 // ReadEntityDefinition reads entity config from the storage.
115 ReadEntityDefinition(ctx context.Context, tenantID, entityName, version string) (definition *base.EntityDefinition, v string, err error)
116 // ReadRuleDefinition reads rule config from the storage.
117 ReadRuleDefinition(ctx context.Context, tenantID, ruleName, version string) (definition *base.RuleDefinition, v string, err error)
118 // HeadVersion reads the latest version of the schema from the storage.

Callers 15

RunWithShapeMethod · 0.65
validateFunction · 0.65
ReadEntityDefinitionMethod · 0.65
ReadEntityDefinitionMethod · 0.65
ReadEntityDefinitionMethod · 0.65
WriteMethod · 0.65
WriteRelationshipsMethod · 0.65
SubjectPermissionMethod · 0.65
SubjectFilterMethod · 0.65

Implementers 7

NoopSchemaReaderinternal/storage/storage.go
SchemaReaderinternal/storage/proxies/cache/schema_
SchemaReaderinternal/storage/proxies/circuitbreake
SchemaReaderinternal/storage/proxies/singleflight/
SchemaReaderinternal/storage/postgres/schema_reade
SchemaReaderinternal/storage/memory/schema_reader.
mockSchemaReaderinternal/engines/lookup_test.go

Calls

no outgoing calls

Tested by

no test coverage detected