Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedSchema ¶
type ParsedSchema struct {
Entities EntityMap `json:"entities" yaml:"entities"`
SchemaHash string `json:"schemaHash" yaml:"schemaHash"`
Warnings []string `json:"warnings,omitempty" yaml:"warnings,omitempty"`
}
func Parse ¶
func Parse(zedFile string) (ret *ParsedSchema, err error)
Parse parses the provided zedFile and returns a mapping of the definitions it contains.
err will be non-nil if an error occurs while opening or compiling the schema file
type Relation ¶
type Relation struct {
Type string `json:"type" yaml:"type"`
Metadata Metadata `json:"metadata" yaml:"metadata"`
DownstreamPermissions []RelationTuple `json:"downstreamPermissions,omitempty" yaml:"downstreamPermissions,omitempty"`
AllowedDirectRelations []RelationTuple `json:"allowedDirectRelations,omitempty" yaml:"allowedDirectRelations,omitempty"`
}
type RelationTuple ¶
Click to show internal directories.
Click to hide internal directories.