constellation/cli/internal/cloudcmd/clients.go
2022-10-13 15:29:29 +02:00

26 lines
540 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"
)
type terraformClient interface {
CreateCluster(ctx context.Context, name string, input terraform.Variables) (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
}