Documentation
¶
Overview ¶
Package seed decides how a stack's first up fills it with data: which volumes come from a snapshot, and which services run a seed command. Everything here is a pure function.
Index ¶
Constants ¶
View Source
const ( Label = "dev.siding.seed" LabelCommand = "dev.siding.seed.command" )
Labels on a service.
View Source
const ( Volume = "volume" None = "none" Script = "script" )
Values of Label.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plan ¶
type Plan struct {
// Volumes are the keys of the own named volumes that come from the snapshot.
Volumes []string
// Scripts run in compose order once their service is ready.
Scripts []Run
}
Plan is what a first up seeds.
func Make ¶
Make validates the seed labels of p and returns the plan of a first up. Volumes are only planned when there is a snapshot to seed from; scripts always run on a first up.
Click to show internal directories.
Click to hide internal directories.