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) 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 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 DeleteClusterInput
- type DeleteClusterOutput
- type DeleteLaunchSpecInput
- type DeleteLaunchSpecOutput
- type GKE
- 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) SetLabels(v []*Label) *LaunchSpec
- func (o *LaunchSpec) SetMetadata(v []*Metadata) *LaunchSpec
- func (o *LaunchSpec) SetOceanId(v *string) *LaunchSpec
- func (o *LaunchSpec) SetSourceImage(v *string) *LaunchSpec
- func (o *LaunchSpec) SetTaints(v []*Taint) *LaunchSpec
- 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) SetServiceAccount(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetSourceImage(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []string) *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 ReadClusterInput
- type ReadClusterOutput
- type ReadLaunchSpecInput
- type ReadLaunchSpecOutput
- 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) 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 ShutdownHours
- 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"` // 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"` AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,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) 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) 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 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 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 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"` // contains filtered or unexported fields }
func (InstanceTypes) MarshalJSON ¶
func (o InstanceTypes) MarshalJSON() ([]byte, error)
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"` 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"` // 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) SetLabels ¶
func (o *LaunchSpec) SetLabels(v []*Label) *LaunchSpec
func (*LaunchSpec) SetMetadata ¶
func (o *LaunchSpec) SetMetadata(v []*Metadata) *LaunchSpec
func (*LaunchSpec) SetOceanId ¶
func (o *LaunchSpec) SetOceanId(v *string) *LaunchSpec
func (*LaunchSpec) SetSourceImage ¶
func (o *LaunchSpec) SetSourceImage(v *string) *LaunchSpec
func (*LaunchSpec) SetTaints ¶
func (o *LaunchSpec) SetTaints(v []*Taint) *LaunchSpec
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"` // 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) SetServiceAccount ¶
func (o *LaunchSpecification) SetServiceAccount(v *string) *LaunchSpecification
func (*LaunchSpecification) SetSourceImage ¶
func (o *LaunchSpecification) SetSourceImage(v *string) *LaunchSpecification
func (*LaunchSpecification) SetTags ¶
func (o *LaunchSpecification) SetTags(v []string) *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 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 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) }
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) 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 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 Strategy ¶
type Strategy struct { DrainingTimeout *int `json:"drainingTimeout,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
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"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` // contains filtered or unexported fields }
func (Task) MarshalJSON ¶ added in v1.41.0
func (*Task) SetBatchSizePercentage ¶ added in v1.41.0
func (*Task) SetCronExpression ¶ added in v1.41.0
func (*Task) SetIsEnabled ¶ added in v1.41.0
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.