Documentation ¶
Index ¶
- type Cluster
- type ClusterDefinition
- func (c *ClusterDefinition) BuildClusterDefinitions() GeneratedClusterCreationRequests
- func (c *ClusterDefinition) GenerateDeploymentRequest() zeus_req_types.ClusterTopologyDeployRequest
- func (c *ClusterDefinition) GenerateSkeletonBaseCharts() ([]ClusterSkeletonBaseDefinition, error)
- func (c *ClusterDefinition) UploadChartsFromClusterDefinition(ctx context.Context, z zeus_client.ZeusClient, print bool) ([]zeus_resp_types.TopologyCreateResponse, error)
- type ClusterPreviewWorkloads
- type ClusterPreviewWorkloadsOlympus
- type ClusterSkeletonBaseDefinition
- type ClusterSkeletonBaseDefinitions
- type ComponentBaseDefinition
- type ComponentBases
- type GeneratedClusterCreationRequests
- type SkeletonBase
- type SkeletonBases
- type WorkloadDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { ClusterName string `json:"clusterName"` ComponentBases ComponentBases `json:"componentBases"` IngressSettings zk8s_templates.Ingress `json:"ingressSettings"` IngressPaths map[string]zk8s_templates.IngressPath `json:"ingressPaths"` FilePath filepaths.Path `json:"-"` }
func GenerateDeploymentCluster ¶
func GenerateDeploymentCluster(ctx context.Context, wd WorkloadDefinition) (*Cluster, error)
type ClusterDefinition ¶
type ClusterDefinition struct { ClusterClassName string CloudCtxNs zeus_common_types.CloudCtxNs ComponentBases map[string]ComponentBaseDefinition FilterSkeletonBaseUploads *strings_filter.FilterOpts DisablePrint bool UseEmbeddedWorkload bool }
func PreviewTemplateGeneration ¶
func PreviewTemplateGeneration(ctx context.Context, cluster *Cluster) (ClusterDefinition, error)
func (*ClusterDefinition) BuildClusterDefinitions ¶
func (c *ClusterDefinition) BuildClusterDefinitions() GeneratedClusterCreationRequests
func (*ClusterDefinition) GenerateDeploymentRequest ¶
func (c *ClusterDefinition) GenerateDeploymentRequest() zeus_req_types.ClusterTopologyDeployRequest
func (*ClusterDefinition) GenerateSkeletonBaseCharts ¶
func (c *ClusterDefinition) GenerateSkeletonBaseCharts() ([]ClusterSkeletonBaseDefinition, error)
func (*ClusterDefinition) UploadChartsFromClusterDefinition ¶
func (c *ClusterDefinition) UploadChartsFromClusterDefinition(ctx context.Context, z zeus_client.ZeusClient, print bool) ([]zeus_resp_types.TopologyCreateResponse, error)
type ClusterPreviewWorkloads ¶
type ClusterPreviewWorkloads struct { ClusterName string `json:"clusterName"` ComponentBases map[string]map[string]topology_workloads.TopologyBaseInfraWorkload `json:"componentBases"` }
func GenerateSkeletonBaseChartsPreview ¶
func GenerateSkeletonBaseChartsPreview(ctx context.Context, cluster *Cluster) (ClusterPreviewWorkloads, error)
type ClusterSkeletonBaseDefinition ¶
type ClusterSkeletonBaseDefinition struct { SkeletonBaseChart zeus_req_types.TopologyCreateRequest SkeletonBaseNameChartPath filepaths.Path TopologyID int Workload topology_workloads.TopologyBaseInfraWorkload TopologyConfigDriver *zeus_topology_config_drivers.TopologyConfigDriver }
type ClusterSkeletonBaseDefinitions ¶
type ClusterSkeletonBaseDefinitions []ClusterSkeletonBaseDefinition
type ComponentBaseDefinition ¶
type ComponentBaseDefinition struct {
SkeletonBases map[string]ClusterSkeletonBaseDefinition
}
type ComponentBases ¶
type ComponentBases map[string]SkeletonBases
type GeneratedClusterCreationRequests ¶
type GeneratedClusterCreationRequests struct { ClusterClassRequest zeus_req_types.TopologyCreateClusterClassRequest ComponentBasesRequests zeus_req_types.TopologyCreateOrAddComponentBasesToClassesRequest SkeletonBasesRequests []zeus_req_types.TopologyCreateOrAddSkeletonBasesToClassesRequest }
func CreateGeneratedClusterClassCreationRequest ¶
func CreateGeneratedClusterClassCreationRequest(c *Cluster) GeneratedClusterCreationRequests
func (*GeneratedClusterCreationRequests) CreateClusterClassDefinitions ¶
func (gcd *GeneratedClusterCreationRequests) CreateClusterClassDefinitions(ctx context.Context, z zeus_client.ZeusClient) error
type SkeletonBase ¶
type SkeletonBase struct { TopologyID string `json:"topologyID,omitempty"` AddStatefulSet bool `json:"addStatefulSet"` AddDeployment bool `json:"addDeployment"` AddConfigMap bool `json:"addConfigMap"` AddService bool `json:"addService"` AddIngress bool `json:"addIngress"` AddServiceMonitor bool `json:"addServiceMonitor"` ConfigMap zk8s_templates.ConfigMap `json:"configMap,omitempty"` Deployment zk8s_templates.Deployment `json:"deployment,omitempty"` StatefulSet zk8s_templates.StatefulSet `json:"statefulSet,omitempty"` Containers zk8s_templates.Containers `json:"containers,"` }
type SkeletonBases ¶
type SkeletonBases map[string]SkeletonBase
type WorkloadDefinition ¶
type WorkloadDefinition struct { WorkloadName string `json:"workloadName"` ReplicaCount int `json:"replicaCount"` Containers zk8s_templates.Containers `json:"containers"` FilePath filepaths.Path `json:"-"` }
Click to show internal directories.
Click to hide internal directories.