Documentation ¶
Index ¶
Constants ¶
View Source
const (
ArrowIdentifier string = "->"
)
View Source
const SupportedSchemaVersion int = 3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manifest ¶
type Manifest struct { ModelInfo *ModelInfo `yaml:"model"` ObjectTypes map[ObjectTypeName]*ObjectType `yaml:"types"` }
type ModelInfo ¶
type ModelInfo struct {
Version SchemaVersion `yaml:"version"`
}
type ObjectType ¶
type ObjectType struct { Relations map[RelationName]string `yaml:"relations,omitempty"` Permissions map[PermissionName]string `yaml:"permissions,omitempty"` }
type ObjectTypeName ¶
type ObjectTypeName string
type PermissionName ¶
type PermissionName string
type RelationName ¶
type RelationName string
type SchemaVersion ¶
type SchemaVersion int
func (*SchemaVersion) UnmarshalYAML ¶
func (v *SchemaVersion) UnmarshalYAML(value *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.