Documentation ¶
Index ¶
- type AccessConfig
- type AliasIPRange
- 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) SetAutoHeadroomPercentage(v *int) *AutoScaler
- func (o *AutoScaler) SetCooldown(v *int) *AutoScaler
- func (o *AutoScaler) SetDown(v *AutoScalerDown) *AutoScaler
- func (o *AutoScaler) SetEnableAutomaticAndManualHeadroom(v *bool) *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 BackendService
- func (o BackendService) MarshalJSON() ([]byte, error)
- func (o *BackendService) SetBackendServiceName(v *string) *BackendService
- func (o *BackendService) SetLocationType(v *string) *BackendService
- func (o *BackendService) SetNamedPorts(v *NamedPorts) *BackendService
- func (o *BackendService) SetScheme(v *string) *BackendService
- 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) SetGKE(v *GKE) *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) SetStrategy(v *Strategy) *Cluster
- type ClusterRoll
- func (o ClusterRoll) MarshalJSON() ([]byte, error)
- func (o *ClusterRoll) SetBatchMinHealthyPercentage(v *int) *ClusterRoll
- func (o *ClusterRoll) SetBatchSizePercentage(v *int) *ClusterRoll
- func (o *ClusterRoll) SetComment(v *string) *ClusterRoll
- func (o *ClusterRoll) SetRespectPdb(v *bool) *ClusterRoll
- type Compute
- func (o Compute) MarshalJSON() ([]byte, error)
- func (o *Compute) SetAvailabilityZones(v []string) *Compute
- func (c *Compute) SetBackendServices(v []*BackendService) *Compute
- func (o *Compute) SetInstanceTypes(v *InstanceTypes) *Compute
- func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
- func (o *Compute) SetNetworkInterfaces(v []*NetworkInterface) *Compute
- func (o *Compute) SetSubnetName(v *string) *Compute
- type CreateClusterInput
- type CreateClusterOutput
- type CreateLaunchSpecInput
- type CreateLaunchSpecOutput
- type CreateRollInput
- type CreateRollOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DeleteLaunchSpecInput
- type DeleteLaunchSpecOutput
- type GKE
- type GKELaunchSpecScheduling
- type GKELaunchSpecTask
- func (o GKELaunchSpecTask) MarshalJSON() ([]byte, error)
- func (o *GKELaunchSpecTask) SetCronExpression(v *string) *GKELaunchSpecTask
- func (o *GKELaunchSpecTask) SetIsEnabled(v *bool) *GKELaunchSpecTask
- func (o *GKELaunchSpecTask) SetTaskConfig(v *GKETaskConfig) *GKELaunchSpecTask
- func (o *GKELaunchSpecTask) SetTaskType(v *string) *GKELaunchSpecTask
- type GKELaunchSpecTaskHeadroom
- func (o GKELaunchSpecTaskHeadroom) MarshalJSON() ([]byte, error)
- func (o *GKELaunchSpecTaskHeadroom) SetCPUPerUnit(v *int) *GKELaunchSpecTaskHeadroom
- func (o *GKELaunchSpecTaskHeadroom) SetGPUPerUnit(v *int) *GKELaunchSpecTaskHeadroom
- func (o *GKELaunchSpecTaskHeadroom) SetMemoryPerUnit(v *int) *GKELaunchSpecTaskHeadroom
- func (o *GKELaunchSpecTaskHeadroom) SetNumOfUnits(v *int) *GKELaunchSpecTaskHeadroom
- type GKETaskConfig
- type ImportOceanGKECluster
- type ImportOceanGKEClusterInput
- type ImportOceanGKEClusterOutput
- type ImportOceanGKELaunchSpecInput
- type ImportOceanGKELaunchSpecOutput
- type InstanceTypes
- type Label
- type LaunchSpec
- func (o LaunchSpec) MarshalJSON() ([]byte, error)
- func (o *LaunchSpec) SetAutoScale(v *AutoScale) *LaunchSpec
- func (o *LaunchSpec) SetId(v *string) *LaunchSpec
- func (o *LaunchSpec) SetInstanceTypes(v []string) *LaunchSpec
- func (o *LaunchSpec) SetLabels(v []*Label) *LaunchSpec
- func (o *LaunchSpec) SetLaunchSpecNetworkInterfaces(v []*LaunchSpecNetworkInterfaces) *LaunchSpec
- func (o *LaunchSpec) SetLaunchSpecTags(v []string) *LaunchSpec
- func (o *LaunchSpec) SetMetadata(v []*Metadata) *LaunchSpec
- func (o *LaunchSpec) SetName(v *string) *LaunchSpec
- func (o *LaunchSpec) SetOceanId(v *string) *LaunchSpec
- func (o *LaunchSpec) SetResourceLimits(v *ResourceLimits) *LaunchSpec
- func (o *LaunchSpec) SetRestrictScaleDown(v *bool) *LaunchSpec
- func (o *LaunchSpec) SetRootVolumeSizeInGB(v *int) *LaunchSpec
- func (o *LaunchSpec) SetRootVolumeType(v *string) *LaunchSpec
- func (o *LaunchSpec) SetScheduling(v *GKELaunchSpecScheduling) *LaunchSpec
- func (o *LaunchSpec) SetServiceAccount(v *string) *LaunchSpec
- func (o *LaunchSpec) SetShieldedInstanceConfig(v *ShieldedInstanceConfig) *LaunchSpec
- func (o *LaunchSpec) SetSourceImage(v *string) *LaunchSpec
- func (o *LaunchSpec) SetStorage(v *Storage) *LaunchSpec
- func (o *LaunchSpec) SetStrategy(v *LaunchSpecStrategy) *LaunchSpec
- func (o *LaunchSpec) SetTaints(v []*Taint) *LaunchSpec
- type LaunchSpecAccessConfigs
- type LaunchSpecAliasIPRanges
- type LaunchSpecNetworkInterfaces
- func (o LaunchSpecNetworkInterfaces) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecNetworkInterfaces) SetLaunchSpecAccessConfigs(v []*LaunchSpecAccessConfigs) *LaunchSpecNetworkInterfaces
- func (o *LaunchSpecNetworkInterfaces) SetLaunchSpecAliasIPRanges(v []*LaunchSpecAliasIPRanges) *LaunchSpecNetworkInterfaces
- func (o *LaunchSpecNetworkInterfaces) SetNetwork(v *string) *LaunchSpecNetworkInterfaces
- func (o *LaunchSpecNetworkInterfaces) SetProjectId(v *string) *LaunchSpecNetworkInterfaces
- type LaunchSpecShieldedInstanceConfig
- type LaunchSpecStrategy
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetIPForwarding(v *bool) *LaunchSpecification
- func (o *LaunchSpecification) SetLabels(v []*Label) *LaunchSpecification
- func (o *LaunchSpecification) SetMetadata(v []*Metadata) *LaunchSpecification
- func (o *LaunchSpecification) SetRootVolumeSizeInGB(v *int) *LaunchSpecification
- func (o *LaunchSpecification) SetRootVolumeType(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetServiceAccount(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetShieldedInstanceConfig(v *LaunchSpecShieldedInstanceConfig) *LaunchSpecification
- func (o *LaunchSpecification) SetSourceImage(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []string) *LaunchSpecification
- func (o *LaunchSpecification) SetUseAsTemplateOnly(v *bool) *LaunchSpecification
- type ListClustersInput
- type ListClustersOutput
- type ListLaunchSpecsInput
- type ListLaunchSpecsOutput
- type Metadata
- type NamedPorts
- type NetworkInterface
- func (o NetworkInterface) MarshalJSON() ([]byte, error)
- func (o *NetworkInterface) SetAccessConfigs(v []*AccessConfig) *NetworkInterface
- func (o *NetworkInterface) SetAliasIPRanges(v []*AliasIPRange) *NetworkInterface
- func (o *NetworkInterface) SetNetwork(v *string) *NetworkInterface
- func (o *NetworkInterface) SetProjectId(v *string) *NetworkInterface
- type Parameters
- type Progress
- type ReadClusterInput
- type ReadClusterOutput
- type ReadLaunchSpecInput
- type ReadLaunchSpecOutput
- type ResourceLimits
- type RollSpec
- func (o RollSpec) MarshalJSON() ([]byte, error)
- func (o *RollSpec) SetBatchMinHealthyPercentage(v *int) *RollSpec
- func (o *RollSpec) SetBatchSizePercentage(v *int) *RollSpec
- func (o *RollSpec) SetComment(v *string) *RollSpec
- func (o *RollSpec) SetInstanceNames(v []string) *RollSpec
- func (o *RollSpec) SetLaunchSpecIDs(v []string) *RollSpec
- func (o *RollSpec) SetRespectPDB(v *bool) *RollSpec
- type RollStatus
- type Scheduling
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, error)
- func (s *ServiceOp) CreateLaunchSpec(ctx context.Context, input *CreateLaunchSpecInput) (*CreateLaunchSpecOutput, error)
- func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)
- func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
- func (s *ServiceOp) DeleteLaunchSpec(ctx context.Context, input *DeleteLaunchSpecInput) (*DeleteLaunchSpecOutput, error)
- func (s *ServiceOp) ImportOceanGKECluster(ctx context.Context, input *ImportOceanGKEClusterInput) (*ImportOceanGKEClusterOutput, error)
- func (s *ServiceOp) ImportOceanGKELaunchSpec(ctx context.Context, input *ImportOceanGKELaunchSpecInput) (*ImportOceanGKELaunchSpecOutput, error)
- func (s *ServiceOp) ListClusters(ctx context.Context, input *ListClustersInput) (*ListClustersOutput, 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) ReadLaunchSpec(ctx context.Context, input *ReadLaunchSpecInput) (*ReadLaunchSpecOutput, error)
- func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
- func (s *ServiceOp) UpdateLaunchSpec(ctx context.Context, input *UpdateLaunchSpecInput) (*UpdateLaunchSpecOutput, error)
- type ShieldedInstanceConfig
- type ShutdownHours
- type Storage
- type Strategy
- type Tag
- type Taint
- type Task
- type UpdateClusterInput
- type UpdateClusterOutput
- type UpdateLaunchSpecInput
- type UpdateLaunchSpecOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessConfig ¶
type AccessConfig struct { Name *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` // contains filtered or unexported fields }
func (AccessConfig) MarshalJSON ¶
func (o AccessConfig) MarshalJSON() ([]byte, error)
func (*AccessConfig) SetName ¶
func (o *AccessConfig) SetName(v *string) *AccessConfig
func (*AccessConfig) SetType ¶
func (o *AccessConfig) SetType(v *string) *AccessConfig
type AliasIPRange ¶
type AliasIPRange struct { IPCIDRRange *string `json:"ipCidrRange,omitempty"` SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty"` // contains filtered or unexported fields }
func (AliasIPRange) MarshalJSON ¶
func (o AliasIPRange) MarshalJSON() ([]byte, error)
func (*AliasIPRange) SetIPCIDRRange ¶
func (o *AliasIPRange) SetIPCIDRRange(v *string) *AliasIPRange
func (*AliasIPRange) SetSubnetworkRangeName ¶
func (o *AliasIPRange) SetSubnetworkRangeName(v *string) *AliasIPRange
type AutoScale ¶
type AutoScale struct { Headrooms []*AutoScaleHeadroom `json:"headrooms,omitempty"` AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,omitempty"` // contains filtered or unexported fields }
func (AutoScale) MarshalJSON ¶
func (*AutoScale) SetAutoHeadroomPercentage ¶ added in v1.112.0
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"` AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,omitempty"` Headroom *AutoScalerHeadroom `json:"headroom,omitempty"` ResourceLimits *AutoScalerResourceLimits `json:"resourceLimits,omitempty"` Down *AutoScalerDown `json:"down,omitempty"` EnableAutomaticAndManualHeadroom *bool `json:"enableAutomaticAndManualHeadroom,omitempty"` // contains filtered or unexported fields }
func (AutoScaler) MarshalJSON ¶
func (o AutoScaler) MarshalJSON() ([]byte, error)
func (*AutoScaler) SetAutoHeadroomPercentage ¶ added in v1.42.0
func (o *AutoScaler) SetAutoHeadroomPercentage(v *int) *AutoScaler
func (*AutoScaler) SetCooldown ¶
func (o *AutoScaler) SetCooldown(v *int) *AutoScaler
func (*AutoScaler) SetDown ¶
func (o *AutoScaler) SetDown(v *AutoScalerDown) *AutoScaler
func (*AutoScaler) SetEnableAutomaticAndManualHeadroom ¶ added in v1.108.0
func (o *AutoScaler) SetEnableAutomaticAndManualHeadroom(v *bool) *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 *float64 `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.44.1
func (o *AutoScalerDown) SetMaxScaleDownPercentage(v *float64) *AutoScalerDown
type AutoScalerHeadroom ¶
type AutoScalerHeadroom struct { CPUPerUnit *int `json:"cpuPerUnit,omitempty"` MemoryPerUnit *int `json:"memoryPerUnit,omitempty"` NumOfUnits *int `json:"numOfUnits,omitempty"` GPUPerUnit *int `json:"gpuPerUnit,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
SetGPUPerUnit sets the gpu per unit
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 BackendService ¶
type BackendService struct { BackendServiceName *string `json:"backendServiceName,omitempty"` LocationType *string `json:"locationType,omitempty"` Scheme *string `json:"scheme,omitempty"` NamedPorts *NamedPorts `json:"namedPorts,omitempty"` // contains filtered or unexported fields }
func (BackendService) MarshalJSON ¶
func (o BackendService) MarshalJSON() ([]byte, error)
func (*BackendService) SetBackendServiceName ¶
func (o *BackendService) SetBackendServiceName(v *string) *BackendService
func (*BackendService) SetLocationType ¶
func (o *BackendService) SetLocationType(v *string) *BackendService
func (*BackendService) SetNamedPorts ¶
func (o *BackendService) SetNamedPorts(v *NamedPorts) *BackendService
func (*BackendService) SetScheme ¶
func (o *BackendService) SetScheme(v *string) *BackendService
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"` Scheduling *Scheduling `json:"scheduling,omitempty"` AutoScaler *AutoScaler `json:"autoScaler,omitempty"` Capacity *Capacity `json:"capacity,omitempty"` Compute *Compute `json:"compute,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` GKE *GKE `json:"gke,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.41.0
func (o *Cluster) SetScheduling(v *Scheduling) *Cluster
func (*Cluster) SetStrategy ¶
type ClusterRoll ¶ added in v1.154.0
type ClusterRoll struct { BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` Comment *string `json:"comment,omitempty"` RespectPdb *bool `json:"respectPdb,omitempty"` // contains filtered or unexported fields }
func (ClusterRoll) MarshalJSON ¶ added in v1.154.0
func (o ClusterRoll) MarshalJSON() ([]byte, error)
func (*ClusterRoll) SetBatchMinHealthyPercentage ¶ added in v1.154.0
func (o *ClusterRoll) SetBatchMinHealthyPercentage(v *int) *ClusterRoll
func (*ClusterRoll) SetBatchSizePercentage ¶ added in v1.154.0
func (o *ClusterRoll) SetBatchSizePercentage(v *int) *ClusterRoll
func (*ClusterRoll) SetComment ¶ added in v1.154.0
func (o *ClusterRoll) SetComment(v *string) *ClusterRoll
func (*ClusterRoll) SetRespectPdb ¶ added in v1.154.0
func (o *ClusterRoll) SetRespectPdb(v *bool) *ClusterRoll
type Compute ¶
type Compute struct { AvailabilityZones []string `json:"availabilityZones,omitempty"` InstanceTypes *InstanceTypes `json:"instanceTypes,omitempty"` LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"` BackendServices []*BackendService `json:"backendServices,omitempty"` NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` SubnetName *string `json:"subnetName,omitempty"` // contains filtered or unexported fields }
func (Compute) MarshalJSON ¶
func (*Compute) SetAvailabilityZones ¶
func (*Compute) SetBackendServices ¶
func (c *Compute) SetBackendServices(v []*BackendService) *Compute
func (*Compute) SetInstanceTypes ¶
func (o *Compute) SetInstanceTypes(v *InstanceTypes) *Compute
func (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetNetworkInterfaces ¶
func (o *Compute) SetNetworkInterfaces(v []*NetworkInterface) *Compute
func (*Compute) SetSubnetName ¶
type CreateClusterInput ¶
type CreateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateClusterOutput ¶
type CreateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateLaunchSpecInput ¶
type CreateLaunchSpecInput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type CreateLaunchSpecOutput ¶
type CreateLaunchSpecOutput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type CreateRollInput ¶ added in v1.100.0
type CreateRollInput struct {
Roll *RollSpec `json:"roll,omitempty"`
}
type CreateRollOutput ¶ added in v1.100.0
type CreateRollOutput struct {
Roll *RollStatus `json:"roll,omitempty"`
}
type DeleteClusterInput ¶
type DeleteClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type DeleteClusterOutput ¶
type DeleteClusterOutput struct{}
type DeleteLaunchSpecInput ¶
type DeleteLaunchSpecInput struct {
LaunchSpecID *string `json:"launchSpecId,omitempty"`
}
type DeleteLaunchSpecOutput ¶
type DeleteLaunchSpecOutput struct{}
type GKE ¶
type GKE struct { ClusterName *string `json:"clusterName,omitempty"` MasterLocation *string `json:"masterLocation,omitempty"` // contains filtered or unexported fields }
func (GKE) MarshalJSON ¶
func (*GKE) SetClusterName ¶
func (*GKE) SetMasterLocation ¶
type GKELaunchSpecScheduling ¶ added in v1.105.0
type GKELaunchSpecScheduling struct { Tasks []*GKELaunchSpecTask `json:"tasks,omitempty"` // contains filtered or unexported fields }
func (GKELaunchSpecScheduling) MarshalJSON ¶ added in v1.105.0
func (o GKELaunchSpecScheduling) MarshalJSON() ([]byte, error)
func (*GKELaunchSpecScheduling) SetTasks ¶ added in v1.105.0
func (o *GKELaunchSpecScheduling) SetTasks(v []*GKELaunchSpecTask) *GKELaunchSpecScheduling
type GKELaunchSpecTask ¶ added in v1.105.0
type GKELaunchSpecTask struct { IsEnabled *bool `json:"isEnabled,omitempty"` CronExpression *string `json:"cronExpression,omitempty"` TaskType *string `json:"taskType,omitempty"` Config *GKETaskConfig `json:"config,omitempty"` // contains filtered or unexported fields }
func (GKELaunchSpecTask) MarshalJSON ¶ added in v1.105.0
func (o GKELaunchSpecTask) MarshalJSON() ([]byte, error)
func (*GKELaunchSpecTask) SetCronExpression ¶ added in v1.105.0
func (o *GKELaunchSpecTask) SetCronExpression(v *string) *GKELaunchSpecTask
func (*GKELaunchSpecTask) SetIsEnabled ¶ added in v1.105.0
func (o *GKELaunchSpecTask) SetIsEnabled(v *bool) *GKELaunchSpecTask
func (*GKELaunchSpecTask) SetTaskConfig ¶ added in v1.105.0
func (o *GKELaunchSpecTask) SetTaskConfig(v *GKETaskConfig) *GKELaunchSpecTask
func (*GKELaunchSpecTask) SetTaskType ¶ added in v1.105.0
func (o *GKELaunchSpecTask) SetTaskType(v *string) *GKELaunchSpecTask
type GKELaunchSpecTaskHeadroom ¶ added in v1.105.0
type GKELaunchSpecTaskHeadroom 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 (GKELaunchSpecTaskHeadroom) MarshalJSON ¶ added in v1.105.0
func (o GKELaunchSpecTaskHeadroom) MarshalJSON() ([]byte, error)
func (*GKELaunchSpecTaskHeadroom) SetCPUPerUnit ¶ added in v1.105.0
func (o *GKELaunchSpecTaskHeadroom) SetCPUPerUnit(v *int) *GKELaunchSpecTaskHeadroom
func (*GKELaunchSpecTaskHeadroom) SetGPUPerUnit ¶ added in v1.105.0
func (o *GKELaunchSpecTaskHeadroom) SetGPUPerUnit(v *int) *GKELaunchSpecTaskHeadroom
func (*GKELaunchSpecTaskHeadroom) SetMemoryPerUnit ¶ added in v1.105.0
func (o *GKELaunchSpecTaskHeadroom) SetMemoryPerUnit(v *int) *GKELaunchSpecTaskHeadroom
func (*GKELaunchSpecTaskHeadroom) SetNumOfUnits ¶ added in v1.105.0
func (o *GKELaunchSpecTaskHeadroom) SetNumOfUnits(v *int) *GKELaunchSpecTaskHeadroom
type GKETaskConfig ¶ added in v1.105.0
type GKETaskConfig struct { TaskHeadrooms []*GKELaunchSpecTaskHeadroom `json:"headrooms,omitempty"` // contains filtered or unexported fields }
func (GKETaskConfig) MarshalJSON ¶ added in v1.105.0
func (o GKETaskConfig) MarshalJSON() ([]byte, error)
func (*GKETaskConfig) SetHeadrooms ¶ added in v1.105.0
func (o *GKETaskConfig) SetHeadrooms(v []*GKELaunchSpecTaskHeadroom) *GKETaskConfig
type ImportOceanGKECluster ¶
type ImportOceanGKECluster struct { InstanceTypes *InstanceTypes `json:"instanceTypes,omitempty"` BackendServices []*BackendService `json:"backendServices,omitempty"` // contains filtered or unexported fields }
type ImportOceanGKEClusterInput ¶
type ImportOceanGKEClusterInput struct { ClusterName *string `json:"clusterName,omitempty"` Location *string `json:"location,omitempty"` NodePoolName *string `json:"nodePoolName,omitempty"` IncludeLaunchSpecs *string `json:"includeLaunchSpecs,omitempty"` Cluster *ImportOceanGKECluster `json:"cluster,omitempty"` }
type ImportOceanGKEClusterOutput ¶
type ImportOceanGKEClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type ImportOceanGKELaunchSpecOutput ¶
type ImportOceanGKELaunchSpecOutput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
TODO: Might use LaunchSpec directly
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 ¶ added in v1.124.0
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"` SourceImage *string `json:"sourceImage,omitempty"` Metadata []*Metadata `json:"metadata,omitempty"` Labels []*Label `json:"labels,omitempty"` Taints []*Taint `json:"taints,omitempty"` AutoScale *AutoScale `json:"autoScale,omitempty"` RestrictScaleDown *bool `json:"restrictScaleDown,omitempty"` Strategy *LaunchSpecStrategy `json:"strategy,omitempty"` RootVolumeSizeInGB *int `json:"rootVolumeSizeInGb,omitempty"` RootVolumeType *string `json:"rootVolumeType,omitempty"` ShieldedInstanceConfig *ShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` ServiceAccount *string `json:"serviceAccount,omitempty"` InstanceTypes []string `json:"instanceTypes,omitempty"` Storage *Storage `json:"storage,omitempty"` ResourceLimits *ResourceLimits `json:"resourceLimits,omitempty"` LaunchSpecScheduling *GKELaunchSpecScheduling `json:"scheduling,omitempty"` LaunchSpecTags []string `json:"tags,omitempty"` LaunchSpecNetworkInterfaces []*LaunchSpecNetworkInterfaces `json:"networkInterfaces,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) SetId ¶
func (o *LaunchSpec) SetId(v *string) *LaunchSpec
func (*LaunchSpec) SetInstanceTypes ¶ added in v1.94.0
func (o *LaunchSpec) SetInstanceTypes(v []string) *LaunchSpec
func (*LaunchSpec) SetLabels ¶
func (o *LaunchSpec) SetLabels(v []*Label) *LaunchSpec
func (*LaunchSpec) SetLaunchSpecNetworkInterfaces ¶ added in v1.159.0
func (o *LaunchSpec) SetLaunchSpecNetworkInterfaces(v []*LaunchSpecNetworkInterfaces) *LaunchSpec
func (*LaunchSpec) SetLaunchSpecTags ¶ added in v1.121.0
func (o *LaunchSpec) SetLaunchSpecTags(v []string) *LaunchSpec
func (*LaunchSpec) SetMetadata ¶
func (o *LaunchSpec) SetMetadata(v []*Metadata) *LaunchSpec
func (*LaunchSpec) SetName ¶ added in v1.91.0
func (o *LaunchSpec) SetName(v *string) *LaunchSpec
func (*LaunchSpec) SetOceanId ¶
func (o *LaunchSpec) SetOceanId(v *string) *LaunchSpec
func (*LaunchSpec) SetResourceLimits ¶ added in v1.97.0
func (o *LaunchSpec) SetResourceLimits(v *ResourceLimits) *LaunchSpec
func (*LaunchSpec) SetRestrictScaleDown ¶ added in v1.77.0
func (o *LaunchSpec) SetRestrictScaleDown(v *bool) *LaunchSpec
func (*LaunchSpec) SetRootVolumeSizeInGB ¶ added in v1.91.0
func (o *LaunchSpec) SetRootVolumeSizeInGB(v *int) *LaunchSpec
func (*LaunchSpec) SetRootVolumeType ¶ added in v1.91.0
func (o *LaunchSpec) SetRootVolumeType(v *string) *LaunchSpec
func (*LaunchSpec) SetScheduling ¶ added in v1.105.0
func (o *LaunchSpec) SetScheduling(v *GKELaunchSpecScheduling) *LaunchSpec
func (*LaunchSpec) SetServiceAccount ¶ added in v1.91.0
func (o *LaunchSpec) SetServiceAccount(v *string) *LaunchSpec
func (*LaunchSpec) SetShieldedInstanceConfig ¶ added in v1.91.0
func (o *LaunchSpec) SetShieldedInstanceConfig(v *ShieldedInstanceConfig) *LaunchSpec
func (*LaunchSpec) SetSourceImage ¶
func (o *LaunchSpec) SetSourceImage(v *string) *LaunchSpec
func (*LaunchSpec) SetStorage ¶ added in v1.97.0
func (o *LaunchSpec) SetStorage(v *Storage) *LaunchSpec
func (*LaunchSpec) SetStrategy ¶ added in v1.88.0
func (o *LaunchSpec) SetStrategy(v *LaunchSpecStrategy) *LaunchSpec
func (*LaunchSpec) SetTaints ¶
func (o *LaunchSpec) SetTaints(v []*Taint) *LaunchSpec
type LaunchSpecAccessConfigs ¶ added in v1.159.0
type LaunchSpecAccessConfigs struct { LaunchSpecAccessConfigsName *string `json:"name,omitempty"` Type *string `json:"type,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecAccessConfigs) MarshalJSON ¶ added in v1.159.0
func (o LaunchSpecAccessConfigs) MarshalJSON() ([]byte, error)
func (*LaunchSpecAccessConfigs) SetLaunchSpecAccessConfigsName ¶ added in v1.159.0
func (o *LaunchSpecAccessConfigs) SetLaunchSpecAccessConfigsName(v *string) *LaunchSpecAccessConfigs
func (*LaunchSpecAccessConfigs) SetType ¶ added in v1.159.0
func (o *LaunchSpecAccessConfigs) SetType(v *string) *LaunchSpecAccessConfigs
type LaunchSpecAliasIPRanges ¶ added in v1.159.0
type LaunchSpecAliasIPRanges struct { IPCidrRange *string `json:"ipCidrRange,omitempty"` SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecAliasIPRanges) MarshalJSON ¶ added in v1.159.0
func (o LaunchSpecAliasIPRanges) MarshalJSON() ([]byte, error)
func (*LaunchSpecAliasIPRanges) SetIPCidrRange ¶ added in v1.159.0
func (o *LaunchSpecAliasIPRanges) SetIPCidrRange(v *string) *LaunchSpecAliasIPRanges
func (*LaunchSpecAliasIPRanges) SetSubnetworkRangeName ¶ added in v1.159.0
func (o *LaunchSpecAliasIPRanges) SetSubnetworkRangeName(v *string) *LaunchSpecAliasIPRanges
type LaunchSpecNetworkInterfaces ¶ added in v1.159.0
type LaunchSpecNetworkInterfaces struct { LaunchSpecAccessConfigs []*LaunchSpecAccessConfigs `json:"accessConfigs,omitempty"` LaunchSpecAliasIPRanges []*LaunchSpecAliasIPRanges `json:"aliasIpRanges,omitempty"` Network *string `json:"network,omitempty"` ProjectID *string `json:"projectId,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecNetworkInterfaces) MarshalJSON ¶ added in v1.159.0
func (o LaunchSpecNetworkInterfaces) MarshalJSON() ([]byte, error)
func (*LaunchSpecNetworkInterfaces) SetLaunchSpecAccessConfigs ¶ added in v1.159.0
func (o *LaunchSpecNetworkInterfaces) SetLaunchSpecAccessConfigs(v []*LaunchSpecAccessConfigs) *LaunchSpecNetworkInterfaces
func (*LaunchSpecNetworkInterfaces) SetLaunchSpecAliasIPRanges ¶ added in v1.159.0
func (o *LaunchSpecNetworkInterfaces) SetLaunchSpecAliasIPRanges(v []*LaunchSpecAliasIPRanges) *LaunchSpecNetworkInterfaces
func (*LaunchSpecNetworkInterfaces) SetNetwork ¶ added in v1.159.0
func (o *LaunchSpecNetworkInterfaces) SetNetwork(v *string) *LaunchSpecNetworkInterfaces
func (*LaunchSpecNetworkInterfaces) SetProjectId ¶ added in v1.159.0
func (o *LaunchSpecNetworkInterfaces) SetProjectId(v *string) *LaunchSpecNetworkInterfaces
type LaunchSpecShieldedInstanceConfig ¶ added in v1.113.0
type LaunchSpecShieldedInstanceConfig struct { EnableSecureBoot *bool `json:"enableSecureBoot,omitempty"` EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecShieldedInstanceConfig) MarshalJSON ¶ added in v1.113.0
func (o LaunchSpecShieldedInstanceConfig) MarshalJSON() ([]byte, error)
func (*LaunchSpecShieldedInstanceConfig) SetEnableIntegrityMonitoring ¶ added in v1.113.0
func (o *LaunchSpecShieldedInstanceConfig) SetEnableIntegrityMonitoring(v *bool) *LaunchSpecShieldedInstanceConfig
func (*LaunchSpecShieldedInstanceConfig) SetEnableSecureBoot ¶ added in v1.113.0
func (o *LaunchSpecShieldedInstanceConfig) SetEnableSecureBoot(v *bool) *LaunchSpecShieldedInstanceConfig
type LaunchSpecStrategy ¶ added in v1.88.0
type LaunchSpecStrategy struct { PreemptiblePercentage *int `json:"preemptiblePercentage,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecStrategy) MarshalJSON ¶ added in v1.88.0
func (o LaunchSpecStrategy) MarshalJSON() ([]byte, error)
func (*LaunchSpecStrategy) SetPreemptiblePercentage ¶ added in v1.88.0
func (o *LaunchSpecStrategy) SetPreemptiblePercentage(v *int) *LaunchSpecStrategy
type LaunchSpecification ¶
type LaunchSpecification struct { Labels []*Label `json:"labels,omitempty"` IPForwarding *bool `json:"ipForwarding,omitempty"` Metadata []*Metadata `json:"metadata,omitempty"` RootVolumeSizeInGB *int `json:"rootVolumeSizeInGb,omitempty"` ServiceAccount *string `json:"serviceAccount,omitempty"` SourceImage *string `json:"sourceImage,omitempty"` Tags []string `json:"tags,omitempty"` RootVolumeType *string `json:"rootVolumeType,omitempty"` ShieldedInstanceConfig *LaunchSpecShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"` UseAsTemplateOnly *bool `json:"useAsTemplateOnly,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecification) MarshalJSON ¶
func (o LaunchSpecification) MarshalJSON() ([]byte, error)
func (*LaunchSpecification) SetIPForwarding ¶
func (o *LaunchSpecification) SetIPForwarding(v *bool) *LaunchSpecification
func (*LaunchSpecification) SetLabels ¶
func (o *LaunchSpecification) SetLabels(v []*Label) *LaunchSpecification
func (*LaunchSpecification) SetMetadata ¶
func (o *LaunchSpecification) SetMetadata(v []*Metadata) *LaunchSpecification
func (*LaunchSpecification) SetRootVolumeSizeInGB ¶
func (o *LaunchSpecification) SetRootVolumeSizeInGB(v *int) *LaunchSpecification
func (*LaunchSpecification) SetRootVolumeType ¶ added in v1.96.0
func (o *LaunchSpecification) SetRootVolumeType(v *string) *LaunchSpecification
func (*LaunchSpecification) SetServiceAccount ¶
func (o *LaunchSpecification) SetServiceAccount(v *string) *LaunchSpecification
func (*LaunchSpecification) SetShieldedInstanceConfig ¶ added in v1.113.0
func (o *LaunchSpecification) SetShieldedInstanceConfig(v *LaunchSpecShieldedInstanceConfig) *LaunchSpecification
func (*LaunchSpecification) SetSourceImage ¶
func (o *LaunchSpecification) SetSourceImage(v *string) *LaunchSpecification
func (*LaunchSpecification) SetTags ¶
func (o *LaunchSpecification) SetTags(v []string) *LaunchSpecification
func (*LaunchSpecification) SetUseAsTemplateOnly ¶ added in v1.121.0
func (o *LaunchSpecification) SetUseAsTemplateOnly(v *bool) *LaunchSpecification
type ListClustersInput ¶
type ListClustersInput struct{}
type ListClustersOutput ¶
type ListClustersOutput struct {
Clusters []*Cluster `json:"clusters,omitempty"`
}
type ListLaunchSpecsInput ¶
type ListLaunchSpecsInput struct {
OceanID *string `json:"oceanId,omitempty"`
}
type ListLaunchSpecsOutput ¶
type ListLaunchSpecsOutput struct {
LaunchSpecs []*LaunchSpec `json:"launchSpecs,omitempty"`
}
type Metadata ¶
type Metadata struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (Metadata) MarshalJSON ¶
type NamedPorts ¶
type NamedPorts struct { Name *string `json:"name,omitempty"` Ports []int `json:"ports,omitempty"` // contains filtered or unexported fields }
func (NamedPorts) MarshalJSON ¶
func (o NamedPorts) MarshalJSON() ([]byte, error)
func (*NamedPorts) SetName ¶
func (o *NamedPorts) SetName(v *string) *NamedPorts
SetNamedPorts sets the name of the NamedPorts
func (*NamedPorts) SetPorts ¶
func (o *NamedPorts) SetPorts(v []int) *NamedPorts
type NetworkInterface ¶
type NetworkInterface struct { AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"` AliasIPRanges []*AliasIPRange `json:"aliasIpRanges,omitempty"` Network *string `json:"network,omitempty"` ProjectID *string `json:"projectId,omitempty"` // contains filtered or unexported fields }
func (NetworkInterface) MarshalJSON ¶
func (o NetworkInterface) MarshalJSON() ([]byte, error)
func (*NetworkInterface) SetAccessConfigs ¶
func (o *NetworkInterface) SetAccessConfigs(v []*AccessConfig) *NetworkInterface
func (*NetworkInterface) SetAliasIPRanges ¶
func (o *NetworkInterface) SetAliasIPRanges(v []*AliasIPRange) *NetworkInterface
func (*NetworkInterface) SetNetwork ¶
func (o *NetworkInterface) SetNetwork(v *string) *NetworkInterface
func (*NetworkInterface) SetProjectId ¶ added in v1.46.0
func (o *NetworkInterface) SetProjectId(v *string) *NetworkInterface
type Parameters ¶ added in v1.154.0
type Parameters struct { ClusterRoll *ClusterRoll `json:"clusterRoll,omitempty"` // contains filtered or unexported fields }
func (Parameters) MarshalJSON ¶ added in v1.154.0
func (o Parameters) MarshalJSON() ([]byte, error)
func (*Parameters) SetClusterRoll ¶ added in v1.154.0
func (o *Parameters) SetClusterRoll(v *ClusterRoll) *Parameters
type ReadClusterInput ¶
type ReadClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ReadClusterOutput ¶
type ReadClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type ReadLaunchSpecInput ¶
type ReadLaunchSpecInput struct {
LaunchSpecID *string `json:"launchSpecId,omitempty"`
}
type ReadLaunchSpecOutput ¶
type ReadLaunchSpecOutput struct {
LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}
type ResourceLimits ¶ added in v1.97.0
type ResourceLimits struct { MaxInstanceCount *int `json:"maxInstanceCount,omitempty"` MinInstanceCount *int `json:"minInstanceCount,omitempty"` // contains filtered or unexported fields }
func (ResourceLimits) MarshalJSON ¶ added in v1.97.0
func (o ResourceLimits) MarshalJSON() ([]byte, error)
func (*ResourceLimits) SetMaxInstanceCount ¶ added in v1.97.0
func (o *ResourceLimits) SetMaxInstanceCount(v *int) *ResourceLimits
func (*ResourceLimits) SetMinInstanceCount ¶ added in v1.102.0
func (o *ResourceLimits) SetMinInstanceCount(v *int) *ResourceLimits
type RollSpec ¶ added in v1.100.0
type RollSpec struct { ClusterID *string `json:"clusterId,omitempty"` Comment *string `json:"comment,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` LaunchSpecIDs []string `json:"launchSpecIds,omitempty"` InstanceNames []string `json:"instanceNames,omitempty"` RespectPDB *bool `json:"respectPdb,omitempty"` // contains filtered or unexported fields }
func (RollSpec) MarshalJSON ¶ added in v1.100.0
func (*RollSpec) SetBatchMinHealthyPercentage ¶ added in v1.115.0
func (*RollSpec) SetBatchSizePercentage ¶ added in v1.100.0
func (*RollSpec) SetComment ¶ added in v1.100.0
func (*RollSpec) SetInstanceNames ¶ added in v1.100.0
func (*RollSpec) SetLaunchSpecIDs ¶ added in v1.100.0
func (*RollSpec) SetRespectPDB ¶ added in v1.135.0
type RollStatus ¶ added in v1.100.0
type RollStatus struct { RollID *string `json:"rollId,omitempty"` ClusterID *string `json:"oceanId,omitempty"` Comment *string `json:"comment,omitempty"` Status *string `json:"status,omitempty"` Progress *Progress `json:"progress,omitempty"` BatchNumber *int `json:"batchNumber,omitempty"` NumOfBatches *int `json:"numOfBatches,omitempty"` LaunchSpecIDs []string `json:"launchSpecIds,omitempty"` InstanceNames []string `json:"instanceNames,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` }
type Scheduling ¶ added in v1.41.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.41.0
func (o Scheduling) MarshalJSON() ([]byte, error)
func (*Scheduling) SetShutdownHours ¶ added in v1.41.0
func (o *Scheduling) SetShutdownHours(v *ShutdownHours) *Scheduling
func (*Scheduling) SetTasks ¶ added in v1.41.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) ImportOceanGKECluster(ctx context.Context, input *ImportOceanGKEClusterInput) (*ImportOceanGKEClusterOutput, error) ImportOceanGKELaunchSpec(ctx context.Context, input *ImportOceanGKELaunchSpecInput) (*ImportOceanGKELaunchSpecOutput, error) CreateRoll(context.Context, *CreateRollInput) (*CreateRollOutput, 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) CreateLaunchSpec ¶
func (s *ServiceOp) CreateLaunchSpec(ctx context.Context, input *CreateLaunchSpecInput) (*CreateLaunchSpecOutput, error)
func (*ServiceOp) CreateRoll ¶ added in v1.100.0
func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)
func (*ServiceOp) DeleteCluster ¶
func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
func (*ServiceOp) DeleteLaunchSpec ¶
func (s *ServiceOp) DeleteLaunchSpec(ctx context.Context, input *DeleteLaunchSpecInput) (*DeleteLaunchSpecOutput, error)
func (*ServiceOp) ImportOceanGKECluster ¶
func (s *ServiceOp) ImportOceanGKECluster(ctx context.Context, input *ImportOceanGKEClusterInput) (*ImportOceanGKEClusterOutput, error)
ImportOceanGKECluster imports an existing Ocean GKE cluster into Elastigroup.
func (*ServiceOp) ImportOceanGKELaunchSpec ¶
func (s *ServiceOp) ImportOceanGKELaunchSpec(ctx context.Context, input *ImportOceanGKELaunchSpecInput) (*ImportOceanGKELaunchSpecOutput, error)
func (*ServiceOp) ListClusters ¶
func (s *ServiceOp) ListClusters(ctx context.Context, input *ListClustersInput) (*ListClustersOutput, 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) ReadLaunchSpec ¶
func (s *ServiceOp) ReadLaunchSpec(ctx context.Context, input *ReadLaunchSpecInput) (*ReadLaunchSpecOutput, error)
func (*ServiceOp) UpdateCluster ¶
func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
func (*ServiceOp) UpdateLaunchSpec ¶
func (s *ServiceOp) UpdateLaunchSpec(ctx context.Context, input *UpdateLaunchSpecInput) (*UpdateLaunchSpecOutput, error)
type ShieldedInstanceConfig ¶ added in v1.91.0
type ShieldedInstanceConfig struct { EnableSecureBoot *bool `json:"enableSecureBoot,omitempty"` EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"` // contains filtered or unexported fields }
func (ShieldedInstanceConfig) MarshalJSON ¶ added in v1.91.0
func (o ShieldedInstanceConfig) MarshalJSON() ([]byte, error)
func (*ShieldedInstanceConfig) SetEnableIntegrityMonitoring ¶ added in v1.91.0
func (o *ShieldedInstanceConfig) SetEnableIntegrityMonitoring(v *bool) *ShieldedInstanceConfig
func (*ShieldedInstanceConfig) SetEnableSecureBoot ¶ added in v1.91.0
func (o *ShieldedInstanceConfig) SetEnableSecureBoot(v *bool) *ShieldedInstanceConfig
type ShutdownHours ¶ added in v1.41.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.41.0
func (o ShutdownHours) MarshalJSON() ([]byte, error)
func (*ShutdownHours) SetIsEnabled ¶ added in v1.41.0
func (o *ShutdownHours) SetIsEnabled(v *bool) *ShutdownHours
func (*ShutdownHours) SetTimeWindows ¶ added in v1.41.0
func (o *ShutdownHours) SetTimeWindows(v []string) *ShutdownHours
type Storage ¶ added in v1.97.0
type Storage struct { LocalSSDCount *int `json:"localSsdCount,omitempty"` // contains filtered or unexported fields }
func (Storage) MarshalJSON ¶ added in v1.97.0
func (*Storage) SetLocalSSDCount ¶ added in v1.97.0
type Strategy ¶
type Strategy struct { DrainingTimeout *int `json:"drainingTimeout,omitempty"` ProvisioningModel *string `json:"provisioningModel,omitempty"` PreemptiblePercentage *int `json:"preemptiblePercentage,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetPreemptiblePercentage ¶ added in v1.116.0
func (*Strategy) SetProvisioningModel ¶ added in v1.111.0
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.41.0
type Task struct { IsEnabled *bool `json:"isEnabled,omitempty"` Type *string `json:"taskType,omitempty"` CronExpression *string `json:"cronExpression,omitempty"` Parameters *Parameters `json:"parameters,omitempty"` // contains filtered or unexported fields }
func (Task) MarshalJSON ¶ added in v1.41.0
func (*Task) SetCronExpression ¶ added in v1.41.0
func (*Task) SetIsEnabled ¶ added in v1.41.0
func (*Task) SetParameters ¶ added in v1.154.0
func (o *Task) SetParameters(v *Parameters) *Task
type UpdateClusterInput ¶
type UpdateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateClusterOutput ¶
type UpdateClusterOutput struct {
Cluster *Cluster `json:"cluster,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.