Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + type Aspect struct + Name string + func (a *Aspect) Get(name string, value interface{}) error + func (a *Aspect) Set(name string, value interface{}) error + type DataBag interface + Data func() ([]byte, error) + Get func(path string, value interface{}) error + Set func(path string, value interface{}) error + type Directory struct + Name string + func NewAspectDirectory(name string, aspects map[string]interface{}, dataBag DataBag, schema Schema) (*Directory, error) + func (d *Directory) Aspect(aspect string) *Aspect + type JSONDataBag map[string]json.RawMessage + func NewJSONDataBag() JSONDataBag + func (s JSONDataBag) Data() ([]byte, error) + func (s JSONDataBag) Get(path string, value interface{}) error + func (s JSONDataBag) Set(path string, value interface{}) error + type JSONSchema struct + func NewJSONSchema() *JSONSchema + func (s *JSONSchema) Validate(jsonData []byte) error + type NotFoundError struct + Message string + func (e *NotFoundError) Error() string + func (e *NotFoundError) Is(err error) bool + type Schema interface + Validate func(data []byte) error