wisski-cloud-distillery/internal/component/provision.go
2022-11-16 13:07:13 +01:00

18 lines
573 B
Go

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
}