2022-09-05 07:06:08 +00:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-04-13 11:01:38 +00:00
|
|
|
package cloudcmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2022-09-26 13:52:31 +00:00
|
|
|
"github.com/edgelesssys/constellation/v2/cli/internal/terraform"
|
2022-04-13 11:01:38 +00:00
|
|
|
)
|
|
|
|
|
2022-09-27 07:22:29 +00:00
|
|
|
type terraformClient interface {
|
2022-10-11 10:24:33 +00:00
|
|
|
CreateCluster(ctx context.Context, name string, input terraform.Variables) (string, error)
|
2022-09-27 07:22:29 +00:00
|
|
|
DestroyCluster(ctx context.Context) error
|
|
|
|
CleanUpWorkspace() error
|
|
|
|
RemoveInstaller()
|
2022-04-13 11:01:38 +00:00
|
|
|
}
|
|
|
|
|
2022-10-05 07:11:30 +00:00
|
|
|
type libvirtRunner interface {
|
|
|
|
Start(ctx context.Context, containerName, imageName string) error
|
|
|
|
Stop(ctx context.Context) error
|
|
|
|
}
|