Documentation ¶
Index ¶
- type AKS
- type AutoScale
- type AutoScaler
- type Automatic
- type Cluster
- func (o Cluster) MarshalJSON() ([]byte, error)
- func (o *Cluster) SetAKS(v *AKS) *Cluster
- func (o *Cluster) SetAutoScaler(v *AutoScaler) *Cluster
- func (o *Cluster) SetControllerClusterId(v *string) *Cluster
- func (o *Cluster) SetHealth(v *Health) *Cluster
- func (o *Cluster) SetId(v *string) *Cluster
- func (o *Cluster) SetName(v *string) *Cluster
- func (o *Cluster) SetScheduling(v *Scheduling) *Cluster
- func (o *Cluster) SetVirtualNodeGroupTemplate(v *VirtualNodeGroupTemplate) *Cluster
- type CreateClusterInput
- type CreateClusterOutput
- type CreateRollInput
- type CreateRollOutput
- type CreateVirtualNodeGroupInput
- type CreateVirtualNodeGroupOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DeleteVirtualNodeGroupInput
- type DeleteVirtualNodeGroupOutput
- type Down
- type Filters
- func (o Filters) MarshalJSON() ([]byte, error)
- func (o *Filters) SetAcceleratedNetworking(v *string) *Filters
- func (o *Filters) SetArchitectures(v []string) *Filters
- func (o *Filters) SetDiskPerformance(v *string) *Filters
- func (o *Filters) SetExcludeSeries(v []string) *Filters
- func (o *Filters) SetGpuTypes(v []string) *Filters
- func (o *Filters) SetMaxGpu(v *float64) *Filters
- func (o *Filters) SetMaxMemoryGiB(v *float64) *Filters
- func (o *Filters) SetMaxVcpu(v *int) *Filters
- func (o *Filters) SetMinDisk(v *int) *Filters
- func (o *Filters) SetMinGpu(v *float64) *Filters
- func (o *Filters) SetMinMemoryGiB(v *float64) *Filters
- func (o *Filters) SetMinNICs(v *int) *Filters
- func (o *Filters) SetMinVcpu(v *int) *Filters
- func (o *Filters) SetSeries(v []string) *Filters
- func (o *Filters) SetVmTypes(v []string) *Filters
- type Headroom
- type Headrooms
- type Health
- type ImportCluster
- type ImportClusterInput
- type ImportClusterOutput
- type LaunchNewNodesInput
- type LaunchNewNodesOutput
- type LinuxOSConfig
- type ListClustersInput
- type ListClustersOutput
- type ListRollsInput
- type ListRollsOutput
- type ListVirtualNodeGroupsInput
- type ListVirtualNodeGroupsOutput
- type NodeCountLimits
- type NodePoolProperties
- func (o NodePoolProperties) MarshalJSON() ([]byte, error)
- func (o *NodePoolProperties) SetEnableNodePublicIP(v *bool) *NodePoolProperties
- func (o *NodePoolProperties) SetKubernetesVersion(v *string) *NodePoolProperties
- func (o *NodePoolProperties) SetLinuxOSConfig(v *LinuxOSConfig) *NodePoolProperties
- func (o *NodePoolProperties) SetMaxPodsPerNode(v *int) *NodePoolProperties
- func (o *NodePoolProperties) SetOsDiskSizeGB(v *int) *NodePoolProperties
- func (o *NodePoolProperties) SetOsDiskType(v *string) *NodePoolProperties
- func (o *NodePoolProperties) SetOsSKU(v *string) *NodePoolProperties
- func (o *NodePoolProperties) SetOsType(v *string) *NodePoolProperties
- func (o *NodePoolProperties) SetPodSubnetIDs(v []string) *NodePoolProperties
- func (o *NodePoolProperties) SetVnetSubnetIDs(v []string) *NodePoolProperties
- type NodeStatus
- type ParameterClusterRoll
- func (o ParameterClusterRoll) MarshalJSON() ([]byte, error)
- func (o *ParameterClusterRoll) SetBatchMinHealthyPercentage(v *int) *ParameterClusterRoll
- func (o *ParameterClusterRoll) SetBatchSizePercentage(v *int) *ParameterClusterRoll
- func (o *ParameterClusterRoll) SetComment(v *string) *ParameterClusterRoll
- func (o *ParameterClusterRoll) SetRespectPdb(v *bool) *ParameterClusterRoll
- func (o *ParameterClusterRoll) SetRespectRestrictScaleDown(v *bool) *ParameterClusterRoll
- func (o *ParameterClusterRoll) SetVngIds(v []string) *ParameterClusterRoll
- type Parameters
- type Progress
- type ReadClusterInput
- type ReadClusterOutput
- type ReadRollInput
- type ReadRollOutput
- type ReadVirtualNodeGroupInput
- type ReadVirtualNodeGroupOutput
- type ResourceLimits
- type RollNodes
- type RollSpec
- type RollStatus
- type Scheduling
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, error)
- func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)
- func (s *ServiceOp) CreateVirtualNodeGroup(ctx context.Context, input *CreateVirtualNodeGroupInput) (*CreateVirtualNodeGroupOutput, error)
- func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
- func (s *ServiceOp) DeleteVirtualNodeGroup(ctx context.Context, input *DeleteVirtualNodeGroupInput) (*DeleteVirtualNodeGroupOutput, error)
- func (s *ServiceOp) ImportCluster(ctx context.Context, input *ImportClusterInput) (*ImportClusterOutput, error)
- func (s *ServiceOp) LaunchNewNodes(ctx context.Context, input *LaunchNewNodesInput) (*LaunchNewNodesOutput, error)
- func (s *ServiceOp) ListClusters(ctx context.Context) (*ListClustersOutput, error)
- func (s *ServiceOp) ListRolls(ctx context.Context, input *ListRollsInput) (*ListRollsOutput, error)
- func (s *ServiceOp) ListVirtualNodeGroups(ctx context.Context, input *ListVirtualNodeGroupsInput) (*ListVirtualNodeGroupsOutput, error)
- func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)
- func (s *ServiceOp) ReadRoll(ctx context.Context, input *ReadRollInput) (*ReadRollOutput, error)
- func (s *ServiceOp) ReadVirtualNodeGroup(ctx context.Context, input *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, error)
- func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)
- func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
- func (s *ServiceOp) UpdateVirtualNodeGroup(ctx context.Context, input *UpdateVirtualNodeGroupInput) (*UpdateVirtualNodeGroupOutput, error)
- type ShutdownHours
- type StopRollInput
- type StopRollOutput
- type Strategy
- type Sysctls
- type Taint
- type Tasks
- type UpdateClusterInput
- type UpdateClusterOutput
- type UpdateVirtualNodeGroupInput
- type UpdateVirtualNodeGroupOutput
- type VirtualNodeGroup
- func (o VirtualNodeGroup) MarshalJSON() ([]byte, error)
- func (o *VirtualNodeGroup) SetAutoScale(v *AutoScale) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetAvailabilityZones(v []string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetId(v *string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetLabels(v *map[string]string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetName(v *string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetNodeCountLimits(v *NodeCountLimits) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetNodePoolProperties(v *NodePoolProperties) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetOceanId(v *string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetStrategy(v *Strategy) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetTags(v *map[string]string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetTaints(v []*Taint) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetVmSizes(v *VmSizes) *VirtualNodeGroup
- type VirtualNodeGroupTemplate
- func (o VirtualNodeGroupTemplate) MarshalJSON() ([]byte, error)
- func (o *VirtualNodeGroupTemplate) SetAutoScale(v *AutoScale) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetAvailabilityZones(v []string) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetLabels(v *map[string]string) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetNodeCountLimits(v *NodeCountLimits) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetNodePoolProperties(v *NodePoolProperties) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetStrategy(v *Strategy) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetTags(v *map[string]string) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetTaints(v []*Taint) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetVmSizes(v *VmSizes) *VirtualNodeGroupTemplate
- type VmSizes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AKS ¶
type AKS struct { ClusterName *string `json:"clusterName,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Region *string `json:"region,omitempty"` InfrastructureResourceGroupName *string `json:"infrastructureResourceGroupName,omitempty"` // contains filtered or unexported fields }
func (AKS) MarshalJSON ¶
func (*AKS) SetClusterName ¶
func (*AKS) SetInfrastructureResourceGroupName ¶
func (*AKS) SetResourceGroupName ¶
type AutoScale ¶ added in v1.162.0
type AutoScale struct { Headrooms []*Headrooms `json:"headrooms,omitempty"` // contains filtered or unexported fields }
func (AutoScale) MarshalJSON ¶ added in v1.162.0
func (*AutoScale) SetHeadrooms ¶ added in v1.162.0
type AutoScaler ¶
type AutoScaler struct { IsEnabled *bool `json:"isEnabled,omitempty"` ResourceLimits *ResourceLimits `json:"resourceLimits,omitempty"` Down *Down `json:"down,omitempty"` Headroom *Headroom `json:"headroom,omitempty"` // contains filtered or unexported fields }
func (AutoScaler) MarshalJSON ¶
func (o AutoScaler) MarshalJSON() ([]byte, error)
func (*AutoScaler) SetDown ¶
func (o *AutoScaler) SetDown(v *Down) *AutoScaler
func (*AutoScaler) SetHeadroom ¶
func (o *AutoScaler) SetHeadroom(v *Headroom) *AutoScaler
func (*AutoScaler) SetIsEnabled ¶
func (o *AutoScaler) SetIsEnabled(v *bool) *AutoScaler
func (*AutoScaler) SetResourceLimits ¶
func (o *AutoScaler) SetResourceLimits(v *ResourceLimits) *AutoScaler
type Automatic ¶
type Automatic struct { IsEnabled *bool `json:"isEnabled,omitempty"` Percentage *int `json:"percentage,omitempty"` // contains filtered or unexported fields }
func (Automatic) MarshalJSON ¶
func (*Automatic) SetIsEnabled ¶
func (*Automatic) SetPercentage ¶
type Cluster ¶
type Cluster struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` ControllerClusterID *string `json:"controllerClusterId,omitempty"` AKS *AKS `json:"aks,omitempty"` AutoScaler *AutoScaler `json:"autoScaler,omitempty"` Health *Health `json:"health,omitempty"` VirtualNodeGroupTemplate *VirtualNodeGroupTemplate `json:"virtualNodeGroupTemplate,omitempty"` Scheduling *Scheduling `json:"scheduling,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (Cluster) MarshalJSON ¶
func (*Cluster) SetAutoScaler ¶
func (o *Cluster) SetAutoScaler(v *AutoScaler) *Cluster
func (*Cluster) SetControllerClusterId ¶
func (*Cluster) SetScheduling ¶ added in v1.162.0
func (o *Cluster) SetScheduling(v *Scheduling) *Cluster
func (*Cluster) SetVirtualNodeGroupTemplate ¶
func (o *Cluster) SetVirtualNodeGroupTemplate(v *VirtualNodeGroupTemplate) *Cluster
type CreateClusterInput ¶
type CreateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateClusterOutput ¶
type CreateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateRollInput ¶ added in v1.355.0
type CreateRollInput struct {
Roll *RollSpec `json:"roll,omitempty"`
}
type CreateRollOutput ¶ added in v1.355.0
type CreateRollOutput struct {
Roll *RollStatus `json:"roll,omitempty"`
}
type CreateVirtualNodeGroupInput ¶
type CreateVirtualNodeGroupInput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type CreateVirtualNodeGroupOutput ¶
type CreateVirtualNodeGroupOutput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type DeleteClusterInput ¶
type DeleteClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type DeleteClusterOutput ¶
type DeleteClusterOutput struct{}
type DeleteVirtualNodeGroupInput ¶
type DeleteVirtualNodeGroupInput struct {
VirtualNodeGroupID *string `json:"virtualNodeGroupId,omitempty"`
}
type DeleteVirtualNodeGroupOutput ¶
type DeleteVirtualNodeGroupOutput struct{}
type Down ¶
type Down struct { MaxScaleDownPercentage *int `json:"maxScaleDownPercentage,omitempty"` // contains filtered or unexported fields }
func (Down) MarshalJSON ¶
func (*Down) SetMaxScaleDownPercentage ¶
type Filters ¶ added in v1.163.0
type Filters struct { MinVcpu *int `json:"minVCpu,omitempty"` MaxVcpu *int `json:"maxVCpu,omitempty"` MinMemoryGiB *float64 `json:"minMemoryGiB,omitempty"` MaxMemoryGiB *float64 `json:"maxMemoryGiB,omitempty"` Series []string `json:"series,omitempty"` Architectures []string `json:"architectures,omitempty"` ExcludeSeries []string `json:"excludeSeries,omitempty"` AcceleratedNetworking *string `json:"acceleratedNetworking,omitempty"` DiskPerformance *string `json:"diskPerformance,omitempty"` MinGpu *float64 `json:"minGpu,omitempty"` MaxGpu *float64 `json:"maxGpu,omitempty"` MinNICs *int `json:"minNICs,omitempty"` VmTypes []string `json:"vmTypes,omitempty"` MinDisk *int `json:"minDisk,omitempty"` GpuTypes []string `json:"gpuTypes,omitempty"` // contains filtered or unexported fields }
func (Filters) MarshalJSON ¶ added in v1.163.0
func (*Filters) SetAcceleratedNetworking ¶ added in v1.181.0
func (*Filters) SetArchitectures ¶ added in v1.163.0
func (*Filters) SetDiskPerformance ¶ added in v1.181.0
func (*Filters) SetExcludeSeries ¶ added in v1.170.0
func (*Filters) SetGpuTypes ¶ added in v1.340.0
func (*Filters) SetMaxMemoryGiB ¶ added in v1.163.0
func (*Filters) SetMaxVcpu ¶ added in v1.163.0
func (*Filters) SetMinDisk ¶ added in v1.182.0
func (*Filters) SetMinMemoryGiB ¶ added in v1.163.0
func (*Filters) SetMinNICs ¶ added in v1.181.0
func (*Filters) SetMinVcpu ¶ added in v1.163.0
func (*Filters) SetVmTypes ¶ added in v1.181.0
type Headroom ¶
type Headroom struct { Automatic *Automatic `json:"automatic,omitempty"` // contains filtered or unexported fields }
func (Headroom) MarshalJSON ¶
func (*Headroom) SetAutomatic ¶
type Headrooms ¶ added in v1.162.0
type Headrooms struct { CpuPerUnit *int `json:"cpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` GpuPerUnit *int `json:"gpuPerUnit,omitempty"` NumberOfUnits *int `json:"numOfUnits,omitempty"` // contains filtered or unexported fields }
func (Headrooms) MarshalJSON ¶ added in v1.162.0
func (*Headrooms) SetCpuPerUnit ¶ added in v1.162.0
func (*Headrooms) SetGpuPerUnit ¶ added in v1.162.0
func (*Headrooms) SetMemoryPerUnit ¶ added in v1.162.0
func (*Headrooms) SetNumOfUnits ¶ added in v1.162.0
type Health ¶
type Health struct { GracePeriod *int `json:"gracePeriod,omitempty"` // contains filtered or unexported fields }
func (Health) MarshalJSON ¶
func (*Health) SetGracePeriod ¶
type ImportCluster ¶
type ImportClusterInput ¶
type ImportClusterInput struct { ACDIdentifier *string `json:"acdIdentifier,omitempty"` Cluster *ImportCluster `json:"cluster,omitempty"` }
type ImportClusterOutput ¶
type ImportClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type LaunchNewNodesInput ¶ added in v1.343.0
type LaunchNewNodesInput struct { Adjustment *int `json:"adjustment,omitempty"` ApplicableVmSizes []string `json:"applicableVmSizes,omitempty"` AvailabilityZones []string `json:"availabilityZones,omitempty"` MinCoresPerNode *int `json:"minCoresPerNode,omitempty"` MinMemoryGiBPerNode *float64 `json:"minMemoryGiBPerNode,omitempty"` OceanId *string `json:"oceanId,omitempty"` PreferredLifecycle *string `json:"preferredLifecycle,omitempty"` VngIds []string `json:"vngIds,omitempty"` }
type LaunchNewNodesOutput ¶ added in v1.343.0
type LaunchNewNodesOutput struct{}
type LinuxOSConfig ¶ added in v1.348.0
type LinuxOSConfig struct { Sysctls *Sysctls `json:"sysctls,omitempty"` // contains filtered or unexported fields }
LinuxOSConfig region
func (*LinuxOSConfig) SetSysctls ¶ added in v1.348.0
func (o *LinuxOSConfig) SetSysctls(v *Sysctls) *LinuxOSConfig
type ListClustersInput ¶
type ListClustersInput struct{}
type ListClustersOutput ¶
type ListClustersOutput struct {
Clusters []*Cluster `json:"clusters,omitempty"`
}
type ListRollsInput ¶ added in v1.355.0
type ListRollsInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ListRollsOutput ¶ added in v1.355.0
type ListRollsOutput struct {
Rolls []*RollStatus `json:"rolls,omitempty"`
}
type ListVirtualNodeGroupsInput ¶
type ListVirtualNodeGroupsInput struct {
OceanID *string `json:"oceanId,omitempty"`
}
type ListVirtualNodeGroupsOutput ¶
type ListVirtualNodeGroupsOutput struct {
VirtualNodeGroups []*VirtualNodeGroup `json:"virtualNodeGroups,omitempty"`
}
type NodeCountLimits ¶
type NodeCountLimits struct { MinCount *int `json:"minCount,omitempty"` MaxCount *int `json:"maxCount,omitempty"` // contains filtered or unexported fields }
NodeCountLimits region
func (NodeCountLimits) MarshalJSON ¶
func (o NodeCountLimits) MarshalJSON() ([]byte, error)
func (*NodeCountLimits) SetMaxCount ¶
func (o *NodeCountLimits) SetMaxCount(v *int) *NodeCountLimits
func (*NodeCountLimits) SetMinCount ¶
func (o *NodeCountLimits) SetMinCount(v *int) *NodeCountLimits
type NodePoolProperties ¶
type NodePoolProperties struct { MaxPodsPerNode *int `json:"maxPodsPerNode,omitempty"` EnableNodePublicIP *bool `json:"enableNodePublicIP,omitempty"` OsDiskSizeGB *int `json:"osDiskSizeGB,omitempty"` OsDiskType *string `json:"osDiskType,omitempty"` OsType *string `json:"osType,omitempty"` OsSKU *string `json:"osSKU,omitempty"` KubernetesVersion *string `json:"kubernetesVersion,omitempty"` PodSubnetIDs []string `json:"podSubnetIDs,omitempty"` VnetSubnetIDs []string `json:"vnetSubnetIDs,omitempty"` LinuxOSConfig *LinuxOSConfig `json:"linuxOSConfig,omitempty"` // contains filtered or unexported fields }
NodePoolProperties region
func (NodePoolProperties) MarshalJSON ¶
func (o NodePoolProperties) MarshalJSON() ([]byte, error)
func (*NodePoolProperties) SetEnableNodePublicIP ¶
func (o *NodePoolProperties) SetEnableNodePublicIP(v *bool) *NodePoolProperties
func (*NodePoolProperties) SetKubernetesVersion ¶ added in v1.173.0
func (o *NodePoolProperties) SetKubernetesVersion(v *string) *NodePoolProperties
func (*NodePoolProperties) SetLinuxOSConfig ¶ added in v1.348.0
func (o *NodePoolProperties) SetLinuxOSConfig(v *LinuxOSConfig) *NodePoolProperties
func (*NodePoolProperties) SetMaxPodsPerNode ¶
func (o *NodePoolProperties) SetMaxPodsPerNode(v *int) *NodePoolProperties
func (*NodePoolProperties) SetOsDiskSizeGB ¶
func (o *NodePoolProperties) SetOsDiskSizeGB(v *int) *NodePoolProperties
func (*NodePoolProperties) SetOsDiskType ¶
func (o *NodePoolProperties) SetOsDiskType(v *string) *NodePoolProperties
func (*NodePoolProperties) SetOsSKU ¶ added in v1.170.0
func (o *NodePoolProperties) SetOsSKU(v *string) *NodePoolProperties
func (*NodePoolProperties) SetOsType ¶
func (o *NodePoolProperties) SetOsType(v *string) *NodePoolProperties
func (*NodePoolProperties) SetPodSubnetIDs ¶ added in v1.180.0
func (o *NodePoolProperties) SetPodSubnetIDs(v []string) *NodePoolProperties
func (*NodePoolProperties) SetVnetSubnetIDs ¶ added in v1.180.0
func (o *NodePoolProperties) SetVnetSubnetIDs(v []string) *NodePoolProperties
type NodeStatus ¶ added in v1.355.0
type ParameterClusterRoll ¶ added in v1.351.0
type ParameterClusterRoll struct { BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` Comment *string `json:"comment,omitempty"` RespectPdb *bool `json:"respectPdb,omitempty"` RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` VngIds []string `json:"vngIds,omitempty"` // contains filtered or unexported fields }
func (ParameterClusterRoll) MarshalJSON ¶ added in v1.351.0
func (o ParameterClusterRoll) MarshalJSON() ([]byte, error)
func (*ParameterClusterRoll) SetBatchMinHealthyPercentage ¶ added in v1.351.0
func (o *ParameterClusterRoll) SetBatchMinHealthyPercentage(v *int) *ParameterClusterRoll
func (*ParameterClusterRoll) SetBatchSizePercentage ¶ added in v1.351.0
func (o *ParameterClusterRoll) SetBatchSizePercentage(v *int) *ParameterClusterRoll
region ParameterClusterRoll
func (*ParameterClusterRoll) SetComment ¶ added in v1.351.0
func (o *ParameterClusterRoll) SetComment(v *string) *ParameterClusterRoll
func (*ParameterClusterRoll) SetRespectPdb ¶ added in v1.351.0
func (o *ParameterClusterRoll) SetRespectPdb(v *bool) *ParameterClusterRoll
func (*ParameterClusterRoll) SetRespectRestrictScaleDown ¶ added in v1.351.0
func (o *ParameterClusterRoll) SetRespectRestrictScaleDown(v *bool) *ParameterClusterRoll
func (*ParameterClusterRoll) SetVngIds ¶ added in v1.351.0
func (o *ParameterClusterRoll) SetVngIds(v []string) *ParameterClusterRoll
type Parameters ¶ added in v1.351.0
type Parameters struct { ClusterRoll *ParameterClusterRoll `json:"clusterRoll,omitempty"` // contains filtered or unexported fields }
func (Parameters) MarshalJSON ¶ added in v1.351.0
func (o Parameters) MarshalJSON() ([]byte, error)
region Parameters
func (*Parameters) SetClusterRoll ¶ added in v1.351.0
func (o *Parameters) SetClusterRoll(v *ParameterClusterRoll) *Parameters
region ClusterRoll
type ReadClusterInput ¶
type ReadClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ReadClusterOutput ¶
type ReadClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type ReadRollInput ¶ added in v1.355.0
type ReadRollOutput ¶ added in v1.355.0
type ReadRollOutput struct {
Roll *RollStatus `json:"roll,omitempty"`
}
type ReadVirtualNodeGroupInput ¶
type ReadVirtualNodeGroupInput struct {
VirtualNodeGroupID *string `json:"virtualNodeGroupId,omitempty"`
}
type ReadVirtualNodeGroupOutput ¶
type ReadVirtualNodeGroupOutput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type ResourceLimits ¶
type ResourceLimits struct { MaxVCPU *int `json:"maxVCpu,omitempty"` MaxMemoryGib *int `json:"maxMemoryGib,omitempty"` // contains filtered or unexported fields }
func (ResourceLimits) MarshalJSON ¶
func (o ResourceLimits) MarshalJSON() ([]byte, error)
func (*ResourceLimits) SetMaxMemoryGib ¶
func (o *ResourceLimits) SetMaxMemoryGib(v *int) *ResourceLimits
func (*ResourceLimits) SetMaxVcpu ¶
func (o *ResourceLimits) SetMaxVcpu(v *int) *ResourceLimits
type RollNodes ¶ added in v1.355.0
type RollNodes struct {
RollNodes []*NodeStatus `json:"rollNodes,omitempty"`
}
type RollSpec ¶ added in v1.355.0
type RollSpec struct { ID *string `json:"id,omitempty"` ClusterID *string `json:"clusterId,omitempty"` Comment *string `json:"comment,omitempty"` Status *string `json:"status,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` RespectPDB *bool `json:"respectPdb,omitempty"` NodePoolNames []string `json:"nodePoolNames,omitempty"` VngIds []string `json:"vngIds,omitempty"` RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"` NodeNames []string `json:"nodeNames,omitempty"` // contains filtered or unexported fields }
type RollStatus ¶ added in v1.355.0
type RollStatus struct { ID *string `json:"id,omitempty"` ClusterID *string `json:"oceanId,omitempty"` Scope *string `json:"scope,omitempty"` Comment *string `json:"comment,omitempty"` Status *string `json:"status,omitempty"` Progress *Progress `json:"progress,omitempty"` RespectPDB *bool `json:"respectPdb,omitempty"` RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` CurrentBatch *int `json:"currentBatch,omitempty"` NumOfBatches *int `json:"numOfBatches,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` UpdatedAt *string `json:"updatedAt,omitempty"` }
type Scheduling ¶ added in v1.162.0
type Scheduling struct { ShutdownHours *ShutdownHours `json:"shutdownHours,omitempty"` Tasks []*Tasks `json:"tasks,omitempty"` // contains filtered or unexported fields }
func (Scheduling) MarshalJSON ¶ added in v1.162.0
func (o Scheduling) MarshalJSON() ([]byte, error)
func (*Scheduling) SetShutdownHours ¶ added in v1.162.0
func (o *Scheduling) SetShutdownHours(v *ShutdownHours) *Scheduling
func (*Scheduling) SetTasks ¶ added in v1.351.0
func (o *Scheduling) SetTasks(v []*Tasks) *Scheduling
type Service ¶
type Service interface { ListClusters(context.Context) (*ListClustersOutput, error) CreateCluster(context.Context, *CreateClusterInput) (*CreateClusterOutput, error) ReadCluster(context.Context, *ReadClusterInput) (*ReadClusterOutput, error) UpdateCluster(context.Context, *UpdateClusterInput) (*UpdateClusterOutput, error) DeleteCluster(context.Context, *DeleteClusterInput) (*DeleteClusterOutput, error) ImportCluster(context.Context, *ImportClusterInput) (*ImportClusterOutput, error) CreateRoll(context.Context, *CreateRollInput) (*CreateRollOutput, error) ReadRoll(ctx context.Context, input *ReadRollInput) (*ReadRollOutput, error) ListRolls(ctx context.Context, input *ListRollsInput) (*ListRollsOutput, error) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error) ListVirtualNodeGroups(context.Context, *ListVirtualNodeGroupsInput) (*ListVirtualNodeGroupsOutput, error) CreateVirtualNodeGroup(context.Context, *CreateVirtualNodeGroupInput) (*CreateVirtualNodeGroupOutput, error) ReadVirtualNodeGroup(context.Context, *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, error) UpdateVirtualNodeGroup(context.Context, *UpdateVirtualNodeGroupInput) (*UpdateVirtualNodeGroupOutput, error) DeleteVirtualNodeGroup(context.Context, *DeleteVirtualNodeGroupInput) (*DeleteVirtualNodeGroupOutput, error) LaunchNewNodes(context.Context, *LaunchNewNodesInput) (*LaunchNewNodesOutput, error) }
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) CreateCluster ¶
func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, error)
func (*ServiceOp) CreateRoll ¶ added in v1.355.0
func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)
func (*ServiceOp) CreateVirtualNodeGroup ¶
func (s *ServiceOp) CreateVirtualNodeGroup(ctx context.Context, input *CreateVirtualNodeGroupInput) (*CreateVirtualNodeGroupOutput, error)
func (*ServiceOp) DeleteCluster ¶
func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
func (*ServiceOp) DeleteVirtualNodeGroup ¶
func (s *ServiceOp) DeleteVirtualNodeGroup(ctx context.Context, input *DeleteVirtualNodeGroupInput) (*DeleteVirtualNodeGroupOutput, error)
func (*ServiceOp) ImportCluster ¶
func (s *ServiceOp) ImportCluster(ctx context.Context, input *ImportClusterInput) (*ImportClusterOutput, error)
func (*ServiceOp) LaunchNewNodes ¶ added in v1.343.0
func (s *ServiceOp) LaunchNewNodes(ctx context.Context, input *LaunchNewNodesInput) (*LaunchNewNodesOutput, error)
func (*ServiceOp) ListClusters ¶
func (s *ServiceOp) ListClusters(ctx context.Context) (*ListClustersOutput, error)
func (*ServiceOp) ListRolls ¶ added in v1.355.0
func (s *ServiceOp) ListRolls(ctx context.Context, input *ListRollsInput) (*ListRollsOutput, error)
func (*ServiceOp) ListVirtualNodeGroups ¶
func (s *ServiceOp) ListVirtualNodeGroups(ctx context.Context, input *ListVirtualNodeGroupsInput) (*ListVirtualNodeGroupsOutput, error)
func (*ServiceOp) ReadCluster ¶
func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)
func (*ServiceOp) ReadRoll ¶ added in v1.355.0
func (s *ServiceOp) ReadRoll(ctx context.Context, input *ReadRollInput) (*ReadRollOutput, error)
func (*ServiceOp) ReadVirtualNodeGroup ¶
func (s *ServiceOp) ReadVirtualNodeGroup(ctx context.Context, input *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, error)
func (*ServiceOp) StopRoll ¶ added in v1.355.0
func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)
func (*ServiceOp) UpdateCluster ¶
func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
func (*ServiceOp) UpdateVirtualNodeGroup ¶
func (s *ServiceOp) UpdateVirtualNodeGroup(ctx context.Context, input *UpdateVirtualNodeGroupInput) (*UpdateVirtualNodeGroupOutput, error)
type ShutdownHours ¶ added in v1.162.0
type ShutdownHours struct { TimeWindows []string `json:"timeWindows,omitempty"` IsEnabled *bool `json:"isEnabled,omitempty"` // contains filtered or unexported fields }
func (ShutdownHours) MarshalJSON ¶ added in v1.162.0
func (o ShutdownHours) MarshalJSON() ([]byte, error)
func (*ShutdownHours) SetIsEnabled ¶ added in v1.162.0
func (o *ShutdownHours) SetIsEnabled(v *bool) *ShutdownHours
func (*ShutdownHours) SetTimeWindows ¶ added in v1.162.0
func (o *ShutdownHours) SetTimeWindows(v []string) *ShutdownHours
type StopRollInput ¶ added in v1.355.0
type StopRollOutput ¶ added in v1.355.0
type StopRollOutput struct {
Rolls []*RollStatus `json:"rolls,omitempty"`
}
type Strategy ¶
type Strategy struct { SpotPercentage *int `json:"spotPercentage,omitempty"` FallbackToOD *bool `json:"fallbackToOd,omitempty"` // contains filtered or unexported fields }
Strategy region
func (Strategy) MarshalJSON ¶
func (*Strategy) SetFallbackToOD ¶
func (*Strategy) SetSpotPercentage ¶
type Sysctls ¶ added in v1.346.0
type Sysctls struct { VmMaxMapCount *int `json:"vmMaxMapCount,omitempty"` // contains filtered or unexported fields }
Sysctls region
func (*Sysctls) SetVmMaxMapCount ¶ added in v1.346.0
type Taint ¶
type Taint struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` Effect *string `json:"effect,omitempty"` // contains filtered or unexported fields }
func (Taint) MarshalJSON ¶
type Tasks ¶ added in v1.351.0
type Tasks struct { IsEnabled *bool `json:"isEnabled,omitempty"` TaskType *string `json:"taskType,omitempty"` CronExpression *string `json:"cronExpression,omitempty"` Parameters *Parameters `json:"parameters,omitempty"` // contains filtered or unexported fields }
func (Tasks) MarshalJSON ¶ added in v1.351.0
func (*Tasks) SetCronExpression ¶ added in v1.351.0
func (*Tasks) SetIsEnabled ¶ added in v1.351.0
func (*Tasks) SetParameters ¶ added in v1.351.0
func (o *Tasks) SetParameters(v *Parameters) *Tasks
func (*Tasks) SetTaskType ¶ added in v1.351.0
type UpdateClusterInput ¶
type UpdateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateClusterOutput ¶
type UpdateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateVirtualNodeGroupInput ¶
type UpdateVirtualNodeGroupInput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type UpdateVirtualNodeGroupOutput ¶
type UpdateVirtualNodeGroupOutput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type VirtualNodeGroup ¶
type VirtualNodeGroup struct { ID *string `json:"id,omitempty"` OceanID *string `json:"oceanId,omitempty"` Name *string `json:"name,omitempty"` Labels *map[string]string `json:"labels,omitempty"` AvailabilityZones []string `json:"availabilityZones,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` NodePoolProperties *NodePoolProperties `json:"nodePoolProperties,omitempty"` NodeCountLimits *NodeCountLimits `json:"nodeCountLimits,omitempty"` AutoScale *AutoScale `json:"autoScale,omitempty"` Taints []*Taint `json:"taints,omitempty"` VmSizes *VmSizes `json:"vmSizes,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroup) MarshalJSON ¶
func (o VirtualNodeGroup) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroup) SetAutoScale ¶ added in v1.152.0
func (o *VirtualNodeGroup) SetAutoScale(v *AutoScale) *VirtualNodeGroup
func (*VirtualNodeGroup) SetAvailabilityZones ¶
func (o *VirtualNodeGroup) SetAvailabilityZones(v []string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetId ¶
func (o *VirtualNodeGroup) SetId(v *string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetLabels ¶
func (o *VirtualNodeGroup) SetLabels(v *map[string]string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetName ¶
func (o *VirtualNodeGroup) SetName(v *string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetNodeCountLimits ¶
func (o *VirtualNodeGroup) SetNodeCountLimits(v *NodeCountLimits) *VirtualNodeGroup
func (*VirtualNodeGroup) SetNodePoolProperties ¶
func (o *VirtualNodeGroup) SetNodePoolProperties(v *NodePoolProperties) *VirtualNodeGroup
func (*VirtualNodeGroup) SetOceanId ¶
func (o *VirtualNodeGroup) SetOceanId(v *string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetStrategy ¶
func (o *VirtualNodeGroup) SetStrategy(v *Strategy) *VirtualNodeGroup
func (*VirtualNodeGroup) SetTags ¶
func (o *VirtualNodeGroup) SetTags(v *map[string]string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetTaints ¶
func (o *VirtualNodeGroup) SetTaints(v []*Taint) *VirtualNodeGroup
func (*VirtualNodeGroup) SetVmSizes ¶ added in v1.163.0
func (o *VirtualNodeGroup) SetVmSizes(v *VmSizes) *VirtualNodeGroup
type VirtualNodeGroupTemplate ¶
type VirtualNodeGroupTemplate struct { AvailabilityZones []string `json:"availabilityZones,omitempty"` NodePoolProperties *NodePoolProperties `json:"nodePoolProperties,omitempty"` NodeCountLimits *NodeCountLimits `json:"nodeCountLimits,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` Labels *map[string]string `json:"labels,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Taints []*Taint `json:"taints,omitempty"` AutoScale *AutoScale `json:"autoScale,omitempty"` VmSizes *VmSizes `json:"vmSizes,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroupTemplate) MarshalJSON ¶
func (o VirtualNodeGroupTemplate) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroupTemplate) SetAutoScale ¶ added in v1.162.0
func (o *VirtualNodeGroupTemplate) SetAutoScale(v *AutoScale) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetAvailabilityZones ¶
func (o *VirtualNodeGroupTemplate) SetAvailabilityZones(v []string) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetLabels ¶
func (o *VirtualNodeGroupTemplate) SetLabels(v *map[string]string) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetNodeCountLimits ¶
func (o *VirtualNodeGroupTemplate) SetNodeCountLimits(v *NodeCountLimits) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetNodePoolProperties ¶
func (o *VirtualNodeGroupTemplate) SetNodePoolProperties(v *NodePoolProperties) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetStrategy ¶
func (o *VirtualNodeGroupTemplate) SetStrategy(v *Strategy) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetTags ¶
func (o *VirtualNodeGroupTemplate) SetTags(v *map[string]string) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetTaints ¶
func (o *VirtualNodeGroupTemplate) SetTaints(v []*Taint) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetVmSizes ¶ added in v1.163.0
func (o *VirtualNodeGroupTemplate) SetVmSizes(v *VmSizes) *VirtualNodeGroupTemplate
type VmSizes ¶ added in v1.163.0
type VmSizes struct { Filters *Filters `json:"filters,omitempty"` // contains filtered or unexported fields }
func (VmSizes) MarshalJSON ¶ added in v1.163.0
func (*VmSizes) SetFilters ¶ added in v1.163.0
Click to show internal directories.
Click to hide internal directories.