provision: Dynamically find components to provision
This commit is contained in:
parent
33cd18e9d9
commit
a5d9b1a386
5 changed files with 46 additions and 22 deletions
14
internal/component/provision.go
Normal file
14
internal/component/provision.go
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package component
|
||||
|
||||
import (
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
)
|
||||
|
||||
// Provisionable represents a component with a Provision method.
|
||||
type Provisionable interface {
|
||||
Component
|
||||
|
||||
// Provision provisions resources specific to the provided instance.
|
||||
// Domain holds the full (unique) domain name of the given instance.
|
||||
Provision(instance models.Instance, domain string) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue