2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2022-03-22 11:03:15 -04:00
|
|
|
package state
|
|
|
|
|
|
|
|
import (
|
2022-09-21 07:47:57 -04:00
|
|
|
"github.com/edgelesssys/constellation/v2/internal/cloud/cloudtypes"
|
2022-03-22 11:03:15 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
// ConstellationState is the state of a Constellation.
|
|
|
|
type ConstellationState struct {
|
2022-08-01 10:51:34 -04:00
|
|
|
Name string `json:"name,omitempty"`
|
|
|
|
UID string `json:"uid,omitempty"`
|
|
|
|
CloudProvider string `json:"cloudprovider,omitempty"`
|
|
|
|
LoadBalancerIP string `json:"bootstrapperhost,omitempty"`
|
2022-03-22 11:03:15 -04:00
|
|
|
|
2022-07-29 02:10:51 -04:00
|
|
|
AzureWorkerInstances cloudtypes.Instances `json:"azureworkers,omitempty"`
|
|
|
|
AzureControlPlaneInstances cloudtypes.Instances `json:"azurecontrolplanes,omitempty"`
|
2022-06-29 09:26:29 -04:00
|
|
|
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"`
|
2022-07-29 02:10:51 -04:00
|
|
|
AzureWorkerScaleSet string `json:"azureworkersscaleset,omitempty"`
|
|
|
|
AzureControlPlaneScaleSet string `json:"azurecontrolplanesscaleset,omitempty"`
|
2022-06-29 09:26:29 -04:00
|
|
|
AzureADAppObjectID string `json:"azureadappobjectid,omitempty"`
|
2022-05-02 04:54:54 -04:00
|
|
|
|
2022-07-29 02:10:51 -04:00
|
|
|
QEMUWorkerInstances cloudtypes.Instances `json:"qemuworkers,omitempty"`
|
|
|
|
QEMUControlPlaneInstances cloudtypes.Instances `json:"qemucontrolplanes,omitempty"`
|
2022-03-22 11:03:15 -04:00
|
|
|
}
|