mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
bd63aa3c6b
sed -i '1i/*\nCopyright (c) Edgeless Systems GmbH\n\nSPDX-License-Identifier: AGPL-3.0-only\n*/\n' `grep -rL --include='*.go' 'DO NOT EDIT'` gofumpt -w .
41 lines
1.3 KiB
Go
41 lines
1.3 KiB
Go
/*
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
package cloudcmd
|
|
|
|
import (
|
|
"context"
|
|
|
|
azurecl "github.com/edgelesssys/constellation/cli/internal/azure/client"
|
|
gcpcl "github.com/edgelesssys/constellation/cli/internal/gcp/client"
|
|
"github.com/edgelesssys/constellation/internal/state"
|
|
)
|
|
|
|
type gcpclient interface {
|
|
GetState() state.ConstellationState
|
|
SetState(state.ConstellationState)
|
|
CreateVPCs(ctx context.Context) error
|
|
CreateFirewall(ctx context.Context, input gcpcl.FirewallInput) error
|
|
CreateInstances(ctx context.Context, input gcpcl.CreateInstancesInput) error
|
|
CreateLoadBalancers(ctx context.Context) error
|
|
TerminateFirewall(ctx context.Context) error
|
|
TerminateVPCs(context.Context) error
|
|
TerminateLoadBalancers(context.Context) error
|
|
TerminateInstances(context.Context) error
|
|
Close() error
|
|
}
|
|
|
|
type azureclient interface {
|
|
GetState() state.ConstellationState
|
|
SetState(state.ConstellationState)
|
|
CreateApplicationInsight(ctx context.Context) error
|
|
CreateExternalLoadBalancer(ctx context.Context) error
|
|
CreateVirtualNetwork(ctx context.Context) error
|
|
CreateSecurityGroup(ctx context.Context, input azurecl.NetworkSecurityGroupInput) error
|
|
CreateInstances(ctx context.Context, input azurecl.CreateInstancesInput) error
|
|
TerminateResourceGroupResources(ctx context.Context) error
|
|
}
|