internal/component => internal/dis/component
This commit is contained in:
parent
9443217441
commit
b5b1ce2340
123 changed files with 76 additions and 76 deletions
18
internal/dis/component/provision.go
Normal file
18
internal/dis/component/provision.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package component
|
||||
|
||||
import (
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
)
|
||||
|
||||
// Provisionable is a component that can be provisioned
|
||||
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
|
||||
|
||||
// Purge purges resources specific to the provided instance.
|
||||
// Domain holds the full (unique) domain name of the given instance.
|
||||
Purge(instance models.Instance, domain string) error
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue