Documentation
¶
Overview ¶
Package spicedbx is the wrapper around spicedb client interaction
Package spicedbx is the wrapper around the spicedb client
Index ¶
- Variables
- func GenerateSchema(namespace string, resourceTypes []types.ResourceType) (string, error)
- func GeneratedSchema(namespace string) string
- func Healthcheck(client *authzed.Client) func(ctx context.Context) error
- func NewClient(cfg Config, enableTracing bool) (*authzed.Client, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorNoNamespace is returned when no namespace is provided with a query ErrorNoNamespace = errors.New("no namespace provided") )
Functions ¶
func GenerateSchema ¶
func GenerateSchema(namespace string, resourceTypes []types.ResourceType) (string, error)
GenerateSchema generates the spicedb schema from the template
func GeneratedSchema ¶
GeneratedSchema produces a namespaced SpiceDB schema based on the default IAPL policy.
func Healthcheck ¶
Healthcheck reads the schema to check if the connection is working
Types ¶
Click to show internal directories.
Click to hide internal directories.