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

Method ReadRuleDefinition

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

ReadRuleDefinition reads rule config from the storage.

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

Source from the content-addressed store, hash-verified

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.
119 HeadVersion(ctx context.Context, tenantID string) (version string, err error)
120 // ListSchemas lists all schemas from the storage

Callers 9

ReadRuleDefinitionMethod · 0.65
ReadRuleDefinitionMethod · 0.65
ReadRuleDefinitionMethod · 0.65
expandDirectCallMethod · 0.65
checkDirectCallMethod · 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