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