Files
2026-11-26 17:13:28 +03:00

432 lines
20 KiB
Go
Executable File

// Code generated by internal codegen utility; DO NOT EDIT.
package shared
type AlertmanagerParams struct {
Affinity string `json:"affinity"`
CPULimit string `json:"cpuLimit"`
CPURequest string `json:"cpuRequest"`
Enabled bool `json:"enabled"`
HostnamePrefix string `json:"hostnamePrefix"`
MemoryLimit string `json:"memoryLimit"`
MemoryRequest string `json:"memoryRequest"`
Namespace string `json:"namespace"`
Replicas int64 `json:"replicas"`
Retention string `json:"retention"`
ServicePort int64 `json:"servicePort"`
ServiceTargetPort int64 `json:"serviceTargetPort"`
StorageClass string `json:"storageClass"`
StorageSize string `json:"storageSize"`
Tolerations string `json:"tolerations"`
WorkerGroupName string `json:"workerGroupName"`
}
type CreateClusterRequest struct {
// App repository
AppContainerRepository int64 `json:"appContainerRepository"`
// Audit log enable
AuditEnable bool `json:"auditEnable"`
// Audit log max age
AuditLogMaxAge int64 `json:"auditLogMaxAge"`
// Max backup of audit log
AuditLogMaxBackup int64 `json:"auditLogMaxBackup"`
// Audit log max size
AuditLogMaxSize int64 `json:"auditLogMaxSize"`
// Base64 encoded audit policy manifest
AuditPolicy string `json:"auditPolicy"`
// SEP pool ID for the balancers (for denergy type)
BalancersDynamixSEPID int64 `json:"balancersDynamixSEPId"`
// SEP pool name for the balancers (for denergy type)
BalancersDynamixSEPPool string `json:"balancersDynamixSEPPool"`
// Issuer id of certificate for external cluster
CertificateIssuerID int64 `json:"certificateIssuerId"`
// Denergy root certificate encripting key in hex form
CertificateKey string `json:"certificateKey"`
// CertificateValidityBefore is time end of life kubernetes'certs. Example 2025-08-05T12:00:00Z, time.RFC3339
CertificateValidityBefore string `json:"certificateValidityBefore"`
// Denergy private chart repository
ChartRepository int64 `json:"chartRepository"`
// Customer cluster hostname
ClusterHostname string `json:"clusterHostname"`
// Cluster machine OS build (for baremetal type)
ClusterMachineOSBuild string `json:"clusterMachineOSBuild"`
// Cluster machine OS type (for baremetal type)
ClusterMachineOSType string `json:"clusterMachineOSType"`
// Customer cluster name
ClusterName string `json:"clusterName"`
// Cluster template description for any cluster
ClusterTemplateDescription string `json:"clusterTemplateDescription"`
// Cluster template name for any cluster
ClusterTemplateName string `json:"clusterTemplateName"`
// Cluster type. Possible values: dynamix, generic, denergy, baremetal
ClusterType string `json:"clusterType"`
// Container Network Type. Possible values: flannel, calico
ContainerNetworkType string `json:"containerNetworkType"`
// Create cluster template for any cluster
CreateClusterTemplate bool `json:"createClusterTemplate"`
// Set custom maximum transmission unit
CustomMTU int64 `json:"customMTU"`
// Runtime type (for denergy type). Possible values: crio, containerd
DenergyRuntimeType string `json:"denergyRuntimeType"`
// Customer cluster description
Description string `json:"description"`
// List of strings with DNS resolvers
DomainResolvers []string `json:"domainResolvers,omitempty"`
// CI ID for the cluster (for dynamix type)
DynamixK8CIID int64 `json:"dynamixK8CIId"`
// Specify which dynamix platform ID to use. If not specified, defaults to the first dynamix user data
DynamixPlatformID int64 `json:"dynamixPlatformId"`
// Resourse group ID for the cluster (for dynamix and denergy type)
DynamixRGID int64 `json:"dynamixRGId"`
// SEP pool ID for the cluster (for dynamix type)
DynamixSEPID int64 `json:"dynamixSEPId"`
// SEP pool name for the cluster (for dynamix type)
DynamixSEPPool string `json:"dynamixSEPPool"`
// Use custom load balancer node names (hostnames) (for baremetal type)
EnableCustomLoadBalancerHostnames bool `json:"enableCustomLoadBalancerHostnames"`
// Use custom master node names (hostnames) (for baremetal type)
EnableCustomMasterHostnames bool `json:"enableCustomMasterHostnames"`
// Use custom worker node names (hostnames) (for baremetal type)
EnableCustomWorkerHostnames bool `json:"enableCustomWorkerHostnames"`
// Auth token for ESS mutation API (required if installEss)
EssAuthToken string `json:"essAuthToken"`
// VirtualAddresses Section External virtual IP address (for baremetal type)
ExtVirtualAddress string `json:"extVirtualAddress"`
// List of external loadBalancers IP addresses (for denergy types)
ExternalLBAddresses []string `json:"externalLBAddresses,omitempty"`
// Global network ID (for dynamix and denergy type)
GlobalNetworkID int64 `json:"globalNetworkId"`
// Number of iLoadBalancer CPUs (for denergy type)
ILoadBalancerCPUCount int64 `json:"iLoadBalancerCPUCount"`
// iLoadBalancer's input data for cloud-init facility
ILoadBalancerCloudInit string `json:"iLoadBalancerCloudInit"`
// Number of iLoadBalancers (for denergy type)
ILoadBalancerCount int64 `json:"iLoadBalancerCount"`
// iLoadBalancer's disk size, GB (for denergy type)
ILoadBalancerDiskSize int64 `json:"iLoadBalancerDiskSize"`
// iLoadBalancer gpu ids (for denergy type)
ILoadBalancerGPUIDs []int64 `json:"iLoadBalancerGpuIds,omitempty"`
// iLoadBalancer's ram, MB (for denergy type)
ILoadBalancerMemorySize int64 `json:"iLoadBalancerMemorySize"`
// secure shell port (denergy type) default(22) minimum(0) maximum(65535)
InitialSecureShellPort int64 `json:"initialSecureShellPort"`
// Install Criobox
InstallCriobox bool `json:"installCriobox"`
// Install CsiDynamix
InstallCsiDynamix bool `json:"installCsiDynamix"`
// Install ESS (Enterprise Security Stack)
InstallEss bool `json:"installEss"`
// Install Kyverno
InstallKyverno bool `json:"installKyverno"`
// Install metrics-server (for denergy type)
InstallMetrics bool `json:"installMetrics"`
// Install Monitoring
InstallMonitoring bool `json:"installMonitoring"`
// Install PodLogger
InstallPodLogger bool `json:"installPodLogger"`
// Install RbacManager
InstallRBACManager bool `json:"installRbacManager"`
// Install Trivy
InstallTrivy bool `json:"installTrivy"`
// Internal virtual IP address (for baremetal type)
IntVirtualAddress string `json:"intVirtualAddress"`
// List of internal loadBalancers IP addresses (for denergy types)
InternalLBAddresses []string `json:"internalLBAddresses,omitempty"`
// Install RBPO pipeline applications stack after cluster creation
IsRBPO bool `json:"isRBPO"`
// Cluster config (for generic type)
KubeConfig string `json:"kubeConfig"`
// Kubernetes repository
KubeContainerRepository int64 `json:"kubeContainerRepository"`
// Kubernetes version (for denergy type)
KubeVersion string `json:"kubeVersion"`
// list of loadbalancers ext ip addresses (for baremetal type)
LoadBalancerExternalIPAddresses []string `json:"loadBalancerExternalIPAddresses,omitempty"`
// List of load balancer names (hostnames) (for baremetal type)
LoadBalancerHostnames []string `json:"loadBalancerHostnames,omitempty"`
// list of loadbalancers int ip addresses (for baremetal type)
LoadBalancerInternalIPAddresses []string `json:"loadBalancerInternalIPAddresses,omitempty"`
// list of load balancer nodes machine OS builds(for baremetal type)
LoadBalancerMachineOSBuilds []string `json:"loadBalancerMachineOSBuilds,omitempty"`
// list of load balancer nodes machine OS types (for baremetal type)
LoadBalancerMachineOSTypes []string `json:"loadBalancerMachineOSTypes,omitempty"`
// list of system root password for loadbalancer (for baremetal type)
LoadBalancerRootPasswords []string `json:"loadBalancerRootPasswords,omitempty"`
// list of system root username for loadbalancer (for baremetal type)
LoadBalancerRootUsernames []string `json:"loadBalancerRootUsernames,omitempty"`
// list of loadbalancers secure shell ports (for baremetal type)
LoadBalancerSecureShellPorts []int64 `json:"loadBalancerSecureShellPorts,omitempty"`
// list of system user password for loadbalancer (for baremetal type)
LoadBalancerUserPasswords []string `json:"loadBalancerUserPasswords,omitempty"`
// list of system user username for loadbalancer (for baremetal type)
LoadBalancerUserUsernames []string `json:"loadBalancerUserUsernames,omitempty"`
// Local network ID (for dynamix type)
LocalNetworkID int64 `json:"localNetworkId"`
// Machine OS build (for denergy && baremetal type)
MachineOSBuild string `json:"machineOSBuild"`
// Machine provider OS ID (for denergy type)
MachineOSImageID int64 `json:"machineOSImageId"`
// Machine OS type (for denergy && baremetal type)
MachineOSType string `json:"machineOSType"`
// Machine provider (for denergy type)
MachineProvider string `json:"machineProvider"`
// List of masters IP addresses (for denergy types)
MasterAddresses []string `json:"masterAddresses,omitempty"`
// Number of master CPUs (for dynamix, denergy types)
MasterCPUCount int64 `json:"masterCPUCount"`
// Master's input data for cloud-init facility
MasterCloudInit string `json:"masterCloudInit"`
// Mumber of masters (for dynamix, denergy types)
MasterCount int64 `json:"masterCount"`
// Master's disk size, GB (for dynamix, denergy types)
MasterDiskSize int64 `json:"masterDiskSize"`
// Master gpu ids (for denergy type)
MasterGPUIDs []int64 `json:"masterGpuIds,omitempty"`
// List of master names (hostnames) (for baremetal type)
MasterHostnames []string `json:"masterHostnames,omitempty"`
// Master's ram, MB (for dynamix, denergy types)
MasterMemorySize int64 `json:"masterMemorySize"`
// list of master nodes ext ip addresses (for baremetal type)
MasterNodesExternalIPAdresses []string `json:"masterNodesExternalIPAdresses,omitempty"`
// list of master nodes machine OS builds(for baremetal type)
MasterNodesMachineOSBuilds []string `json:"masterNodesMachineOSBuilds,omitempty"`
// list of master nodes machine OS types (for baremetal type)
MasterNodesMachineOSTypes []string `json:"masterNodesMachineOSTypes,omitempty"`
// list of system root password for master nodes (for baremetal type)
MasterNodesRootPasswords []string `json:"masterNodesRootPasswords,omitempty"`
// list of system root username for master nodes (for baremetal type)
MasterNodesRootUsernames []string `json:"masterNodesRootUsernames,omitempty"`
// list of master nodes secure shell ports (for baremetal type)
MasterNodesSecureShellPorts []int64 `json:"masterNodesSecureShellPorts,omitempty"`
// list of system user password for master nodes (for baremetal type)
MasterNodesUserPasswords []string `json:"masterNodesUserPasswords,omitempty"`
// list of system user username for master nodes (for baremetal type)
MasterNodesUserUsernames []string `json:"masterNodesUserUsernames,omitempty"`
// SEP pool ID for the masters (for denergy type)
MastersDynamixSEPID int64 `json:"mastersDynamixSEPId"`
// SEP pool name for the masters (for denergy type)
MastersDynamixSEPPool string `json:"mastersDynamixSEPPool"`
// Operation system package repository
PackageRepository int64 `json:"packageRepository"`
// Enable pod killer
Podkiller bool `json:"podkiller"`
// True for use Denergy DNS for services
ProvideDNS bool `json:"provideDNS"`
// Per-application install parameters of the RBPO pipeline stack (required if isRBPO)
RbpoApps []InstallAppItem `json:"rbpoApps,omitempty"`
// Time to check report
RequeueInterval int64 `json:"requeueInterval"`
// Save computes in case of cluster creation error
SaveComputesOnFailedK8SCreation bool `json:"saveComputesOnFailedK8SCreation"`
// Set severity levels
Severities []string `json:"severities,omitempty"`
// Share cluster template for any users
SharedClusterTemplate bool `json:"sharedClusterTemplate"`
// Set skip Namespaces
SkipNamespaces []string `json:"skipNamespaces,omitempty"`
// Storage policy id (for denergy)
StoragePolicyID int64 `json:"storagePolicyId"`
// Use custom external loadBalancer addresses (for denergy type)
UseCustomExternalLBAddresses bool `json:"useCustomExternalLBAddresses"`
// Use custom internal loadBalancer addresses (for denergy type)
UseCustomInternalLBAddresses bool `json:"useCustomInternalLBAddresses"`
// Use custom external master addresses (for denergy type)
UseCustomMasterIPAddresses bool `json:"useCustomMasterIPAddresses"`
// Use custom external worker addresses (for denergy type)
UseCustomWorkerIPAddresses bool `json:"useCustomWorkerIPAddresses"`
// Use dynamix external network (for denergy type)
UseDynamixExtNet bool `json:"useDynamixExtnet"`
// Vins global network ID (for dynamix type)
ViNSGlobalNetworkID int64 `json:"vinsGlobalNetworkId"`
// List of workers IP addresses (for denergy types)
WorkerAddresses []string `json:"workerAddresses,omitempty"`
// List of strings with annotations for worker group. example: 'key1=value1,key2=value2'
WorkerAnnotations []string `json:"workerAnnotations,omitempty"`
// Number of worker CPUs (for dynamix, denergy types)
WorkerCPUCount int64 `json:"workerCPUCount"`
// Worker's input data for cloud-init facility
WorkerCloudInit string `json:"workerCloudInit"`
// Number of workers (for dynamix, denergy types)
WorkerCount int64 `json:"workerCount"`
// Worker's disk size, GB (for dynamix, denergy types)
WorkerDiskSize int64 `json:"workerDiskSize"`
// Worker gpu ids (for denergy type)
WorkerGPUIDs []int64 `json:"workerGpuIds,omitempty"`
// Name for initial worker group of the cluster
WorkerGroupName string `json:"workerGroupName"`
// List of worker names (hostnames) (for baremetal type)
WorkerHostnames []string `json:"workerHostnames,omitempty"`
// List of strings with labels for worker group. example: 'key1=value1,key2=value2'
WorkerLabels []string `json:"workerLabels,omitempty"`
// Worker's ram, MB (for dynamix, denergy types)
WorkerMemorySize int64 `json:"workerMemorySize"`
// list of worker nodes ext ip addresses (for baremetal type)
WorkerNodesExternalIPAdresses []string `json:"workerNodesExternalIPAdresses,omitempty"`
// list of worker nodes machine OS builds(for baremetal type)
WorkerNodesMachineOSBuilds []string `json:"workerNodesMachineOSBuilds,omitempty"`
// list of worker nodes machine OS types (for baremetal type)
WorkerNodesMachineOSTypes []string `json:"workerNodesMachineOSTypes,omitempty"`
// list of system root password for worker nodes (for baremetal type)
WorkerNodesRootPasswords []string `json:"workerNodesRootPasswords,omitempty"`
// list of system root username for worker nodes (for baremetal type)
WorkerNodesRootUsernames []string `json:"workerNodesRootUsernames,omitempty"`
// list of worker nodes secure shell ports (for baremetal type)
WorkerNodesSecureShellPorts []int64 `json:"workerNodesSecureShellPorts,omitempty"`
// list of system user password for worker nodes (for baremetal type)
WorkerNodesUserPasswords []string `json:"workerNodesUserPasswords,omitempty"`
// list of system user username for worker nodes (for baremetal type)
WorkerNodesUserUsernames []string `json:"workerNodesUserUsernames,omitempty"`
// List of strings with taints for worker group. example: 'key1=value1:NoSchedule,key2=value2:NoExecute, key3=value3:PreferNoSchedule'
WorkerTaints []string `json:"workerTaints,omitempty"`
// SEP pool ID for the workers (for denergy type)
WorkersDynamixSEPID int64 `json:"workersDynamixSEPId"`
// SEP pool name for the workers (for denergy type)
WorkersDynamixSEPPool string `json:"workersDynamixSEPPool"`
}
type CreateTaskResult struct {
TaskID int64 `json:"taskId,omitempty"`
}
type CreateTaskResultWithError struct {
Error bool `json:"error,omitempty"`
ErrorCode int64 `json:"errorCode,omitempty"`
Message string `json:"message,omitempty"`
Result CreateTaskResult `json:"result,omitempty"`
}
type DependencyAny struct {
Depends []string `json:"depends,omitempty"`
Key string `json:"key,omitempty"`
}
type DynamixPlatform struct {
AppID string `json:"appID"`
AppSecret string `json:"appSecret"`
AuthDomain string `json:"authDomain"`
AuthType string `json:"authType"`
ID int64 `json:"id"`
Name string `json:"name"`
Password string `json:"password"`
SsoURL string `json:"ssoURL"`
URL string `json:"url"`
Username string `json:"username"`
}
type FilebeatParams struct {
FilebeatYMLConfig string `json:"filebeatYMLConfig"`
SecretParams map[string]string `json:"secretParams,omitempty"`
}
type FluentBitParams struct {
LogOutputHost string `json:"logOutputHost"`
LogOutputPassword string `json:"logOutputPassword"`
LogOutputPort string `json:"logOutputPort"`
LogOutputUser string `json:"logOutputUser"`
}
type ImageDescr struct {
Image string `json:"image,omitempty"`
Name string `json:"name,omitempty"`
}
type InstallAppItem struct {
AppName string `json:"appName"`
Params InstallParams `json:"params"`
}
type InstallParams struct {
Affinity string `json:"affinity"`
ClassReplicaCount int64 `json:"classReplicaCount"`
CPULimit string `json:"cpuLimit"`
CPURequest string `json:"cpuRequest"`
Filebeat FilebeatParams `json:"filebeat"`
Fluentbit FluentBitParams `json:"fluentbit"`
Hostname string `json:"hostname"`
HTTPPort int64 `json:"httpPort"`
HTTPSPort int64 `json:"httpsPort"`
IntegagentHostname string `json:"integagentHostname"`
MemoryLimit string `json:"memoryLimit"`
MemoryRequest string `json:"memoryRequest"`
Namespace string `json:"namespace"`
Openbao OpenbaoParams `json:"openbao"`
Password string `json:"password"`
Prometheus PrometheusParams `json:"prometheus"`
PsqlAddress string `json:"psqlAddress"`
PsqlDatabase string `json:"psqlDatabase"`
PsqlPassword string `json:"psqlPassword"`
PsqlUsername string `json:"psqlUsername"`
Replicas int64 `json:"replicas"`
Seaweedfs SeaweedfsParams `json:"seaweedfs"`
SecretKey string `json:"secretKey"`
ServicePort int64 `json:"servicePort"`
ServiceTargetPort int64 `json:"serviceTargetPort"`
StorageClass string `json:"storageClass"`
StorageSize string `json:"storageSize"`
Tolerations string `json:"tolerations"`
Username string `json:"username"`
WorkerGroupName string `json:"workerGroupName"`
}
type OpenbaoParams struct {
AuditStorageEnabled bool `json:"auditStorageEnabled"`
CsiProviderEnabled bool `json:"csiProviderEnabled"`
InjectorEnabled bool `json:"injectorEnabled"`
}
type ProductDescr struct {
Depends []string `json:"depends,omitempty"`
DependsAny []DependencyAny `json:"dependsAny,omitempty"`
Images []ImageDescr `json:"images,omitempty"`
Name string `json:"name,omitempty"`
ProductName string `json:"productName,omitempty"`
ProductVersion string `json:"productVersion,omitempty"`
}
type PrometheusParams struct {
Alertmanager AlertmanagerParams `json:"alertmanager"`
EvaluationInterval string `json:"evaluationInterval"`
Retention string `json:"retention"`
RetentionSize string `json:"retentionSize"`
ScrapeInterval string `json:"scrapeInterval"`
Thanos ToggleParams `json:"thanos"`
}
type Rule struct {
Message string `json:"message,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
}
type SeaweedfsParams struct {
MasterReplicas int64 `json:"masterReplicas"`
Replication string `json:"replication"`
VolumeReplicas int64 `json:"volumeReplicas"`
VolumeSizeLimitMB int64 `json:"volumeSizeLimitMB"`
VolumeStorageGb int64 `json:"volumeStorageGb"`
}
type TaskBrief struct {
Deleted bool `json:"deleted,omitempty"`
Done bool `json:"done,omitempty"`
Error bool `json:"error,omitempty"`
ErrorMessage string `json:"errormessage,omitempty"`
ID int64 `json:"id,omitempty"`
Operation string `json:"operation,omitempty"`
OwnerID int64 `json:"ownerId,omitempty"`
StartTimestamp string `json:"startTimestamp,omitempty"`
StopTimestamp string `json:"stopTimestamp,omitempty"`
SubjectID int64 `json:"subjectId,omitempty"`
SubjectType string `json:"subjectType,omitempty"`
}
type ToggleParams struct {
Enabled bool `json:"enabled"`
}
type Version struct {
Major int64 `json:"major,omitempty"`
Minor int64 `json:"minor,omitempty"`
Patch int64 `json:"patch,omitempty"`
}