Documentation
¶
Index ¶
Constants ¶
View Source
const SupportedSchemaVersion int = 3
Variables ¶
View Source
var ErrInvalidIdentifier = errors.New("invalid identifier (" + msgInvalidIdentifier + ")")
Functions ¶
func ValidIdentifier ¶ added in v0.2.9
Types ¶
type Manifest ¶
type Manifest struct {
ModelInfo *ModelInfo `yaml:"model"`
ObjectTypes map[ObjectTypeName]*ObjectType `yaml:"types"`
}
func (*Manifest) ValidateNames ¶ added in v0.2.9
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.