Documentation
¶
Overview ¶
Package migrate checks collection format versions and plans the steps that upgrade older files to the current format.
Index ¶
Constants ¶
View Source
const CurrentFormat = 1
CurrentFormat is the collection format this version of Flow-I writes.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(format int) diag.Diagnostic
Check validates a manifest's format number. It returns the zero Diagnostic when the format is supported.
Types ¶
type Step ¶
type Step struct {
From int
Describe string
Apply func(files map[string][]byte) (map[string][]byte, error)
}
Step upgrades every file of a collection from format From to From+1. Files maps collection-relative paths to contents.
Click to show internal directories.
Click to hide internal directories.