mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-25 15:39:37 -05:00
2d8fcd9bf4
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
44 lines
2.4 KiB
Go
44 lines
2.4 KiB
Go
package state
|
|
|
|
import (
|
|
"github.com/edgelesssys/constellation/cli/azure"
|
|
"github.com/edgelesssys/constellation/cli/ec2"
|
|
"github.com/edgelesssys/constellation/cli/gcp"
|
|
)
|
|
|
|
// ConstellationState is the state of a Constellation.
|
|
type ConstellationState struct {
|
|
Name string `json:"name,omitempty"`
|
|
UID string `json:"uid,omitempty"`
|
|
CloudProvider string `json:"cloudprovider,omitempty"`
|
|
|
|
EC2Instances ec2.Instances `json:"ec2instances,omitempty"`
|
|
EC2SecurityGroup string `json:"ec2securitygroup,omitempty"`
|
|
|
|
GCPNodes gcp.Instances `json:"gcpnodes,omitempty"`
|
|
GCPCoordinators gcp.Instances `json:"gcpcoordinators,omitempty"`
|
|
GCPNodeInstanceGroup string `json:"gcpnodeinstancegroup,omitempty"`
|
|
GCPCoordinatorInstanceGroup string `json:"gcpcoordinatorinstancegroup,omitempty"`
|
|
GCPNodeInstanceTemplate string `json:"gcpnodeinstancetemplate,omitempty"`
|
|
GCPCoordinatorInstanceTemplate string `json:"gcpcoordinatorinstancetemplate,omitempty"`
|
|
GCPNetwork string `json:"gcpnetwork,omitempty"`
|
|
GCPSubnetwork string `json:"gcpsubnetwork,omitempty"`
|
|
GCPFirewalls []string `json:"gcpfirewalls,omitempty"`
|
|
GCPProject string `json:"gcpproject,omitempty"`
|
|
GCPZone string `json:"gcpzone,omitempty"`
|
|
GCPRegion string `json:"gcpregion,omitempty"`
|
|
GCPServiceAccount string `json:"gcpserviceaccount,omitempty"`
|
|
|
|
AzureNodes azure.Instances `json:"azurenodes,omitempty"`
|
|
AzureCoordinators azure.Instances `json:"azurecoordinators,omitempty"`
|
|
AzureResourceGroup string `json:"azureresourcegroup,omitempty"`
|
|
AzureLocation string `json:"azurelocation,omitempty"`
|
|
AzureSubscription string `json:"azuresubscription,omitempty"`
|
|
AzureTenant string `json:"azuretenant,omitempty"`
|
|
AzureSubnet string `json:"azuresubnet,omitempty"`
|
|
AzureNetworkSecurityGroup string `json:"azurenetworksecuritygroup,omitempty"`
|
|
AzureNodesScaleSet string `json:"azurenodesscaleset,omitempty"`
|
|
AzureCoordinatorsScaleSet string `json:"azurecoordinatorsscaleset,omitempty"`
|
|
AzureADAppObjectID string `json:"azureadappobjectid,omitempty"`
|
|
}
|