Documentation ¶
Index ¶
- type AKS
- type AdditionalIPConfig
- type Attribute
- type AutoScaler
- type Automatic
- type Cluster
- func (o Cluster) MarshalJSON() ([]byte, error)
- func (o *Cluster) SetAKS(v *AKS) *Cluster
- func (o *Cluster) SetAutoScaler(v *AutoScaler) *Cluster
- func (o *Cluster) SetControllerClusterId(v *string) *Cluster
- func (o *Cluster) SetHealth(v *Health) *Cluster
- func (o *Cluster) SetId(v *string) *Cluster
- func (o *Cluster) SetName(v *string) *Cluster
- func (o *Cluster) SetStrategy(v *Strategy) *Cluster
- func (o *Cluster) SetVirtualNodeGroupTemplate(v *VirtualNodeGroupTemplate) *Cluster
- type ContainerResourceSuggestion
- type CreateClusterInput
- type CreateClusterOutput
- type CreateRollInput
- type CreateRollOutput
- type CreateVirtualNodeGroupInput
- type CreateVirtualNodeGroupOutput
- type DeleteClusterInput
- type DeleteClusterOutput
- type DeleteVirtualNodeGroupInput
- type DeleteVirtualNodeGroupOutput
- type Down
- type Extension
- func (o Extension) MarshalJSON() ([]byte, error)
- func (o *Extension) SetAPIVersion(v *string) *Extension
- func (o *Extension) SetMinorVersionAutoUpgrade(v *bool) *Extension
- func (o *Extension) SetName(v *string) *Extension
- func (o *Extension) SetProtectedSettings(v interface{}) *Extension
- func (o *Extension) SetPublicSettings(v interface{}) *Extension
- func (o *Extension) SetPublisher(v *string) *Extension
- func (o *Extension) SetType(v *string) *Extension
- type Filter
- type Headroom
- type Health
- type Image
- type ImportCluster
- type ImportClusterInput
- type ImportClusterOutput
- type Label
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetExtensions(v []*Extension) *LaunchSpecification
- func (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
- func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
- func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
- func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification
- func (o *LaunchSpecification) SetMaxPods(v *int) *LaunchSpecification
- func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification
- func (o *LaunchSpecification) SetOSDisk(v *OSDisk) *LaunchSpecification
- func (o *LaunchSpecification) SetResourceGroupName(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification
- type ListClustersInput
- type ListClustersOutput
- type ListResourceSuggestionsInput
- type ListResourceSuggestionsOutput
- type ListRollsInput
- type ListRollsOutput
- type ListVirtualNodeGroupsInput
- type ListVirtualNodeGroupsOutput
- type LoadBalancer
- func (o LoadBalancer) MarshalJSON() ([]byte, error)
- func (o *LoadBalancer) SeBackendPoolNames(v []string) *LoadBalancer
- func (o *LoadBalancer) SetLoadBalancerSKU(v *string) *LoadBalancer
- func (o *LoadBalancer) SetName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetResourceGroupName(v *string) *LoadBalancer
- func (o *LoadBalancer) SetType(v *string) *LoadBalancer
- type LoadBalancersConfig
- type Login
- type ManagedServiceIdentity
- type MarketplaceImage
- func (o MarketplaceImage) MarshalJSON() ([]byte, error)
- func (o *MarketplaceImage) SetOffer(v *string) *MarketplaceImage
- func (o *MarketplaceImage) SetPublisher(v *string) *MarketplaceImage
- func (o *MarketplaceImage) SetSKU(v *string) *MarketplaceImage
- func (o *MarketplaceImage) SetVersion(v *string) *MarketplaceImage
- type Network
- type NetworkInterface
- func (o NetworkInterface) MarshalJSON() ([]byte, error)
- func (o *NetworkInterface) SetAdditionalIPConfigs(v []*AdditionalIPConfig) *NetworkInterface
- func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetEnableIPForwarding(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface
- func (o *NetworkInterface) SetPublicIPSKU(v *string) *NetworkInterface
- func (o *NetworkInterface) SetSecurityGroup(v *SecurityGroup) *NetworkInterface
- func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface
- type NodeStatus
- type OSDisk
- type Progress
- type ReadClusterInput
- type ReadClusterOutput
- type ReadRollInput
- type ReadRollOutput
- type ReadVirtualNodeGroupInput
- type ReadVirtualNodeGroupOutput
- type ResourceLimits
- type ResourceSuggestion
- type RollNodes
- type RollSpec
- type RollStatus
- type SecurityGroup
- type Service
- type ServiceOp
- func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, error)
- func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)
- func (s *ServiceOp) CreateVirtualNodeGroup(ctx context.Context, input *CreateVirtualNodeGroupInput) (*CreateVirtualNodeGroupOutput, error)
- func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
- func (s *ServiceOp) DeleteVirtualNodeGroup(ctx context.Context, input *DeleteVirtualNodeGroupInput) (*DeleteVirtualNodeGroupOutput, error)
- func (s *ServiceOp) ImportCluster(ctx context.Context, input *ImportClusterInput) (*ImportClusterOutput, error)
- func (s *ServiceOp) ListClusters(ctx context.Context) (*ListClustersOutput, error)
- func (s *ServiceOp) ListResourceSuggestions(ctx context.Context, input *ListResourceSuggestionsInput) (*ListResourceSuggestionsOutput, error)
- func (s *ServiceOp) ListRolls(ctx context.Context, input *ListRollsInput) (*ListRollsOutput, error)
- func (s *ServiceOp) ListVirtualNodeGroups(ctx context.Context, input *ListVirtualNodeGroupsInput) (*ListVirtualNodeGroupsOutput, error)
- func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)
- func (s *ServiceOp) ReadRoll(ctx context.Context, input *ReadRollInput) (*ReadRollOutput, error)
- func (s *ServiceOp) ReadVirtualNodeGroup(ctx context.Context, input *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, error)
- func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)
- func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
- func (s *ServiceOp) UpdateVirtualNodeGroup(ctx context.Context, input *UpdateVirtualNodeGroupInput) (*UpdateVirtualNodeGroupOutput, error)
- type StopRollInput
- type StopRollOutput
- type Strategy
- type Tag
- type Taint
- type UpdateClusterInput
- type UpdateClusterOutput
- type UpdateVirtualNodeGroupInput
- type UpdateVirtualNodeGroupOutput
- type VMSizes
- type VirtualNodeGroup
- func (o VirtualNodeGroup) MarshalJSON() ([]byte, error)
- func (o *VirtualNodeGroup) SetAutoScale(v *VirtualNodeGroupAutoScale) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetId(v *string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetLabels(v []*Label) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetLaunchSpecification(v *VirtualNodeGroupLaunchSpecification) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetName(v *string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetOceanId(v *string) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetResourceLimits(v *VirtualNodeGroupResourceLimits) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetTaints(v []*Taint) *VirtualNodeGroup
- func (o *VirtualNodeGroup) SetZones(v []string) *VirtualNodeGroup
- type VirtualNodeGroupAutoScale
- type VirtualNodeGroupHeadroom
- func (o VirtualNodeGroupHeadroom) MarshalJSON() ([]byte, error)
- func (o *VirtualNodeGroupHeadroom) SetCPUPerUnit(v *int) *VirtualNodeGroupHeadroom
- func (o *VirtualNodeGroupHeadroom) SetGPUPerUnit(v *int) *VirtualNodeGroupHeadroom
- func (o *VirtualNodeGroupHeadroom) SetMemoryPerUnit(v *int) *VirtualNodeGroupHeadroom
- func (o *VirtualNodeGroupHeadroom) SetNumOfUnits(v *int) *VirtualNodeGroupHeadroom
- type VirtualNodeGroupLaunchSpecification
- func (o VirtualNodeGroupLaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *VirtualNodeGroupLaunchSpecification) SetMaxPods(v *int) *VirtualNodeGroupLaunchSpecification
- func (o *VirtualNodeGroupLaunchSpecification) SetOSDisk(v *OSDisk) *VirtualNodeGroupLaunchSpecification
- func (o *VirtualNodeGroupLaunchSpecification) SetTags(v []*Tag) *VirtualNodeGroupLaunchSpecification
- type VirtualNodeGroupResourceLimits
- type VirtualNodeGroupTemplate
- func (o VirtualNodeGroupTemplate) MarshalJSON() ([]byte, error)
- func (o *VirtualNodeGroupTemplate) SetLaunchSpecification(v *LaunchSpecification) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetVMSizes(v *VMSizes) *VirtualNodeGroupTemplate
- func (o *VirtualNodeGroupTemplate) SetZones(v []string) *VirtualNodeGroupTemplate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AKS ¶
type AKS struct { Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` // contains filtered or unexported fields }
func (AKS) MarshalJSON ¶
func (*AKS) SetResourceGroupName ¶
type AdditionalIPConfig ¶
type AdditionalIPConfig struct { Name *string `json:"name,omitempty"` PrivateIPAddressVersion *string `json:"privateIpAddressVersion,omitempty"` // contains filtered or unexported fields }
func (AdditionalIPConfig) MarshalJSON ¶
func (o AdditionalIPConfig) MarshalJSON() ([]byte, error)
func (*AdditionalIPConfig) SetName ¶
func (o *AdditionalIPConfig) SetName(v *string) *AdditionalIPConfig
SetName sets the name
func (*AdditionalIPConfig) SetPrivateIPAddressVersion ¶
func (o *AdditionalIPConfig) SetPrivateIPAddressVersion(v *string) *AdditionalIPConfig
SetPrivateIPAddressVersion sets the ip address version
type AutoScaler ¶
type AutoScaler struct { IsEnabled *bool `json:"isEnabled,omitempty"` ResourceLimits *ResourceLimits `json:"resourceLimits,omitempty"` Down *Down `json:"down,omitempty"` Headroom *Headroom `json:"headroom,omitempty"` // contains filtered or unexported fields }
func (AutoScaler) MarshalJSON ¶
func (o AutoScaler) MarshalJSON() ([]byte, error)
func (*AutoScaler) SetDown ¶
func (o *AutoScaler) SetDown(v *Down) *AutoScaler
func (*AutoScaler) SetHeadroom ¶
func (o *AutoScaler) SetHeadroom(v *Headroom) *AutoScaler
func (*AutoScaler) SetIsEnabled ¶
func (o *AutoScaler) SetIsEnabled(v *bool) *AutoScaler
func (*AutoScaler) SetResourceLimits ¶
func (o *AutoScaler) SetResourceLimits(v *ResourceLimits) *AutoScaler
type Automatic ¶
type Automatic struct { IsEnabled *bool `json:"isEnabled,omitempty"` Percentage *int `json:"percentage,omitempty"` // contains filtered or unexported fields }
func (Automatic) MarshalJSON ¶
func (*Automatic) SetIsEnabled ¶
func (*Automatic) SetPercentage ¶
type Cluster ¶
type Cluster struct { ID *string `json:"id,omitempty"` ControllerClusterID *string `json:"controllerClusterId,omitempty"` Name *string `json:"name,omitempty"` AKS *AKS `json:"aks,omitempty"` AutoScaler *AutoScaler `json:"autoScaler,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` Health *Health `json:"health,omitempty"` VirtualNodeGroupTemplate *VirtualNodeGroupTemplate `json:"virtualNodeGroupTemplate,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (Cluster) MarshalJSON ¶
func (*Cluster) SetAutoScaler ¶
func (o *Cluster) SetAutoScaler(v *AutoScaler) *Cluster
func (*Cluster) SetControllerClusterId ¶
func (*Cluster) SetStrategy ¶
func (*Cluster) SetVirtualNodeGroupTemplate ¶
func (o *Cluster) SetVirtualNodeGroupTemplate(v *VirtualNodeGroupTemplate) *Cluster
type ContainerResourceSuggestion ¶ added in v1.108.0
type ContainerResourceSuggestion struct { Name *string `json:"name,omitempty"` SuggestedCPU *float64 `json:"suggestedCpu,omitempty"` RequestedCPU *float64 `json:"requestedCpu,omitempty"` SuggestedMemory *float64 `json:"suggestedMemory,omitempty"` RequestedMemory *float64 `json:"requestedMemory,omitempty"` }
ContainerResourceSuggestion represents a resource suggestion for a single container.
type CreateClusterInput ¶
type CreateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateClusterOutput ¶
type CreateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type CreateRollInput ¶ added in v1.192.0
type CreateRollInput struct {
Roll *RollSpec `json:"roll,omitempty"`
}
type CreateRollOutput ¶ added in v1.192.0
type CreateRollOutput struct {
Roll *RollStatus `json:"roll,omitempty"`
}
type CreateVirtualNodeGroupInput ¶
type CreateVirtualNodeGroupInput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type CreateVirtualNodeGroupOutput ¶
type CreateVirtualNodeGroupOutput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type DeleteClusterInput ¶
type DeleteClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type DeleteClusterOutput ¶
type DeleteClusterOutput struct{}
type DeleteVirtualNodeGroupInput ¶
type DeleteVirtualNodeGroupInput struct {
VirtualNodeGroupID *string `json:"virtualNodeGroupId,omitempty"`
}
type DeleteVirtualNodeGroupOutput ¶
type DeleteVirtualNodeGroupOutput struct{}
type Down ¶
type Down struct { MaxScaleDownPercentage *float64 `json:"maxScaleDownPercentage,omitempty"` FallbackToOD *bool `json:"fallbackToOd,omitempty"` // contains filtered or unexported fields }
func (Down) MarshalJSON ¶
func (*Down) SetFallbackToOD ¶
func (*Down) SetMaxScaleDownPercentage ¶
type Extension ¶
type Extension struct { APIVersion *string `json:"apiVersion,omitempty"` MinorVersionAutoUpgrade *bool `json:"minorVersionAutoUpgrade,omitempty"` Name *string `json:"name,omitempty"` Publisher *string `json:"publisher,omitempty"` Type *string `json:"type,omitempty"` ProtectedSettings interface{} `json:"protectedSettings,omitempty"` PublicSettings interface{} `json:"publicSettings,omitempty"` // contains filtered or unexported fields }
func (Extension) MarshalJSON ¶
func (*Extension) SetAPIVersion ¶
func (*Extension) SetMinorVersionAutoUpgrade ¶
func (*Extension) SetProtectedSettings ¶ added in v1.92.0
func (*Extension) SetPublicSettings ¶ added in v1.92.0
func (*Extension) SetPublisher ¶
type Headroom ¶
type Headroom struct { Automatic *Automatic `json:"automatic,omitempty"` // contains filtered or unexported fields }
func (Headroom) MarshalJSON ¶
func (*Headroom) SetAutomatic ¶
type Health ¶
type Health struct { GracePeriod *int `json:"gracePeriod,omitempty"` // contains filtered or unexported fields }
func (Health) MarshalJSON ¶
func (*Health) SetGracePeriod ¶
type Image ¶
type Image struct { MarketplaceImage *MarketplaceImage `json:"marketplace,omitempty"` // contains filtered or unexported fields }
func (Image) MarshalJSON ¶
func (*Image) SetMarketplaceImage ¶
func (o *Image) SetMarketplaceImage(v *MarketplaceImage) *Image
type ImportCluster ¶
type ImportClusterInput ¶
type ImportClusterInput struct { ACDIdentifier *string `json:"acdIdentifier,omitempty"` Cluster *ImportCluster `json:"cluster,omitempty"` }
type ImportClusterOutput ¶
type ImportClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type Label ¶
type Label struct { Key *string `json:"key,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (Label) MarshalJSON ¶
type LaunchSpecification ¶
type LaunchSpecification struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` CustomData *string `json:"customData,omitempty"` Image *Image `json:"image,omitempty"` Network *Network `json:"network,omitempty"` OSDisk *OSDisk `json:"osDisk,omitempty"` Login *Login `json:"login,omitempty"` LoadBalancersConfig *LoadBalancersConfig `json:"loadBalancersConfig,omitempty"` ManagedServiceIdentities []*ManagedServiceIdentity `json:"managedServiceIdentities,omitempty"` Extensions []*Extension `json:"extensions,omitempty"` Tags []*Tag `json:"tags,omitempty"` MaxPods *int `json:"maxPods,omitempty"` // contains filtered or unexported fields }
func (LaunchSpecification) MarshalJSON ¶
func (o LaunchSpecification) MarshalJSON() ([]byte, error)
func (*LaunchSpecification) SetCustomData ¶
func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification
func (*LaunchSpecification) SetExtensions ¶ added in v1.87.0
func (o *LaunchSpecification) SetExtensions(v []*Extension) *LaunchSpecification
func (*LaunchSpecification) SetImage ¶
func (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancersConfig ¶ added in v1.87.0
func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
func (*LaunchSpecification) SetLogin ¶
func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
func (*LaunchSpecification) SetManagedServiceIdentities ¶ added in v1.95.0
func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification
func (*LaunchSpecification) SetMaxPods ¶ added in v1.125.0
func (o *LaunchSpecification) SetMaxPods(v *int) *LaunchSpecification
func (*LaunchSpecification) SetNetwork ¶
func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification
func (*LaunchSpecification) SetOSDisk ¶ added in v1.87.0
func (o *LaunchSpecification) SetOSDisk(v *OSDisk) *LaunchSpecification
func (*LaunchSpecification) SetResourceGroupName ¶
func (o *LaunchSpecification) SetResourceGroupName(v *string) *LaunchSpecification
func (*LaunchSpecification) SetTags ¶ added in v1.87.0
func (o *LaunchSpecification) SetTags(v []*Tag) *LaunchSpecification
type ListClustersInput ¶
type ListClustersInput struct{}
type ListClustersOutput ¶
type ListClustersOutput struct {
Clusters []*Cluster `json:"clusters,omitempty"`
}
type ListResourceSuggestionsInput ¶ added in v1.108.0
type ListResourceSuggestionsInput struct { OceanID *string `json:"oceanId,omitempty"` Namespace *string `json:"namespace,omitempty"` Filter *Filter `json:"filter,omitempty"` }
ListResourceSuggestionsInput represents the input of `ListResourceSuggestions` function.
type ListResourceSuggestionsOutput ¶ added in v1.108.0
type ListResourceSuggestionsOutput struct {
Suggestions []*ResourceSuggestion `json:"suggestions,omitempty"`
}
ListResourceSuggestionsOutput represents the output of `ListResourceSuggestions` function.
type ListRollsInput ¶ added in v1.192.0
type ListRollsInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ListRollsOutput ¶ added in v1.192.0
type ListRollsOutput struct {
Rolls []*RollStatus `json:"rolls,omitempty"`
}
type ListVirtualNodeGroupsInput ¶
type ListVirtualNodeGroupsInput struct {
OceanID *string `json:"oceanId,omitempty"`
}
type ListVirtualNodeGroupsOutput ¶
type ListVirtualNodeGroupsOutput struct {
VirtualNodeGroups []*VirtualNodeGroup `json:"virtualNodeGroups,omitempty"`
}
type LoadBalancer ¶
type LoadBalancer struct { BackendPoolNames []string `json:"backendPoolNames,omitempty"` LoadBalancerSKU *string `json:"loadBalancerSku,omitempty"` Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Type *string `json:"type,omitempty"` // contains filtered or unexported fields }
func (LoadBalancer) MarshalJSON ¶
func (o LoadBalancer) MarshalJSON() ([]byte, error)
func (*LoadBalancer) SeBackendPoolNames ¶
func (o *LoadBalancer) SeBackendPoolNames(v []string) *LoadBalancer
func (*LoadBalancer) SetLoadBalancerSKU ¶
func (o *LoadBalancer) SetLoadBalancerSKU(v *string) *LoadBalancer
func (*LoadBalancer) SetName ¶
func (o *LoadBalancer) SetName(v *string) *LoadBalancer
func (*LoadBalancer) SetResourceGroupName ¶
func (o *LoadBalancer) SetResourceGroupName(v *string) *LoadBalancer
func (*LoadBalancer) SetType ¶
func (o *LoadBalancer) SetType(v *string) *LoadBalancer
type LoadBalancersConfig ¶
type LoadBalancersConfig struct { LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"` // contains filtered or unexported fields }
func (LoadBalancersConfig) MarshalJSON ¶
func (o LoadBalancersConfig) MarshalJSON() ([]byte, error)
func (*LoadBalancersConfig) SetLoadBalancers ¶ added in v1.87.0
func (o *LoadBalancersConfig) SetLoadBalancers(v []*LoadBalancer) *LoadBalancersConfig
type Login ¶
type Login struct { SSHPublicKey *string `json:"sshPublicKey,omitempty"` UserName *string `json:"userName,omitempty"` // contains filtered or unexported fields }
func (Login) MarshalJSON ¶
func (*Login) SetSSHPublicKey ¶
func (*Login) SetUserName ¶
type ManagedServiceIdentity ¶ added in v1.95.0
type ManagedServiceIdentity struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (ManagedServiceIdentity) MarshalJSON ¶ added in v1.95.0
func (o ManagedServiceIdentity) MarshalJSON() ([]byte, error)
func (*ManagedServiceIdentity) SetName ¶ added in v1.95.0
func (o *ManagedServiceIdentity) SetName(v *string) *ManagedServiceIdentity
func (*ManagedServiceIdentity) SetResourceGroupName ¶ added in v1.95.0
func (o *ManagedServiceIdentity) SetResourceGroupName(v *string) *ManagedServiceIdentity
type MarketplaceImage ¶
type MarketplaceImage struct { Publisher *string `json:"publisher,omitempty"` Offer *string `json:"offer,omitempty"` SKU *string `json:"sku,omitempty"` Version *string `json:"version,omitempty"` // contains filtered or unexported fields }
func (MarketplaceImage) MarshalJSON ¶
func (o MarketplaceImage) MarshalJSON() ([]byte, error)
func (*MarketplaceImage) SetOffer ¶
func (o *MarketplaceImage) SetOffer(v *string) *MarketplaceImage
func (*MarketplaceImage) SetPublisher ¶
func (o *MarketplaceImage) SetPublisher(v *string) *MarketplaceImage
func (*MarketplaceImage) SetSKU ¶
func (o *MarketplaceImage) SetSKU(v *string) *MarketplaceImage
func (*MarketplaceImage) SetVersion ¶
func (o *MarketplaceImage) SetVersion(v *string) *MarketplaceImage
type Network ¶
type Network struct { NetworkInterfaces []*NetworkInterface `json:"networkInterfaces,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` VirtualNetworkName *string `json:"virtualNetworkName,omitempty"` // contains filtered or unexported fields }
func (Network) MarshalJSON ¶
func (*Network) SetNetworkInterfaces ¶
func (o *Network) SetNetworkInterfaces(v []*NetworkInterface) *Network
func (*Network) SetResourceGroupName ¶
func (*Network) SetVirtualNetworkName ¶
type NetworkInterface ¶
type NetworkInterface struct { SubnetName *string `json:"subnetName,omitempty"` AssignPublicIP *bool `json:"assignPublicIp,omitempty"` IsPrimary *bool `json:"isPrimary,omitempty"` EnableIPForwarding *bool `json:"enableIPForwarding,omitempty"` PublicIPSKU *string `json:"publicIpSku,omitempty"` SecurityGroup *SecurityGroup `json:"securityGroup,omitempty"` AdditionalIPConfigs []*AdditionalIPConfig `json:"additionalIpConfigurations,omitempty"` // contains filtered or unexported fields }
func (NetworkInterface) MarshalJSON ¶
func (o NetworkInterface) MarshalJSON() ([]byte, error)
func (*NetworkInterface) SetAdditionalIPConfigs ¶
func (o *NetworkInterface) SetAdditionalIPConfigs(v []*AdditionalIPConfig) *NetworkInterface
func (*NetworkInterface) SetAssignPublicIP ¶
func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface
func (*NetworkInterface) SetEnableIPForwarding ¶
func (o *NetworkInterface) SetEnableIPForwarding(v *bool) *NetworkInterface
func (*NetworkInterface) SetIsPrimary ¶
func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface
func (*NetworkInterface) SetPublicIPSKU ¶
func (o *NetworkInterface) SetPublicIPSKU(v *string) *NetworkInterface
func (*NetworkInterface) SetSecurityGroup ¶ added in v1.87.0
func (o *NetworkInterface) SetSecurityGroup(v *SecurityGroup) *NetworkInterface
func (*NetworkInterface) SetSubnetName ¶
func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface
type NodeStatus ¶ added in v1.192.0
type OSDisk ¶
type OSDisk struct { SizeGB *int `json:"sizeGB,omitempty"` Type *string `json:"type,omitempty"` UtilizeEphemeralStorage *bool `json:"utilizeEphemeralStorage,omitempty"` // contains filtered or unexported fields }
func (OSDisk) MarshalJSON ¶
func (*OSDisk) SetUtilizeEphemeralStorage ¶ added in v1.120.0
type ReadClusterInput ¶
type ReadClusterInput struct {
ClusterID *string `json:"clusterId,omitempty"`
}
type ReadClusterOutput ¶
type ReadClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type ReadRollInput ¶ added in v1.192.0
type ReadRollOutput ¶ added in v1.192.0
type ReadRollOutput struct {
Roll *RollStatus `json:"roll,omitempty"`
}
type ReadVirtualNodeGroupInput ¶
type ReadVirtualNodeGroupInput struct {
VirtualNodeGroupID *string `json:"virtualNodeGroupId,omitempty"`
}
type ReadVirtualNodeGroupOutput ¶
type ReadVirtualNodeGroupOutput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type ResourceLimits ¶
type ResourceLimits struct { MaxVCPU *int `json:"maxVCpu,omitempty"` MaxMemoryGib *int `json:"maxMemoryGib,omitempty"` // contains filtered or unexported fields }
func (ResourceLimits) MarshalJSON ¶
func (o ResourceLimits) MarshalJSON() ([]byte, error)
func (*ResourceLimits) SetMaxMemoryGib ¶
func (o *ResourceLimits) SetMaxMemoryGib(v *int) *ResourceLimits
func (*ResourceLimits) SetMaxVCPU ¶
func (o *ResourceLimits) SetMaxVCPU(v *int) *ResourceLimits
type ResourceSuggestion ¶ added in v1.108.0
type ResourceSuggestion struct { ResourceName *string `json:"resourceName,omitempty"` ResourceType *string `json:"resourceType,omitempty"` Namespace *string `json:"namespace,omitempty"` SuggestedCPU *float64 `json:"suggestedCPU,omitempty"` RequestedCPU *float64 `json:"requestedCPU,omitempty"` SuggestedMemory *float64 `json:"suggestedMemory,omitempty"` RequestedMemory *float64 `json:"requestedMemory,omitempty"` Containers []*ContainerResourceSuggestion `json:"containers,omitempty"` }
ResourceSuggestion represents a single resource suggestion.
type RollNodes ¶ added in v1.192.0
type RollNodes struct {
RollNodes []*NodeStatus `json:"rollNodes,omitempty"`
}
type RollSpec ¶ added in v1.192.0
type RollSpec struct { ID *string `json:"id,omitempty"` ClusterID *string `json:"clusterId,omitempty"` Comment *string `json:"comment,omitempty"` Status *string `json:"status,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` RespectPDB *bool `json:"respectPdb,omitempty"` NodePoolNames []string `json:"nodePoolNames,omitempty"` VngIds []string `json:"vngIds,omitempty"` RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"` NodeNames []string `json:"nodeNames,omitempty"` // contains filtered or unexported fields }
type RollStatus ¶ added in v1.192.0
type RollStatus struct { ID *string `json:"id,omitempty"` ClusterID *string `json:"oceanId,omitempty"` Scope *string `json:"scope,omitempty"` Comment *string `json:"comment,omitempty"` Status *string `json:"status,omitempty"` Progress *Progress `json:"progress,omitempty"` RespectPDB *bool `json:"respectPdb,omitempty"` RespectRestrictScaleDown *bool `json:"respectRestrictScaleDown,omitempty"` BatchMinHealthyPercentage *int `json:"batchMinHealthyPercentage,omitempty"` CurrentBatch *int `json:"currentBatch,omitempty"` NumOfBatches *int `json:"numOfBatches,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` UpdatedAt *string `json:"updatedAt,omitempty"` }
type SecurityGroup ¶
type SecurityGroup struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (SecurityGroup) MarshalJSON ¶
func (o SecurityGroup) MarshalJSON() ([]byte, error)
func (*SecurityGroup) SetName ¶
func (o *SecurityGroup) SetName(v *string) *SecurityGroup
func (*SecurityGroup) SetResourceGroupName ¶
func (o *SecurityGroup) SetResourceGroupName(v *string) *SecurityGroup
type Service ¶
type Service interface { ListClusters(context.Context) (*ListClustersOutput, error) CreateCluster(context.Context, *CreateClusterInput) (*CreateClusterOutput, error) ReadCluster(context.Context, *ReadClusterInput) (*ReadClusterOutput, error) UpdateCluster(context.Context, *UpdateClusterInput) (*UpdateClusterOutput, error) DeleteCluster(context.Context, *DeleteClusterInput) (*DeleteClusterOutput, error) ImportCluster(context.Context, *ImportClusterInput) (*ImportClusterOutput, error) CreateRoll(context.Context, *CreateRollInput) (*CreateRollOutput, error) ReadRoll(ctx context.Context, input *ReadRollInput) (*ReadRollOutput, error) ListRolls(ctx context.Context, input *ListRollsInput) (*ListRollsOutput, error) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error) ListVirtualNodeGroups(context.Context, *ListVirtualNodeGroupsInput) (*ListVirtualNodeGroupsOutput, error) CreateVirtualNodeGroup(context.Context, *CreateVirtualNodeGroupInput) (*CreateVirtualNodeGroupOutput, error) ReadVirtualNodeGroup(context.Context, *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, error) UpdateVirtualNodeGroup(context.Context, *UpdateVirtualNodeGroupInput) (*UpdateVirtualNodeGroupOutput, error) DeleteVirtualNodeGroup(context.Context, *DeleteVirtualNodeGroupInput) (*DeleteVirtualNodeGroupOutput, error) ListResourceSuggestions(context.Context, *ListResourceSuggestionsInput) (*ListResourceSuggestionsOutput, error) }
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) CreateCluster ¶
func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, error)
func (*ServiceOp) CreateRoll ¶ added in v1.192.0
func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)
func (*ServiceOp) CreateVirtualNodeGroup ¶
func (s *ServiceOp) CreateVirtualNodeGroup(ctx context.Context, input *CreateVirtualNodeGroupInput) (*CreateVirtualNodeGroupOutput, error)
func (*ServiceOp) DeleteCluster ¶
func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)
func (*ServiceOp) DeleteVirtualNodeGroup ¶
func (s *ServiceOp) DeleteVirtualNodeGroup(ctx context.Context, input *DeleteVirtualNodeGroupInput) (*DeleteVirtualNodeGroupOutput, error)
func (*ServiceOp) ImportCluster ¶
func (s *ServiceOp) ImportCluster(ctx context.Context, input *ImportClusterInput) (*ImportClusterOutput, error)
func (*ServiceOp) ListClusters ¶
func (s *ServiceOp) ListClusters(ctx context.Context) (*ListClustersOutput, error)
func (*ServiceOp) ListResourceSuggestions ¶ added in v1.108.0
func (s *ServiceOp) ListResourceSuggestions(ctx context.Context, input *ListResourceSuggestionsInput) (*ListResourceSuggestionsOutput, error)
ListResourceSuggestions returns a list of right-sizing resource suggestions for an Ocean cluster.
func (*ServiceOp) ListRolls ¶ added in v1.192.0
func (s *ServiceOp) ListRolls(ctx context.Context, input *ListRollsInput) (*ListRollsOutput, error)
func (*ServiceOp) ListVirtualNodeGroups ¶
func (s *ServiceOp) ListVirtualNodeGroups(ctx context.Context, input *ListVirtualNodeGroupsInput) (*ListVirtualNodeGroupsOutput, error)
func (*ServiceOp) ReadCluster ¶
func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)
func (*ServiceOp) ReadRoll ¶ added in v1.192.0
func (s *ServiceOp) ReadRoll(ctx context.Context, input *ReadRollInput) (*ReadRollOutput, error)
func (*ServiceOp) ReadVirtualNodeGroup ¶
func (s *ServiceOp) ReadVirtualNodeGroup(ctx context.Context, input *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, error)
func (*ServiceOp) StopRoll ¶ added in v1.192.0
func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)
func (*ServiceOp) UpdateCluster ¶
func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)
func (*ServiceOp) UpdateVirtualNodeGroup ¶
func (s *ServiceOp) UpdateVirtualNodeGroup(ctx context.Context, input *UpdateVirtualNodeGroupInput) (*UpdateVirtualNodeGroupOutput, error)
type StopRollInput ¶ added in v1.192.0
type StopRollOutput ¶ added in v1.192.0
type StopRollOutput struct {
Rolls []*RollStatus `json:"rolls,omitempty"`
}
type Strategy ¶
type Strategy struct { SpotPercentage *int `json:"spotPercentage,omitempty"` FallbackToOD *bool `json:"fallbackToOd,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetFallbackToOD ¶
func (*Strategy) SetSpotPercentage ¶
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 UpdateClusterInput ¶
type UpdateClusterInput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateClusterOutput ¶
type UpdateClusterOutput struct {
Cluster *Cluster `json:"cluster,omitempty"`
}
type UpdateVirtualNodeGroupInput ¶
type UpdateVirtualNodeGroupInput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type UpdateVirtualNodeGroupOutput ¶
type UpdateVirtualNodeGroupOutput struct {
VirtualNodeGroup *VirtualNodeGroup `json:"virtualNodeGroup,omitempty"`
}
type VMSizes ¶
type VMSizes struct { Whitelist []string `json:"whitelist,omitempty"` // contains filtered or unexported fields }
func (VMSizes) MarshalJSON ¶
func (*VMSizes) SetWhitelist ¶
type VirtualNodeGroup ¶
type VirtualNodeGroup struct { ID *string `json:"id,omitempty"` OceanID *string `json:"oceanId,omitempty"` Name *string `json:"name,omitempty"` Labels []*Label `json:"labels,omitempty"` Taints []*Taint `json:"taints,omitempty"` AutoScale *VirtualNodeGroupAutoScale `json:"autoScale,omitempty"` ResourceLimits *VirtualNodeGroupResourceLimits `json:"resourceLimits,omitempty"` LaunchSpecification *VirtualNodeGroupLaunchSpecification `json:"launchSpecification,omitempty"` Zones []string `json:"zones,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroup) MarshalJSON ¶
func (o VirtualNodeGroup) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroup) SetAutoScale ¶
func (o *VirtualNodeGroup) SetAutoScale(v *VirtualNodeGroupAutoScale) *VirtualNodeGroup
func (*VirtualNodeGroup) SetId ¶
func (o *VirtualNodeGroup) SetId(v *string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetLabels ¶
func (o *VirtualNodeGroup) SetLabels(v []*Label) *VirtualNodeGroup
func (*VirtualNodeGroup) SetLaunchSpecification ¶
func (o *VirtualNodeGroup) SetLaunchSpecification(v *VirtualNodeGroupLaunchSpecification) *VirtualNodeGroup
func (*VirtualNodeGroup) SetName ¶
func (o *VirtualNodeGroup) SetName(v *string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetOceanId ¶
func (o *VirtualNodeGroup) SetOceanId(v *string) *VirtualNodeGroup
func (*VirtualNodeGroup) SetResourceLimits ¶
func (o *VirtualNodeGroup) SetResourceLimits(v *VirtualNodeGroupResourceLimits) *VirtualNodeGroup
func (*VirtualNodeGroup) SetTaints ¶
func (o *VirtualNodeGroup) SetTaints(v []*Taint) *VirtualNodeGroup
func (*VirtualNodeGroup) SetZones ¶ added in v1.120.0
func (o *VirtualNodeGroup) SetZones(v []string) *VirtualNodeGroup
type VirtualNodeGroupAutoScale ¶
type VirtualNodeGroupAutoScale struct { Headrooms []*VirtualNodeGroupHeadroom `json:"headrooms,omitempty"` AutoHeadroomPercentage *int `json:"autoHeadroomPercentage,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroupAutoScale) MarshalJSON ¶
func (o VirtualNodeGroupAutoScale) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroupAutoScale) SetAutoHeadroomPercentage ¶ added in v1.112.0
func (o *VirtualNodeGroupAutoScale) SetAutoHeadroomPercentage(v *int) *VirtualNodeGroupAutoScale
func (*VirtualNodeGroupAutoScale) SetHeadrooms ¶
func (o *VirtualNodeGroupAutoScale) SetHeadrooms(v []*VirtualNodeGroupHeadroom) *VirtualNodeGroupAutoScale
type VirtualNodeGroupHeadroom ¶
type VirtualNodeGroupHeadroom 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 (VirtualNodeGroupHeadroom) MarshalJSON ¶
func (o VirtualNodeGroupHeadroom) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroupHeadroom) SetCPUPerUnit ¶
func (o *VirtualNodeGroupHeadroom) SetCPUPerUnit(v *int) *VirtualNodeGroupHeadroom
func (*VirtualNodeGroupHeadroom) SetGPUPerUnit ¶
func (o *VirtualNodeGroupHeadroom) SetGPUPerUnit(v *int) *VirtualNodeGroupHeadroom
func (*VirtualNodeGroupHeadroom) SetMemoryPerUnit ¶
func (o *VirtualNodeGroupHeadroom) SetMemoryPerUnit(v *int) *VirtualNodeGroupHeadroom
func (*VirtualNodeGroupHeadroom) SetNumOfUnits ¶
func (o *VirtualNodeGroupHeadroom) SetNumOfUnits(v *int) *VirtualNodeGroupHeadroom
type VirtualNodeGroupLaunchSpecification ¶
type VirtualNodeGroupLaunchSpecification struct { OSDisk *OSDisk `json:"osDisk,omitempty"` Tags []*Tag `json:"tags,omitempty"` MaxPods *int `json:"maxPods,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroupLaunchSpecification) MarshalJSON ¶
func (o VirtualNodeGroupLaunchSpecification) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroupLaunchSpecification) SetMaxPods ¶ added in v1.125.0
func (o *VirtualNodeGroupLaunchSpecification) SetMaxPods(v *int) *VirtualNodeGroupLaunchSpecification
func (*VirtualNodeGroupLaunchSpecification) SetOSDisk ¶
func (o *VirtualNodeGroupLaunchSpecification) SetOSDisk(v *OSDisk) *VirtualNodeGroupLaunchSpecification
func (*VirtualNodeGroupLaunchSpecification) SetTags ¶
func (o *VirtualNodeGroupLaunchSpecification) SetTags(v []*Tag) *VirtualNodeGroupLaunchSpecification
type VirtualNodeGroupResourceLimits ¶
type VirtualNodeGroupResourceLimits struct { MaxInstanceCount *int `json:"maxInstanceCount,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroupResourceLimits) MarshalJSON ¶
func (o VirtualNodeGroupResourceLimits) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroupResourceLimits) SetMaxInstanceCount ¶
func (o *VirtualNodeGroupResourceLimits) SetMaxInstanceCount(v *int) *VirtualNodeGroupResourceLimits
type VirtualNodeGroupTemplate ¶
type VirtualNodeGroupTemplate struct { VMSizes *VMSizes `json:"vmSizes,omitempty"` LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"` Zones []string `json:"zones,omitempty"` // contains filtered or unexported fields }
func (VirtualNodeGroupTemplate) MarshalJSON ¶
func (o VirtualNodeGroupTemplate) MarshalJSON() ([]byte, error)
func (*VirtualNodeGroupTemplate) SetLaunchSpecification ¶
func (o *VirtualNodeGroupTemplate) SetLaunchSpecification(v *LaunchSpecification) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetVMSizes ¶
func (o *VirtualNodeGroupTemplate) SetVMSizes(v *VMSizes) *VirtualNodeGroupTemplate
func (*VirtualNodeGroupTemplate) SetZones ¶ added in v1.120.0
func (o *VirtualNodeGroupTemplate) SetZones(v []string) *VirtualNodeGroupTemplate