Documentation ¶
Index ¶
- type AutoScale
- type AutoScaleHeadroom
- func (o AutoScaleHeadroom) MarshalJSON() ([]byte, error)
- func (o *AutoScaleHeadroom) SetCPUPerUnit(v *int) *AutoScaleHeadroom
- func (o *AutoScaleHeadroom) SetGPUPerUnit(v *int) *AutoScaleHeadroom
- func (o *AutoScaleHeadroom) SetMemoryPerUnit(v *int) *AutoScaleHeadroom
- func (o *AutoScaleHeadroom) SetNumOfUnits(v *int) *AutoScaleHeadroom
- type AutoScaler
- func (o AutoScaler) MarshalJSON() ([]byte, error)
- func (o *AutoScaler) SetCooldown(v *int) *AutoScaler
- func (o *AutoScaler) SetDown(v *AutoScalerDown) *AutoScaler
- func (o *AutoScaler) SetHeadroom(v *AutoScalerHeadroom) *AutoScaler
- func (o *AutoScaler) SetIsAutoConfig(v *bool) *AutoScaler
- func (o *AutoScaler) SetIsEnabled(v *bool) *AutoScaler
- func (o *AutoScaler) SetResourceLimits(v *AutoScalerResourceLimits) *AutoScaler
- type AutoScalerDown
- type AutoScalerHeadroom
- func (o AutoScalerHeadroom) MarshalJSON() ([]byte, error)
- func (o *AutoScalerHeadroom) SetCPUPerUnit(v *int) *AutoScalerHeadroom
- func (o *AutoScalerHeadroom) SetGPUPerUnit(v *int) *AutoScalerHeadroom
- func (o *AutoScalerHeadroom) SetMemoryPerUnit(v *int) *AutoScalerHeadroom
- func (o *AutoScalerHeadroom) SetNumOfUnits(v *int) *AutoScalerHeadroom
- type AutoScalerResourceLimits
- type Capacity
- type Cluster
- func (o Cluster) MarshalJSON() ([]byte, error)
- func (o *Cluster) SetAutoScaler(v *AutoScaler) *Cluster
- func (o *Cluster) SetCapacity(v *Capacity) *Cluster
- func (o *Cluster) SetCompute(v *Compute) *Cluster
- func (o *Cluster) SetControllerClusterId(v *string) *Cluster
- func (o *Cluster) SetId(v *string) *Cluster
- func (o *Cluster) SetName(v *string) *Cluster
- func (o *Cluster) SetRegion(v *string) *Cluster
- func (o *Cluster) SetScheduling(v *Scheduling) *Cluster
- func (o *Cluster) SetStrategy(v *Strategy) *Cluster
- type Compute
- type CreateClusterInput
- type CreateClusterOutput
- type CreateECSClusterInput
- type CreateECSClusterOutput
- type CreateECSLaunchSpecInput
- type CreateECSLaunchSpecOutput
- type CreateLaunchSpecInput
- type CreateLaunchSpecOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DeleteECSClusterInput
- type DeleteECSClusterOutput
- type DeleteECSLaunchSpecInput
- type DeleteECSLaunchSpecOutput
- type DeleteLaunchSpecInput
- type DeleteLaunchSpecOutput
- type DetachClusterInstancesInput
- type DetachClusterInstancesOutput
- type ECSAttribute
- type ECSAutoScale
- type ECSAutoScaleHeadroom
- type ECSAutoScaler
- func (o ECSAutoScaler) MarshalJSON() ([]byte, error)
- func (o *ECSAutoScaler) SetCooldown(v *int) *ECSAutoScaler
- func (o *ECSAutoScaler) SetDown(v *ECSAutoScalerDown) *ECSAutoScaler
- func (o *ECSAutoScaler) SetHeadroom(v *ECSAutoScalerHeadroom) *ECSAutoScaler
- func (o *ECSAutoScaler) SetIsAutoConfig(v *bool) *ECSAutoScaler
- func (o *ECSAutoScaler) SetIsEnabled(v *bool) *ECSAutoScaler
- func (o *ECSAutoScaler) SetResourceLimits(v *ECSAutoScalerResourceLimits) *ECSAutoScaler
- type ECSAutoScalerDown
- type ECSAutoScalerHeadroom
- type ECSAutoScalerResourceLimits
- type ECSCapacity
- type ECSCluster
- func (o ECSCluster) MarshalJSON() ([]byte, error)
- func (o *ECSCluster) SetAutoScaler(v *ECSAutoScaler) *ECSCluster
- func (o *ECSCluster) SetCapacity(v *ECSCapacity) *ECSCluster
- func (o *ECSCluster) SetClusterName(v *string) *ECSCluster
- func (o *ECSCluster) SetCompute(v *ECSCompute) *ECSCluster
- func (o *ECSCluster) SetECSStrategy(v *ECSStrategy) *ECSCluster
- func (o *ECSCluster) SetId(v *string) *ECSCluster
- func (o *ECSCluster) SetName(v *string) *ECSCluster
- func (o *ECSCluster) SetRegion(v *string) *ECSCluster
- type ECSCompute
- type ECSIAMInstanceProfile
- type ECSInstanceTypes
- type ECSLaunchSpec
- func (o ECSLaunchSpec) MarshalJSON() ([]byte, error)
- func (o *ECSLaunchSpec) SetAttributes(v []*ECSAttribute) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetAutoScale(v *ECSAutoScale) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetIAMInstanceProfile(v *ECSIAMInstanceProfile) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetId(v *string) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetImageId(v *string) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetName(v *string) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetOceanId(v *string) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetSecurityGroupIDs(v []string) *ECSLaunchSpec
- func (o *ECSLaunchSpec) SetUserData(v *string) *ECSLaunchSpec
- type ECSLaunchSpecification
- func (o ECSLaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *ECSLaunchSpecification) SetAssociatePublicIPAddress(v *bool) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetEBSOptimized(v *bool) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetIAMInstanceProfile(v *ECSIAMInstanceProfile) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetImageId(v *string) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetKeyPair(v *string) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetMonitoring(v *bool) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetSecurityGroupIDs(v []string) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetTags(v []*Tag) *ECSLaunchSpecification
- func (o *ECSLaunchSpecification) SetUserData(v *string) *ECSLaunchSpecification
- type ECSProgress
- type ECSRoll
- type ECSRollClusterInput
- type ECSRollClusterOutput
- type ECSRollClusterStatus
- type ECSStrategy
- type IAMInstanceProfile
- type Instance
- type InstanceTypes
- type Label
- type LaunchSpec
- func (o LaunchSpec) MarshalJSON() ([]byte, error)
- func (o *LaunchSpec) SetAutoScale(v *AutoScale) *LaunchSpec
- func (o *LaunchSpec) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpec
- func (o *LaunchSpec) SetId(v *string) *LaunchSpec
- func (o *LaunchSpec) SetImageId(v *string) *LaunchSpec
- func (o *LaunchSpec) SetLabels(v []*Label) *LaunchSpec
- func (o *LaunchSpec) SetName(v *string) *LaunchSpec
- func (o *LaunchSpec) SetOceanId(v *string) *LaunchSpec
- func (o *LaunchSpec) SetRootVolumeSize(v *int) *LaunchSpec
- func (o *LaunchSpec) SetSecurityGroupIDs(v []string) *LaunchSpec
- func (o *LaunchSpec) SetSubnetIDs(v []string) *LaunchSpec
- func (o *LaunchSpec) SetTaints(v []*Taint) *LaunchSpec
- func (o *LaunchSpec) SetUserData(v *string) *LaunchSpec
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetAssociatePublicIPAddress(v *bool) *LaunchSpecification
- func (o *LaunchSpecification) SetEBSOptimized(v *bool) *LaunchSpecification
- func (o *LaunchSpecification) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpecification
- func (o *LaunchSpecification) SetImageId(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetKeyPair(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetLoadBalancers(v []*LoadBalancer) *LaunchSpecification
- func (o *LaunchSpecification) SetMonitoring(v *bool) *LaunchSpecification
- func (o *LaunchSpecification) SetRootVolumeSize(v *int) *LaunchSpecification
- func (o *LaunchSpecification) SetSecurityGroupIDs(v []string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification
- func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification
- type ListClusterInstancesInput
- type ListClusterInstancesOutput
- type ListClustersInput
- type ListClustersOutput
- type ListECSClustersInput
- type ListECSClustersOutput
- type ListECSLaunchSpecsInput
- type ListECSLaunchSpecsOutput
- type ListLaunchSpecsInput
- type ListLaunchSpecsOutput
- type LoadBalancer
- type Progress
- type ReadClusterInput
- type ReadClusterOutput
- type ReadECSClusterInput
- type ReadECSClusterOutput
- type ReadECSLaunchSpecInput
- type ReadECSLaunchSpecOutput
- type ReadLaunchSpecInput
- type ReadLaunchSpecOutput
- type Roll
- type RollClusterInput
- type RollClusterOutput
- type RollClusterStatus
- type Scheduling
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, error)
- func (s *ServiceOp) CreateECSCluster(ctx context.Context, input *CreateECSClusterInput) (*CreateECSClusterOutput, error)
- func (s *ServiceOp) CreateECSLaunchSpec(ctx context.Context, input *CreateECSLaunchSpecInput) (*CreateECSLaunchSpecOutput, error)
- func (s *ServiceOp) CreateLaunchSpec(ctx context.Context, input *CreateLaunchSpecInput) (*CreateLaunchSpecOutput, error)
- func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
- func (s *ServiceOp) DeleteECSCluster(ctx context.Context, input *DeleteECSClusterInput) (*DeleteECSClusterOutput, error)
- func (s *ServiceOp) DeleteECSLaunchSpec(ctx context.Context, input *DeleteECSLaunchSpecInput) (*DeleteECSLaunchSpecOutput, error)
- func (s *ServiceOp) DeleteLaunchSpec(ctx context.Context, input *DeleteLaunchSpecInput) (*DeleteLaunchSpecOutput, error)
- func (s *ServiceOp) DetachClusterInstances(ctx context.Context, input *DetachClusterInstancesInput) (*DetachClusterInstancesOutput, error)
- func (s *ServiceOp) ListClusterInstances(ctx context.Context, input *ListClusterInstancesInput) (*ListClusterInstancesOutput, error)
- func (s *ServiceOp) ListClusters(ctx context.Context, input *ListClustersInput) (*ListClustersOutput, error)
- func (s *ServiceOp) ListECSClusters(ctx context.Context, input *ListECSClustersInput) (*ListECSClustersOutput, error)
- func (s *ServiceOp) ListECSLaunchSpecs(ctx context.Context, input *ListECSLaunchSpecsInput) (*ListECSLaunchSpecsOutput, error)
- func (s *ServiceOp) ListLaunchSpecs(ctx context.Context, input *ListLaunchSpecsInput) (*ListLaunchSpecsOutput, error)
- func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)
- func (s *ServiceOp) ReadECSCluster(ctx context.Context, input *ReadECSClusterInput) (*ReadECSClusterOutput, error)
- func (s *ServiceOp) ReadECSLaunchSpec(ctx context.Context, input *ReadECSLaunchSpecInput) (*ReadECSLaunchSpecOutput, error)
- func (s *ServiceOp) ReadLaunchSpec(ctx context.Context, input *ReadLaunchSpecInput) (*ReadLaunchSpecOutput, error)
- func (s *ServiceOp) Roll(ctx context.Context, input *RollClusterInput) (*RollClusterOutput, error)
- func (s *ServiceOp) RollECS(ctx context.Context, input *ECSRollClusterInput) (*ECSRollClusterOutput, error)
- func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
- func (s *ServiceOp) UpdateECSCluster(ctx context.Context, input *UpdateECSClusterInput) (*UpdateECSClusterOutput, error)
- func (s *ServiceOp) UpdateECSLaunchSpec(ctx context.Context, input *UpdateECSLaunchSpecInput) (*UpdateECSLaunchSpecOutput, error)
- func (s *ServiceOp) UpdateLaunchSpec(ctx context.Context, input *UpdateLaunchSpecInput) (*UpdateLaunchSpecOutput, error)
- type ShutdownHours
- type Strategy
- type Tag
- type Taint
- type Task
- type UpdateClusterInput
- type UpdateClusterOutput
- type UpdateECSClusterInput
- type UpdateECSClusterOutput
- type UpdateECSLaunchSpecInput
- type UpdateECSLaunchSpecOutput
- type UpdateLaunchSpecInput
- type UpdateLaunchSpecOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoScale ¶
type AutoScale struct { Headrooms []*AutoScaleHeadroom `json:"headrooms,omitempty"` // contains filtered or unexported fields }
func (AutoScale) MarshalJSON ¶
func (*AutoScale) SetHeadrooms ¶
func (o *AutoScale) SetHeadrooms(v []*AutoScaleHeadroom) *AutoScale
type AutoScaleHeadroom ¶
type AutoScaleHeadroom struct { CPUPerUnit *int `json:"cpuPerUnit,omitempty"` GPUPerUnit *int `json:"gpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` NumOfUnits *int `json:"numOfUnits,omitempty"` // contains filtered or unexported fields }
func (AutoScaleHeadroom) MarshalJSON ¶
func (o AutoScaleHeadroom) MarshalJSON() ([]byte, error)
func (*AutoScaleHeadroom) SetCPUPerUnit ¶
func (o *AutoScaleHeadroom) SetCPUPerUnit(v *int) *AutoScaleHeadroom
func (*AutoScaleHeadroom) SetGPUPerUnit ¶
func (o *AutoScaleHeadroom) SetGPUPerUnit(v *int) *AutoScaleHeadroom
func (*AutoScaleHeadroom) SetMemoryPerUnit ¶
func (o *AutoScaleHeadroom) SetMemoryPerUnit(v *int) *AutoScaleHeadroom
func (*AutoScaleHeadroom) SetNumOfUnits ¶
func (o *AutoScaleHeadroom) SetNumOfUnits(v *int) *AutoScaleHeadroom
type AutoScaler ¶
type AutoScaler struct { IsEnabled *bool `json:"isEnabled,omitempty"` IsAutoConfig *bool `json:"isAutoConfig,omitempty"` Cooldown *int `json:"cooldown,omitempty"` Headroom *AutoScalerHeadroom `json:"headroom,omitempty"` ResourceLimits *AutoScalerResourceLimits `json:"resourceLimits,omitempty"` Down *AutoScalerDown `json:"down,omitempty"` // contains filtered or unexported fields }
func (AutoScaler) MarshalJSON ¶
func (o AutoScaler) MarshalJSON() ([]byte, error)
func (*AutoScaler) SetCooldown ¶
func (o *AutoScaler) SetCooldown(v *int) *AutoScaler
func (*AutoScaler) SetDown ¶
func (o *AutoScaler) SetDown(v *AutoScalerDown) *AutoScaler
func (*AutoScaler) SetHeadroom ¶
func (o *AutoScaler) SetHeadroom(v *AutoScalerHeadroom) *AutoScaler
func (*AutoScaler) SetIsAutoConfig ¶
func (o *AutoScaler) SetIsAutoConfig(v *bool) *AutoScaler
func (*AutoScaler) SetIsEnabled ¶
func (o *AutoScaler) SetIsEnabled(v *bool) *AutoScaler
func (*AutoScaler) SetResourceLimits ¶
func (o *AutoScaler) SetResourceLimits(v *AutoScalerResourceLimits) *AutoScaler
type AutoScalerDown ¶
type AutoScalerDown struct { EvaluationPeriods *int `json:"evaluationPeriods,omitempty"` MaxScaleDownPercentage *int `json:"maxScaleDownPercentage,omitempty"` // contains filtered or unexported fields }
func (AutoScalerDown) MarshalJSON ¶
func (o AutoScalerDown) MarshalJSON() ([]byte, error)
func (*AutoScalerDown) SetEvaluationPeriods ¶
func (o *AutoScalerDown) SetEvaluationPeriods(v *int) *AutoScalerDown
func (*AutoScalerDown) SetMaxScaleDownPercentage ¶ added in v1.37.0
func (o *AutoScalerDown) SetMaxScaleDownPercentage(v *int) *AutoScalerDown
type AutoScalerHeadroom ¶
type AutoScalerHeadroom struct { CPUPerUnit *int `json:"cpuPerUnit,omitempty"` GPUPerUnit *int `json:"gpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` NumOfUnits *int `json:"numOfUnits,omitempty"` // contains filtered or unexported fields }
func (AutoScalerHeadroom) MarshalJSON ¶
func (o AutoScalerHeadroom) MarshalJSON() ([]byte, error)
func (*AutoScalerHeadroom) SetCPUPerUnit ¶
func (o *AutoScalerHeadroom) SetCPUPerUnit(v *int) *AutoScalerHeadroom
func (*AutoScalerHeadroom) SetGPUPerUnit ¶
func (o *AutoScalerHeadroom) SetGPUPerUnit(v *int) *AutoScalerHeadroom
func (*AutoScalerHeadroom) SetMemoryPerUnit ¶
func (o *AutoScalerHeadroom) SetMemoryPerUnit(v *int) *AutoScalerHeadroom
func (*AutoScalerHeadroom) SetNumOfUnits ¶
func (o *AutoScalerHeadroom) SetNumOfUnits(v *int) *AutoScalerHeadroom
type AutoScalerResourceLimits ¶
type AutoScalerResourceLimits struct { MaxVCPU *int `json:"maxVCpu,omitempty"` MaxMemoryGiB *int `json:"maxMemoryGib,omitempty"` // contains filtered or unexported fields }
func (AutoScalerResourceLimits) MarshalJSON ¶
func (o AutoScalerResourceLimits) MarshalJSON() ([]byte, error)
func (*AutoScalerResourceLimits) SetMaxMemoryGiB ¶
func (o *AutoScalerResourceLimits) SetMaxMemoryGiB(v *int) *AutoScalerResourceLimits
func (*AutoScalerResourceLimits) SetMaxVCPU ¶
func (o *AutoScalerResourceLimits) SetMaxVCPU(v *int) *AutoScalerResourceLimits
type Capacity ¶
type Capacity struct { Minimum *int `json:"minimum,omitempty"` Maximum *int `json:"maximum,omitempty"` Target *int `json:"target,omitempty"` // contains filtered or unexported fields }
func (Capacity) MarshalJSON ¶
func (*Capacity) SetMaximum ¶
func (*Capacity) SetMinimum ¶
type Cluster ¶
type Cluster struct { ID *string `json:"id,omitempty"` ControllerClusterID *string `json:"controllerClusterId,omitempty"` Name *string `json:"name,omitempty"` Region *string `json:"region,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` Capacity *Capacity `json:"capacity,omitempty"` Compute *Compute `json:"compute,omitempty"` Scheduling *Scheduling `json:"scheduling,omitempty"` AutoScaler *AutoScaler `json:"autoScaler,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) SetCapacity ¶
func (*Cluster) SetCompute ¶
func (*Cluster) SetControllerClusterId ¶
func (*Cluster) SetScheduling ¶ added in v1.40.0
func (o *Cluster) SetScheduling(v *Scheduling) *Cluster
func (*Cluster) SetStrategy ¶
type Compute ¶
type Compute struct { InstanceTypes *InstanceTypes `json:"instanceTypes,omitempty"` LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"` SubnetIDs []string `json:"subnetIds,omitempty"` // contains filtered or unexported fields }
func (Compute) MarshalJSON ¶
func (*Compute) SetInstanceTypes ¶
func (o *Compute) SetInstanceTypes(v *InstanceTypes) *Compute
func (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetSubnetIDs ¶
type CreateClusterInput ¶
type CreateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateClusterOutput ¶
type CreateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateECSClusterInput ¶
type CreateECSClusterInput struct {
Cluster *ECSCluster `json:"cluster,omitempty"`
}
type CreateECSClusterOutput ¶
type CreateECSClusterOutput struct {
Cluster *ECSCluster `json:"cluster,omitempty"`
}
type CreateECSLaunchSpecInput ¶
type CreateECSLaunchSpecInput struct {
LaunchSpec *ECSLaunchSpec `json:"launchSpec,omitempty"`
}
type CreateECSLaunchSpecOutput ¶
type CreateECSLaunchSpecOutput struct {
LaunchSpec *ECSLaunchSpec `json:"launchSpec,omitempty"`
}
type CreateLaunchSpecInput ¶
type CreateLaunchSpecInput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type CreateLaunchSpecOutput ¶
type CreateLaunchSpecOutput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type DeleteClusterInput ¶
type DeleteClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type DeleteClusterOutput ¶
type DeleteClusterOutput struct{}
type DeleteECSClusterInput ¶
type DeleteECSClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type DeleteECSClusterOutput ¶
type DeleteECSClusterOutput struct{}
type DeleteECSLaunchSpecInput ¶
type DeleteECSLaunchSpecInput struct {
LaunchSpecID *string `json:"launchSpecId,omitempty"`
}
type DeleteECSLaunchSpecOutput ¶
type DeleteECSLaunchSpecOutput struct{}
type DeleteLaunchSpecInput ¶
type DeleteLaunchSpecInput struct {
LaunchSpecID *string `json:"launchSpecId,omitempty"`
}
type DeleteLaunchSpecOutput ¶
type DeleteLaunchSpecOutput struct{}
type DetachClusterInstancesInput ¶
type DetachClusterInstancesInput struct { ClusterID *string `json:"clusterId,omitempty"` InstanceIDs []string `json:"instancesToDetach,omitempty"` ShouldDecrementTargetCapacity *bool `json:"shouldDecrementTargetCapacity,omitempty"` ShouldTerminateInstances *bool `json:"shouldTerminateInstances,omitempty"` }
type DetachClusterInstancesOutput ¶
type DetachClusterInstancesOutput struct{}
type ECSAttribute ¶
type ECSAttribute struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (ECSAttribute) MarshalJSON ¶
func (o ECSAttribute) MarshalJSON() ([]byte, error)
func (*ECSAttribute) SetKey ¶
func (o *ECSAttribute) SetKey(v *string) *ECSAttribute
func (*ECSAttribute) SetValue ¶
func (o *ECSAttribute) SetValue(v *string) *ECSAttribute
type ECSAutoScale ¶
type ECSAutoScale struct { Headrooms []*ECSAutoScaleHeadroom `json:"headrooms,omitempty"` // contains filtered or unexported fields }
func (ECSAutoScale) MarshalJSON ¶
func (o ECSAutoScale) MarshalJSON() ([]byte, error)
func (*ECSAutoScale) SetHeadrooms ¶
func (o *ECSAutoScale) SetHeadrooms(v []*ECSAutoScaleHeadroom) *ECSAutoScale
type ECSAutoScaleHeadroom ¶
type ECSAutoScaleHeadroom struct { CPUPerUnit *int `json:"cpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` NumOfUnits *int `json:"numOfUnits,omitempty"` // contains filtered or unexported fields }
func (ECSAutoScaleHeadroom) MarshalJSON ¶
func (o ECSAutoScaleHeadroom) MarshalJSON() ([]byte, error)
func (*ECSAutoScaleHeadroom) SetCPUPerUnit ¶
func (o *ECSAutoScaleHeadroom) SetCPUPerUnit(v *int) *ECSAutoScaleHeadroom
func (*ECSAutoScaleHeadroom) SetMemoryPerUnit ¶
func (o *ECSAutoScaleHeadroom) SetMemoryPerUnit(v *int) *ECSAutoScaleHeadroom
func (*ECSAutoScaleHeadroom) SetNumOfUnits ¶
func (o *ECSAutoScaleHeadroom) SetNumOfUnits(v *int) *ECSAutoScaleHeadroom
type ECSAutoScaler ¶
type ECSAutoScaler struct { IsEnabled *bool `json:"isEnabled,omitempty"` IsAutoConfig *bool `json:"isAutoConfig,omitempty"` Cooldown *int `json:"cooldown,omitempty"` Headroom *ECSAutoScalerHeadroom `json:"headroom,omitempty"` ResourceLimits *ECSAutoScalerResourceLimits `json:"resourceLimits,omitempty"` Down *ECSAutoScalerDown `json:"down,omitempty"` // contains filtered or unexported fields }
func (ECSAutoScaler) MarshalJSON ¶
func (o ECSAutoScaler) MarshalJSON() ([]byte, error)
func (*ECSAutoScaler) SetCooldown ¶
func (o *ECSAutoScaler) SetCooldown(v *int) *ECSAutoScaler
func (*ECSAutoScaler) SetDown ¶
func (o *ECSAutoScaler) SetDown(v *ECSAutoScalerDown) *ECSAutoScaler
func (*ECSAutoScaler) SetHeadroom ¶
func (o *ECSAutoScaler) SetHeadroom(v *ECSAutoScalerHeadroom) *ECSAutoScaler
func (*ECSAutoScaler) SetIsAutoConfig ¶
func (o *ECSAutoScaler) SetIsAutoConfig(v *bool) *ECSAutoScaler
func (*ECSAutoScaler) SetIsEnabled ¶
func (o *ECSAutoScaler) SetIsEnabled(v *bool) *ECSAutoScaler
func (*ECSAutoScaler) SetResourceLimits ¶
func (o *ECSAutoScaler) SetResourceLimits(v *ECSAutoScalerResourceLimits) *ECSAutoScaler
type ECSAutoScalerDown ¶
type ECSAutoScalerDown struct { MaxScaleDownPercentage *int `json:"maxScaleDownPercentage,omitempty"` // contains filtered or unexported fields }
func (ECSAutoScalerDown) MarshalJSON ¶
func (o ECSAutoScalerDown) MarshalJSON() ([]byte, error)
func (*ECSAutoScalerDown) SetMaxScaleDownPercentage ¶
func (o *ECSAutoScalerDown) SetMaxScaleDownPercentage(v *int) *ECSAutoScalerDown
type ECSAutoScalerHeadroom ¶
type ECSAutoScalerHeadroom struct { CPUPerUnit *int `json:"cpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` NumOfUnits *int `json:"numOfUnits,omitempty"` // contains filtered or unexported fields }
func (ECSAutoScalerHeadroom) MarshalJSON ¶
func (o ECSAutoScalerHeadroom) MarshalJSON() ([]byte, error)
func (*ECSAutoScalerHeadroom) SetCPUPerUnit ¶
func (o *ECSAutoScalerHeadroom) SetCPUPerUnit(v *int) *ECSAutoScalerHeadroom
func (*ECSAutoScalerHeadroom) SetMemoryPerUnit ¶
func (o *ECSAutoScalerHeadroom) SetMemoryPerUnit(v *int) *ECSAutoScalerHeadroom
func (*ECSAutoScalerHeadroom) SetNumOfUnits ¶
func (o *ECSAutoScalerHeadroom) SetNumOfUnits(v *int) *ECSAutoScalerHeadroom
type ECSAutoScalerResourceLimits ¶
type ECSAutoScalerResourceLimits struct { MaxVCPU *int `json:"maxVCpu,omitempty"` MaxMemoryGiB *int `json:"maxMemoryGib,omitempty"` // contains filtered or unexported fields }
func (ECSAutoScalerResourceLimits) MarshalJSON ¶
func (o ECSAutoScalerResourceLimits) MarshalJSON() ([]byte, error)
func (*ECSAutoScalerResourceLimits) SetMaxMemoryGiB ¶
func (o *ECSAutoScalerResourceLimits) SetMaxMemoryGiB(v *int) *ECSAutoScalerResourceLimits
func (*ECSAutoScalerResourceLimits) SetMaxVCPU ¶
func (o *ECSAutoScalerResourceLimits) SetMaxVCPU(v *int) *ECSAutoScalerResourceLimits
type ECSCapacity ¶
type ECSCapacity struct { Minimum *int `json:"minimum,omitempty"` Maximum *int `json:"maximum,omitempty"` Target *int `json:"target,omitempty"` // contains filtered or unexported fields }
func (ECSCapacity) MarshalJSON ¶
func (o ECSCapacity) MarshalJSON() ([]byte, error)
func (*ECSCapacity) SetMaximum ¶
func (o *ECSCapacity) SetMaximum(v *int) *ECSCapacity
func (*ECSCapacity) SetMinimum ¶
func (o *ECSCapacity) SetMinimum(v *int) *ECSCapacity
func (*ECSCapacity) SetTarget ¶
func (o *ECSCapacity) SetTarget(v *int) *ECSCapacity
type ECSCluster ¶
type ECSCluster struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` ClusterName *string `json:"clusterName,omitempty"` Region *string `json:"region,omitempty"` Capacity *ECSCapacity `json:"capacity,omitempty"` Compute *ECSCompute `json:"compute,omitempty"` AutoScaler *ECSAutoScaler `json:"autoScaler,omitempty"` Strategy *ECSStrategy `json:"strategy,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (ECSCluster) MarshalJSON ¶
func (o ECSCluster) MarshalJSON() ([]byte, error)
func (*ECSCluster) SetAutoScaler ¶
func (o *ECSCluster) SetAutoScaler(v *ECSAutoScaler) *ECSCluster
func (*ECSCluster) SetCapacity ¶
func (o *ECSCluster) SetCapacity(v *ECSCapacity) *ECSCluster
func (*ECSCluster) SetClusterName ¶
func (o *ECSCluster) SetClusterName(v *string) *ECSCluster
func (*ECSCluster) SetCompute ¶
func (o *ECSCluster) SetCompute(v *ECSCompute) *ECSCluster
func (*ECSCluster) SetECSStrategy ¶
func (o *ECSCluster) SetECSStrategy(v *ECSStrategy) *ECSCluster
func (*ECSCluster) SetId ¶
func (o *ECSCluster) SetId(v *string) *ECSCluster
func (*ECSCluster) SetName ¶
func (o *ECSCluster) SetName(v *string) *ECSCluster
func (*ECSCluster) SetRegion ¶
func (o *ECSCluster) SetRegion(v *string) *ECSCluster
type ECSCompute ¶
type ECSCompute struct { InstanceTypes *ECSInstanceTypes `json:"instanceTypes,omitempty"` LaunchSpecification *ECSLaunchSpecification `json:"launchSpecification,omitempty"` SubnetIDs []string `json:"subnetIds,omitempty"` // contains filtered or unexported fields }
func (ECSCompute) MarshalJSON ¶
func (o ECSCompute) MarshalJSON() ([]byte, error)
func (*ECSCompute) SetInstanceTypes ¶
func (o *ECSCompute) SetInstanceTypes(v *ECSInstanceTypes) *ECSCompute
func (*ECSCompute) SetLaunchSpecification ¶
func (o *ECSCompute) SetLaunchSpecification(v *ECSLaunchSpecification) *ECSCompute
func (*ECSCompute) SetSubnetIDs ¶
func (o *ECSCompute) SetSubnetIDs(v []string) *ECSCompute
type ECSIAMInstanceProfile ¶
type ECSIAMInstanceProfile struct { ARN *string `json:"arn,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (ECSIAMInstanceProfile) MarshalJSON ¶
func (o ECSIAMInstanceProfile) MarshalJSON() ([]byte, error)
func (*ECSIAMInstanceProfile) SetArn ¶
func (o *ECSIAMInstanceProfile) SetArn(v *string) *ECSIAMInstanceProfile
func (*ECSIAMInstanceProfile) SetName ¶
func (o *ECSIAMInstanceProfile) SetName(v *string) *ECSIAMInstanceProfile
type ECSInstanceTypes ¶
type ECSInstanceTypes struct { Whitelist []string `json:"whitelist,omitempty"` // contains filtered or unexported fields }
func (ECSInstanceTypes) MarshalJSON ¶
func (o ECSInstanceTypes) MarshalJSON() ([]byte, error)
func (*ECSInstanceTypes) SetWhitelist ¶
func (o *ECSInstanceTypes) SetWhitelist(v []string) *ECSInstanceTypes
type ECSLaunchSpec ¶
type ECSLaunchSpec struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` OceanID *string `json:"oceanId,omitempty"` ImageID *string `json:"imageId,omitempty"` UserData *string `json:"userData,omitempty"` SecurityGroupIDs []string `json:"securityGroupIds,omitempty"` IAMInstanceProfile *ECSIAMInstanceProfile `json:"iamInstanceProfile,omitempty"` Attributes []*ECSAttribute `json:"attributes,omitempty"` AutoScale *ECSAutoScale `json:"autoScale,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (ECSLaunchSpec) MarshalJSON ¶
func (o ECSLaunchSpec) MarshalJSON() ([]byte, error)
func (*ECSLaunchSpec) SetAttributes ¶
func (o *ECSLaunchSpec) SetAttributes(v []*ECSAttribute) *ECSLaunchSpec
func (*ECSLaunchSpec) SetAutoScale ¶
func (o *ECSLaunchSpec) SetAutoScale(v *ECSAutoScale) *ECSLaunchSpec
func (*ECSLaunchSpec) SetIAMInstanceProfile ¶
func (o *ECSLaunchSpec) SetIAMInstanceProfile(v *ECSIAMInstanceProfile) *ECSLaunchSpec
func (*ECSLaunchSpec) SetId ¶
func (o *ECSLaunchSpec) SetId(v *string) *ECSLaunchSpec
func (*ECSLaunchSpec) SetImageId ¶
func (o *ECSLaunchSpec) SetImageId(v *string) *ECSLaunchSpec
func (*ECSLaunchSpec) SetName ¶
func (o *ECSLaunchSpec) SetName(v *string) *ECSLaunchSpec
func (*ECSLaunchSpec) SetOceanId ¶
func (o *ECSLaunchSpec) SetOceanId(v *string) *ECSLaunchSpec
func (*ECSLaunchSpec) SetSecurityGroupIDs ¶
func (o *ECSLaunchSpec) SetSecurityGroupIDs(v []string) *ECSLaunchSpec
func (*ECSLaunchSpec) SetUserData ¶
func (o *ECSLaunchSpec) SetUserData(v *string) *ECSLaunchSpec
type ECSLaunchSpecification ¶
type ECSLaunchSpecification struct { AssociatePublicIPAddress *bool `json:"associatePublicIpAddress,omitempty"` SecurityGroupIDs []string `json:"securityGroupIds,omitempty"` ImageID *string `json:"imageId,omitempty"` KeyPair *string `json:"keyPair,omitempty"` UserData *string `json:"userData,omitempty"` IAMInstanceProfile *ECSIAMInstanceProfile `json:"iamInstanceProfile,omitempty"` Tags []*Tag `json:"tags,omitempty"` Monitoring *bool `json:"monitoring,omitempty"` EBSOptimized *bool `json:"ebsOptimized,omitempty"` // contains filtered or unexported fields }
func (ECSLaunchSpecification) MarshalJSON ¶
func (o ECSLaunchSpecification) MarshalJSON() ([]byte, error)
func (*ECSLaunchSpecification) SetAssociatePublicIPAddress ¶
func (o *ECSLaunchSpecification) SetAssociatePublicIPAddress(v *bool) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetEBSOptimized ¶
func (o *ECSLaunchSpecification) SetEBSOptimized(v *bool) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetIAMInstanceProfile ¶
func (o *ECSLaunchSpecification) SetIAMInstanceProfile(v *ECSIAMInstanceProfile) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetImageId ¶
func (o *ECSLaunchSpecification) SetImageId(v *string) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetKeyPair ¶
func (o *ECSLaunchSpecification) SetKeyPair(v *string) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetMonitoring ¶
func (o *ECSLaunchSpecification) SetMonitoring(v *bool) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetSecurityGroupIDs ¶
func (o *ECSLaunchSpecification) SetSecurityGroupIDs(v []string) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetTags ¶
func (o *ECSLaunchSpecification) SetTags(v []*Tag) *ECSLaunchSpecification
func (*ECSLaunchSpecification) SetUserData ¶
func (o *ECSLaunchSpecification) SetUserData(v *string) *ECSLaunchSpecification
type ECSProgress ¶
type ECSRollClusterInput ¶
type ECSRollClusterInput struct {
Roll *ECSRoll `json:"roll,omitempty"`
}
type ECSRollClusterOutput ¶
type ECSRollClusterOutput struct {
RollClusterStatus *ECSRollClusterStatus `json:"clusterDeploymentStatus,omitempty"`
}
type ECSRollClusterStatus ¶
type ECSRollClusterStatus struct { OceanID *string `json:"oceanId,omitempty"` RollID *string `json:"id,omitempty"` RollStatus *string `json:"status,omitempty"` Progress *ECSProgress `json:"progress,omitempty"` CurrentBatch *int `json:"currentBatch,omitempty"` NumOfBatches *int `json:"numOfBatches,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` UpdatedAt *string `json:"updatedAt,omitempty"` }
type ECSStrategy ¶
type ECSStrategy struct { DrainingTimeout *int `json:"drainingTimeout,omitempty"` UtilizeReservedInstances *bool `json:"utilizeReservedInstances,omitempty"` // contains filtered or unexported fields }
func (ECSStrategy) MarshalJSON ¶
func (o ECSStrategy) MarshalJSON() ([]byte, error)
func (*ECSStrategy) SetDrainingTimeout ¶
func (o *ECSStrategy) SetDrainingTimeout(v *int) *ECSStrategy
func (*ECSStrategy) SetUtilizeReservedInstances ¶
func (o *ECSStrategy) SetUtilizeReservedInstances(v *bool) *ECSStrategy
type IAMInstanceProfile ¶
type IAMInstanceProfile struct { ARN *string `json:"arn,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (IAMInstanceProfile) MarshalJSON ¶
func (o IAMInstanceProfile) MarshalJSON() ([]byte, error)
func (*IAMInstanceProfile) SetArn ¶
func (o *IAMInstanceProfile) SetArn(v *string) *IAMInstanceProfile
func (*IAMInstanceProfile) SetName ¶
func (o *IAMInstanceProfile) SetName(v *string) *IAMInstanceProfile
type Instance ¶
type Instance struct { ID *string `json:"instanceId,omitempty"` SpotRequestID *string `json:"spotInstanceRequestId,omitempty"` InstanceType *string `json:"instanceType,omitempty"` Status *string `json:"status,omitempty"` Product *string `json:"product,omitempty"` AvailabilityZone *string `json:"availabilityZone,omitempty"` PrivateIP *string `json:"privateIp,omitempty"` PublicIP *string `json:"publicIp,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` }
type InstanceTypes ¶
type InstanceTypes struct { Whitelist []string `json:"whitelist,omitempty"` Blacklist []string `json:"blacklist,omitempty"` // contains filtered or unexported fields }
func (InstanceTypes) MarshalJSON ¶
func (o InstanceTypes) MarshalJSON() ([]byte, error)
func (*InstanceTypes) SetBlacklist ¶
func (o *InstanceTypes) SetBlacklist(v []string) *InstanceTypes
func (*InstanceTypes) SetWhitelist ¶
func (o *InstanceTypes) SetWhitelist(v []string) *InstanceTypes
type Label ¶
type Label struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (Label) MarshalJSON ¶
type LaunchSpec ¶
type LaunchSpec struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` OceanID *string `json:"oceanId,omitempty"` ImageID *string `json:"imageId,omitempty"` UserData *string `json:"userData,omitempty"` RootVolumeSize *int `json:"rootVolumeSize,omitempty"` SecurityGroupIDs []string `json:"securityGroupIds,omitempty"` SubnetIDs []string `json:"subnetIds,omitempty"` IAMInstanceProfile *IAMInstanceProfile `json:"iamInstanceProfile,omitempty"` Labels []*Label `json:"labels,omitempty"` Taints []*Taint `json:"taints,omitempty"` AutoScale *AutoScale `json:"autoScale,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (LaunchSpec) MarshalJSON ¶
func (o LaunchSpec) MarshalJSON() ([]byte, error)
func (*LaunchSpec) SetAutoScale ¶
func (o *LaunchSpec) SetAutoScale(v *AutoScale) *LaunchSpec
func (*LaunchSpec) SetIAMInstanceProfile ¶
func (o *LaunchSpec) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpec
func (*LaunchSpec) SetId ¶
func (o *LaunchSpec) SetId(v *string) *LaunchSpec
func (*LaunchSpec) SetImageId ¶
func (o *LaunchSpec) SetImageId(v *string) *LaunchSpec
func (*LaunchSpec) SetLabels ¶
func (o *LaunchSpec) SetLabels(v []*Label) *LaunchSpec
func (*LaunchSpec) SetName ¶
func (o *LaunchSpec) SetName(v *string) *LaunchSpec
func (*LaunchSpec) SetOceanId ¶
func (o *LaunchSpec) SetOceanId(v *string) *LaunchSpec
func (*LaunchSpec) SetRootVolumeSize ¶ added in v1.38.2
func (o *LaunchSpec) SetRootVolumeSize(v *int) *LaunchSpec
func (*LaunchSpec) SetSecurityGroupIDs ¶
func (o *LaunchSpec) SetSecurityGroupIDs(v []string) *LaunchSpec
func (*LaunchSpec) SetSubnetIDs ¶ added in v1.36.0
func (o *LaunchSpec) SetSubnetIDs(v []string) *LaunchSpec
func (*LaunchSpec) SetTaints ¶
func (o *LaunchSpec) SetTaints(v []*Taint) *LaunchSpec
func (*LaunchSpec) SetUserData ¶
func (o *LaunchSpec) SetUserData(v *string) *LaunchSpec
type LaunchSpecification ¶
type LaunchSpecification struct { AssociatePublicIPAddress *bool `json:"associatePublicIpAddress,omitempty"` SecurityGroupIDs []string `json:"securityGroupIds,omitempty"` ImageID *string `json:"imageId,omitempty"` KeyPair *string `json:"keyPair,omitempty"` UserData *string `json:"userData,omitempty"` IAMInstanceProfile *IAMInstanceProfile `json:"iamInstanceProfile,omitempty"` Tags []*Tag `json:"tags,omitempty"` LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"` RootVolumeSize *int `json:"rootVolumeSize,omitempty"` Monitoring *bool `json:"monitoring,omitempty"` EBSOptimized *bool `json:"ebsOptimized,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecification) MarshalJSON ¶
func (o LaunchSpecification) MarshalJSON() ([]byte, error)
func (*LaunchSpecification) SetAssociatePublicIPAddress ¶
func (o *LaunchSpecification) SetAssociatePublicIPAddress(v *bool) *LaunchSpecification
func (*LaunchSpecification) SetEBSOptimized ¶
func (o *LaunchSpecification) SetEBSOptimized(v *bool) *LaunchSpecification
func (*LaunchSpecification) SetIAMInstanceProfile ¶
func (o *LaunchSpecification) SetIAMInstanceProfile(v *IAMInstanceProfile) *LaunchSpecification
func (*LaunchSpecification) SetImageId ¶
func (o *LaunchSpecification) SetImageId(v *string) *LaunchSpecification
func (*LaunchSpecification) SetKeyPair ¶
func (o *LaunchSpecification) SetKeyPair(v *string) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancers ¶
func (o *LaunchSpecification) SetLoadBalancers(v []*LoadBalancer) *LaunchSpecification
func (*LaunchSpecification) SetMonitoring ¶
func (o *LaunchSpecification) SetMonitoring(v *bool) *LaunchSpecification
func (*LaunchSpecification) SetRootVolumeSize ¶
func (o *LaunchSpecification) SetRootVolumeSize(v *int) *LaunchSpecification
func (*LaunchSpecification) SetSecurityGroupIDs ¶
func (o *LaunchSpecification) SetSecurityGroupIDs(v []string) *LaunchSpecification
func (*LaunchSpecification) SetTags ¶
func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification
func (*LaunchSpecification) SetUserData ¶
func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification
type ListClusterInstancesInput ¶
type ListClusterInstancesInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ListClusterInstancesOutput ¶
type ListClusterInstancesOutput struct {
Instances []*Instance `json:"instances,omitempty"`
}
type ListClustersInput ¶
type ListClustersInput struct{}
type ListClustersOutput ¶
type ListClustersOutput struct {
Clusters []*Cluster `json:"clusters,omitempty"`
}
type ListECSClustersInput ¶
type ListECSClustersInput struct{}
type ListECSClustersOutput ¶
type ListECSClustersOutput struct {
Clusters []*ECSCluster `json:"clusters,omitempty"`
}
type ListECSLaunchSpecsInput ¶
type ListECSLaunchSpecsInput struct {
OceanID *string `json:"oceanId,omitempty"`
}
type ListECSLaunchSpecsOutput ¶
type ListECSLaunchSpecsOutput struct {
LaunchSpecs []*ECSLaunchSpec `json:"launchSpecs,omitempty"`
}
type ListLaunchSpecsInput ¶
type ListLaunchSpecsInput struct {
OceanID *string `json:"oceanId,omitempty"`
}
type ListLaunchSpecsOutput ¶
type ListLaunchSpecsOutput struct {
LaunchSpecs []*LaunchSpec `json:"launchSpecs,omitempty"`
}
type LoadBalancer ¶
type LoadBalancer struct { Name *string `json:"name,omitempty"` Arn *string `json:"arn,omitempty"` Type *string `json:"type,omitempty"` // contains filtered or unexported fields }
func (*LoadBalancer) SetArn ¶
func (o *LoadBalancer) SetArn(v *string) *LoadBalancer
func (*LoadBalancer) SetName ¶
func (o *LoadBalancer) SetName(v *string) *LoadBalancer
func (*LoadBalancer) SetType ¶
func (o *LoadBalancer) SetType(v *string) *LoadBalancer
type ReadClusterInput ¶
type ReadClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ReadClusterOutput ¶
type ReadClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type ReadECSClusterInput ¶
type ReadECSClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ReadECSClusterOutput ¶
type ReadECSClusterOutput struct {
Cluster *ECSCluster `json:"cluster,omitempty"`
}
type ReadECSLaunchSpecInput ¶
type ReadECSLaunchSpecInput struct {
LaunchSpecID *string `json:"launchSpecId,omitempty"`
}
type ReadECSLaunchSpecOutput ¶
type ReadECSLaunchSpecOutput struct {
LaunchSpec *ECSLaunchSpec `json:"launchSpec,omitempty"`
}
type ReadLaunchSpecInput ¶
type ReadLaunchSpecInput struct {
LaunchSpecID *string `json:"launchSpecId,omitempty"`
}
type ReadLaunchSpecOutput ¶
type ReadLaunchSpecOutput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type RollClusterInput ¶
type RollClusterInput struct {
Roll *Roll `json:"roll,omitempty"`
}
type RollClusterOutput ¶
type RollClusterOutput struct {
RollClusterStatus *RollClusterStatus `json:"clusterDeploymentStatus,omitempty"`
}
type RollClusterStatus ¶
type RollClusterStatus struct { OceanID *string `json:"oceanId,omitempty"` RollID *string `json:"id,omitempty"` RollStatus *string `json:"status,omitempty"` Progress *Progress `json:"progress,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.40.0
type Scheduling struct { ShutdownHours *ShutdownHours `json:"shutdownHours,omitempty"` Tasks []*Task `json:"tasks,omitempty"` // contains filtered or unexported fields }
func (Scheduling) MarshalJSON ¶ added in v1.40.0
func (o Scheduling) MarshalJSON() ([]byte, error)
func (*Scheduling) SetShutdownHours ¶ added in v1.40.0
func (o *Scheduling) SetShutdownHours(v *ShutdownHours) *Scheduling
func (*Scheduling) SetTasks ¶ added in v1.40.0
func (o *Scheduling) SetTasks(v []*Task) *Scheduling
type Service ¶
type Service interface { ListClusters(context.Context, *ListClustersInput) (*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) ListLaunchSpecs(context.Context, *ListLaunchSpecsInput) (*ListLaunchSpecsOutput, error) CreateLaunchSpec(context.Context, *CreateLaunchSpecInput) (*CreateLaunchSpecOutput, error) ReadLaunchSpec(context.Context, *ReadLaunchSpecInput) (*ReadLaunchSpecOutput, error) UpdateLaunchSpec(context.Context, *UpdateLaunchSpecInput) (*UpdateLaunchSpecOutput, error) DeleteLaunchSpec(context.Context, *DeleteLaunchSpecInput) (*DeleteLaunchSpecOutput, error) ListClusterInstances(context.Context, *ListClusterInstancesInput) (*ListClusterInstancesOutput, error) DetachClusterInstances(context.Context, *DetachClusterInstancesInput) (*DetachClusterInstancesOutput, error) Roll(context.Context, *RollClusterInput) (*RollClusterOutput, error) ListECSClusters(context.Context, *ListECSClustersInput) (*ListECSClustersOutput, error) CreateECSCluster(context.Context, *CreateECSClusterInput) (*CreateECSClusterOutput, error) ReadECSCluster(context.Context, *ReadECSClusterInput) (*ReadECSClusterOutput, error) UpdateECSCluster(context.Context, *UpdateECSClusterInput) (*UpdateECSClusterOutput, error) DeleteECSCluster(context.Context, *DeleteECSClusterInput) (*DeleteECSClusterOutput, error) ListECSLaunchSpecs(context.Context, *ListECSLaunchSpecsInput) (*ListECSLaunchSpecsOutput, error) CreateECSLaunchSpec(context.Context, *CreateECSLaunchSpecInput) (*CreateECSLaunchSpecOutput, error) ReadECSLaunchSpec(context.Context, *ReadECSLaunchSpecInput) (*ReadECSLaunchSpecOutput, error) UpdateECSLaunchSpec(context.Context, *UpdateECSLaunchSpecInput) (*UpdateECSLaunchSpecOutput, error) DeleteECSLaunchSpec(context.Context, *DeleteECSLaunchSpecInput) (*DeleteECSLaunchSpecOutput, error) RollECS(context.Context, *ECSRollClusterInput) (*ECSRollClusterOutput, 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) CreateECSCluster ¶
func (s *ServiceOp) CreateECSCluster(ctx context.Context, input *CreateECSClusterInput) (*CreateECSClusterOutput, error)
func (*ServiceOp) CreateECSLaunchSpec ¶
func (s *ServiceOp) CreateECSLaunchSpec(ctx context.Context, input *CreateECSLaunchSpecInput) (*CreateECSLaunchSpecOutput, error)
func (*ServiceOp) CreateLaunchSpec ¶
func (s *ServiceOp) CreateLaunchSpec(ctx context.Context, input *CreateLaunchSpecInput) (*CreateLaunchSpecOutput, error)
func (*ServiceOp) DeleteCluster ¶
func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
func (*ServiceOp) DeleteECSCluster ¶
func (s *ServiceOp) DeleteECSCluster(ctx context.Context, input *DeleteECSClusterInput) (*DeleteECSClusterOutput, error)
func (*ServiceOp) DeleteECSLaunchSpec ¶
func (s *ServiceOp) DeleteECSLaunchSpec(ctx context.Context, input *DeleteECSLaunchSpecInput) (*DeleteECSLaunchSpecOutput, error)
func (*ServiceOp) DeleteLaunchSpec ¶
func (s *ServiceOp) DeleteLaunchSpec(ctx context.Context, input *DeleteLaunchSpecInput) (*DeleteLaunchSpecOutput, error)
func (*ServiceOp) DetachClusterInstances ¶
func (s *ServiceOp) DetachClusterInstances(ctx context.Context, input *DetachClusterInstancesInput) (*DetachClusterInstancesOutput, error)
func (*ServiceOp) ListClusterInstances ¶
func (s *ServiceOp) ListClusterInstances(ctx context.Context, input *ListClusterInstancesInput) (*ListClusterInstancesOutput, error)
func (*ServiceOp) ListClusters ¶
func (s *ServiceOp) ListClusters(ctx context.Context, input *ListClustersInput) (*ListClustersOutput, error)
func (*ServiceOp) ListECSClusters ¶
func (s *ServiceOp) ListECSClusters(ctx context.Context, input *ListECSClustersInput) (*ListECSClustersOutput, error)
func (*ServiceOp) ListECSLaunchSpecs ¶
func (s *ServiceOp) ListECSLaunchSpecs(ctx context.Context, input *ListECSLaunchSpecsInput) (*ListECSLaunchSpecsOutput, error)
func (*ServiceOp) ListLaunchSpecs ¶
func (s *ServiceOp) ListLaunchSpecs(ctx context.Context, input *ListLaunchSpecsInput) (*ListLaunchSpecsOutput, error)
func (*ServiceOp) ReadCluster ¶
func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)
func (*ServiceOp) ReadECSCluster ¶
func (s *ServiceOp) ReadECSCluster(ctx context.Context, input *ReadECSClusterInput) (*ReadECSClusterOutput, error)
func (*ServiceOp) ReadECSLaunchSpec ¶
func (s *ServiceOp) ReadECSLaunchSpec(ctx context.Context, input *ReadECSLaunchSpecInput) (*ReadECSLaunchSpecOutput, error)
func (*ServiceOp) ReadLaunchSpec ¶
func (s *ServiceOp) ReadLaunchSpec(ctx context.Context, input *ReadLaunchSpecInput) (*ReadLaunchSpecOutput, error)
func (*ServiceOp) Roll ¶
func (s *ServiceOp) Roll(ctx context.Context, input *RollClusterInput) (*RollClusterOutput, error)
func (*ServiceOp) RollECS ¶
func (s *ServiceOp) RollECS(ctx context.Context, input *ECSRollClusterInput) (*ECSRollClusterOutput, error)
func (*ServiceOp) UpdateCluster ¶
func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
func (*ServiceOp) UpdateECSCluster ¶
func (s *ServiceOp) UpdateECSCluster(ctx context.Context, input *UpdateECSClusterInput) (*UpdateECSClusterOutput, error)
func (*ServiceOp) UpdateECSLaunchSpec ¶
func (s *ServiceOp) UpdateECSLaunchSpec(ctx context.Context, input *UpdateECSLaunchSpecInput) (*UpdateECSLaunchSpecOutput, error)
func (*ServiceOp) UpdateLaunchSpec ¶
func (s *ServiceOp) UpdateLaunchSpec(ctx context.Context, input *UpdateLaunchSpecInput) (*UpdateLaunchSpecOutput, error)
type ShutdownHours ¶ added in v1.40.0
type ShutdownHours struct { IsEnabled *bool `json:"isEnabled,omitempty"` TimeWindows []string `json:"timeWindows,omitempty"` // contains filtered or unexported fields }
func (ShutdownHours) MarshalJSON ¶ added in v1.40.0
func (o ShutdownHours) MarshalJSON() ([]byte, error)
func (*ShutdownHours) SetIsEnabled ¶ added in v1.40.0
func (o *ShutdownHours) SetIsEnabled(v *bool) *ShutdownHours
func (*ShutdownHours) SetTimeWindows ¶ added in v1.40.0
func (o *ShutdownHours) SetTimeWindows(v []string) *ShutdownHours
type Strategy ¶
type Strategy struct { SpotPercentage *float64 `json:"spotPercentage,omitempty"` UtilizeReservedInstances *bool `json:"utilizeReservedInstances,omitempty"` FallbackToOnDemand *bool `json:"fallbackToOd,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetFallbackToOnDemand ¶
func (*Strategy) SetSpotPercentage ¶
func (*Strategy) SetUtilizeReservedInstances ¶
type Tag ¶
type Tag struct { Key *string `json:"tagKey,omitempty"` Value *string `json:"tagValue,omitempty"` // contains filtered or unexported fields }
func (Tag) MarshalJSON ¶
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 Task ¶ added in v1.40.0
type Task struct { IsEnabled *bool `json:"isEnabled,omitempty"` Type *string `json:"taskType,omitempty"` CronExpression *string `json:"cronExpression,omitempty"` // contains filtered or unexported fields }
func (Task) MarshalJSON ¶ added in v1.40.0
func (*Task) SetCronExpression ¶ added in v1.40.0
func (*Task) SetIsEnabled ¶ added in v1.40.0
type UpdateClusterInput ¶
type UpdateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateClusterOutput ¶
type UpdateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateECSClusterInput ¶
type UpdateECSClusterInput struct {
Cluster *ECSCluster `json:"cluster,omitempty"`
}
type UpdateECSClusterOutput ¶
type UpdateECSClusterOutput struct {
Cluster *ECSCluster `json:"cluster,omitempty"`
}
type UpdateECSLaunchSpecInput ¶
type UpdateECSLaunchSpecInput struct {
LaunchSpec *ECSLaunchSpec `json:"launchSpec,omitempty"`
}
type UpdateECSLaunchSpecOutput ¶
type UpdateECSLaunchSpecOutput struct {
LaunchSpec *ECSLaunchSpec `json:"launchSpec,omitempty"`
}
type UpdateLaunchSpecInput ¶
type UpdateLaunchSpecInput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type UpdateLaunchSpecOutput ¶
type UpdateLaunchSpecOutput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.