2022-03-22 11:03:15 -04:00
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
2022-06-08 02:17:52 -04:00
|
|
|
"github.com/edgelesssys/constellation/internal/cloud/cloudtypes"
|
2022-03-22 11:03:15 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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"`
|
|
|
|
|
2022-06-29 09:26:29 -04:00
|
|
|
GCPWorkers cloudtypes.Instances `json:"gcpworkers,omitempty"`
|
|
|
|
GCPControlPlanes cloudtypes.Instances `json:"gcpcontrolplanes,omitempty"`
|
|
|
|
GCPWorkerInstanceGroup string `json:"gcpworkerinstancegroup,omitempty"`
|
|
|
|
GCPControlPlaneInstanceGroup string `json:"gcpcontrolplaneinstancegroup,omitempty"`
|
|
|
|
GCPWorkerInstanceTemplate string `json:"gcpworkerinstancetemplate,omitempty"`
|
|
|
|
GCPControlPlaneInstanceTemplate string `json:"gcpcontrolplaneinstancetemplate,omitempty"`
|
|
|
|
GCPNetwork string `json:"gcpnetwork,omitempty"`
|
|
|
|
GCPSubnetwork string `json:"gcpsubnetwork,omitempty"`
|
|
|
|
GCPFirewalls []string `json:"gcpfirewalls,omitempty"`
|
|
|
|
GCPBackendService string `json:"gcpbackendservice,omitempty"`
|
|
|
|
GCPHealthCheck string `json:"gcphealthcheck,omitempty"`
|
|
|
|
GCPForwardingRule string `json:"gcpforwardingrule,omitempty"`
|
|
|
|
GCPProject string `json:"gcpproject,omitempty"`
|
|
|
|
GCPZone string `json:"gcpzone,omitempty"`
|
|
|
|
GCPRegion string `json:"gcpregion,omitempty"`
|
|
|
|
GCPServiceAccount string `json:"gcpserviceaccount,omitempty"`
|
2022-03-22 11:03:15 -04:00
|
|
|
|
2022-06-29 09:26:29 -04:00
|
|
|
AzureWorkers cloudtypes.Instances `json:"azureworkers,omitempty"`
|
|
|
|
AzureControlPlane cloudtypes.Instances `json:"azurecontrolplanes,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"`
|
|
|
|
AzureWorkersScaleSet string `json:"azureworkersscaleset,omitempty"`
|
|
|
|
AzureControlPlanesScaleSet string `json:"azurecontrolplanesscaleset,omitempty"`
|
|
|
|
AzureADAppObjectID string `json:"azureadappobjectid,omitempty"`
|
2022-05-02 04:54:54 -04:00
|
|
|
|
2022-06-29 09:26:29 -04:00
|
|
|
QEMUWorkers cloudtypes.Instances `json:"qemuworkers,omitempty"`
|
|
|
|
QEMUControlPlane cloudtypes.Instances `json:"qemucontrolplanes,omitempty"`
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|