Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
RegisterSchema attempts to decode and parse a schema from the provided file reader. The file must follow the correct specification otherwise an error will be returned.
Types ¶
type Item ¶
type Item interface {
// contains filtered or unexported methods
}
Item holds the data that identifies an item. It is implemented by ItemMeta.
type ItemMeta ¶
ItemMeta holds the name and meta values of an item.
func Upgrade ¶
Upgrade upgrades the given item using the registered item upgrade schemas. If an Item has not been changed through several versions, Upgrade will simply return the original value. Calling itemupgrader.Upgrade is therefore safe regardless of whether the item is already up-to-date or not.
Click to show internal directories.
Click to hide internal directories.