Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NeedsBootstrap ¶
NeedsBootstrap checks if any bootstrap steps need to be run
Types ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner executes bootstrap steps
type State ¶
type State struct {
Version string `json:"version"`
LastRun time.Time `json:"last_run"`
Steps map[string]*StepState `json:"steps"`
}
State represents the bootstrap state
func (*State) UpdateStep ¶
UpdateStep updates the state of a bootstrap step
type StepState ¶
type StepState struct {
Status string `json:"status"` // completed, failed, skipped
CompletedAt time.Time `json:"completed_at"`
Target string `json:"target"`
Error string `json:"error,omitempty"`
LastAttempt time.Time `json:"last_attempt,omitempty"`
}
StepState represents the state of a single bootstrap step
Click to show internal directories.
Click to hide internal directories.