Make 'system_update' more generic

This commit is contained in:
Tom Wiesing 2022-09-19 14:56:28 +02:00
parent f7b8804c61
commit 881b538dff
No known key found for this signature in database
19 changed files with 250 additions and 222 deletions

View file

@ -32,20 +32,6 @@ type Component interface {
Base() *ComponentBase
}
// Installable implements an installable component.
type Installable interface {
Component
// Stack can be used to gain access to the "docker compose" stack.
//
// This should internally call [ComponentBase.MakeStack]
Stack(env environment.Environment) StackWithResources
// Context returns a new InstallationContext to be used during installation from the command line.
// Typically this should just pass through the parent, but might perform other tasks.
Context(parent InstallationContext) InstallationContext
}
// ComponentBase implements base functionality for a component
type ComponentBase struct {
Core // the core of the associated distillery