mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-18 12:24:32 -05:00
28 lines
656 B
Go
28 lines
656 B
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package cloudcmd
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/edgelesssys/constellation/v2/cli/internal/terraform"
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudprovider"
|
|
)
|
|
|
|
type terraformClient interface {
|
|
PrepareWorkspace(provider cloudprovider.Provider, input terraform.Variables) error
|
|
CreateCluster(ctx context.Context) (string, error)
|
|
DestroyCluster(ctx context.Context) error
|
|
CleanUpWorkspace() error
|
|
RemoveInstaller()
|
|
}
|
|
|
|
type libvirtRunner interface {
|
|
Start(ctx context.Context, containerName, imageName string) error
|
|
Stop(ctx context.Context) error
|
|
}
|