azure

package
v1.101.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 30

Documentation

Index

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 (o AKS) MarshalJSON() ([]byte, error)

func (*AKS) SetName

func (o *AKS) SetName(v *string) *AKS

func (*AKS) SetResourceGroupName

func (o *AKS) SetResourceGroupName(v *string) *AKS

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

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 (o Automatic) MarshalJSON() ([]byte, error)

func (*Automatic) SetIsEnabled

func (o *Automatic) SetIsEnabled(v *bool) *Automatic

func (*Automatic) SetPercentage

func (o *Automatic) SetPercentage(v *int) *Automatic

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 (o Cluster) MarshalJSON() ([]byte, error)

func (*Cluster) SetAKS

func (o *Cluster) SetAKS(v *AKS) *Cluster

func (*Cluster) SetAutoScaler

func (o *Cluster) SetAutoScaler(v *AutoScaler) *Cluster

func (*Cluster) SetControllerClusterId

func (o *Cluster) SetControllerClusterId(v *string) *Cluster

func (*Cluster) SetHealth

func (o *Cluster) SetHealth(v *Health) *Cluster

func (*Cluster) SetId

func (o *Cluster) SetId(v *string) *Cluster

func (*Cluster) SetName

func (o *Cluster) SetName(v *string) *Cluster

func (*Cluster) SetStrategy

func (o *Cluster) SetStrategy(v *Strategy) *Cluster

func (*Cluster) SetVirtualNodeGroupTemplate

func (o *Cluster) SetVirtualNodeGroupTemplate(v *VirtualNodeGroupTemplate) *Cluster

type CreateClusterInput

type CreateClusterInput struct {
	Cluster *Cluster `json:"cluster,omitempty"`
}

type CreateClusterOutput

type CreateClusterOutput struct {
	Cluster *Cluster `json:"cluster,omitempty"`
}

type 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 (o Down) MarshalJSON() ([]byte, error)

func (*Down) SetFallbackToOD

func (o *Down) SetFallbackToOD(v *bool) *Down

func (*Down) SetMaxScaleDownPercentage

func (o *Down) SetMaxScaleDownPercentage(v *float64) *Down

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 (o Extension) MarshalJSON() ([]byte, error)

func (*Extension) SetAPIVersion

func (o *Extension) SetAPIVersion(v *string) *Extension

func (*Extension) SetMinorVersionAutoUpgrade

func (o *Extension) SetMinorVersionAutoUpgrade(v *bool) *Extension

func (*Extension) SetName

func (o *Extension) SetName(v *string) *Extension

func (*Extension) SetProtectedSettings added in v1.92.0

func (o *Extension) SetProtectedSettings(v interface{}) *Extension

func (*Extension) SetPublicSettings added in v1.92.0

func (o *Extension) SetPublicSettings(v interface{}) *Extension

func (*Extension) SetPublisher

func (o *Extension) SetPublisher(v *string) *Extension

func (*Extension) SetType

func (o *Extension) SetType(v *string) *Extension

type Headroom

type Headroom struct {
	Automatic *Automatic `json:"automatic,omitempty"`
	// contains filtered or unexported fields
}

func (Headroom) MarshalJSON

func (o Headroom) MarshalJSON() ([]byte, error)

func (*Headroom) SetAutomatic

func (o *Headroom) SetAutomatic(v *Automatic) *Headroom

type Health

type Health struct {
	GracePeriod *int `json:"gracePeriod,omitempty"`
	// contains filtered or unexported fields
}

func (Health) MarshalJSON

func (o Health) MarshalJSON() ([]byte, error)

func (*Health) SetGracePeriod

func (o *Health) SetGracePeriod(v *int) *Health

type Image

type Image struct {
	MarketplaceImage *MarketplaceImage `json:"marketplace,omitempty"`
	// contains filtered or unexported fields
}

func (Image) MarshalJSON

func (o Image) MarshalJSON() ([]byte, error)

func (*Image) SetMarketplaceImage

func (o *Image) SetMarketplaceImage(v *MarketplaceImage) *Image

type ImportCluster

type ImportCluster struct {
	ControllerClusterID *string `json:"controllerClusterId,omitempty"`
	Name                *string `json:"name,omitempty"`
	AKS                 *AKS    `json:"aks,omitempty"`
	// contains filtered or unexported fields
}

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

func (o Label) MarshalJSON() ([]byte, error)

func (*Label) SetKey

func (o *Label) SetKey(v *string) *Label

func (*Label) SetValue

func (o *Label) SetValue(v *string) *Label

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"`
	// 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 (*LaunchSpecification) SetLoadBalancersConfig added in v1.87.0

func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification

func (*LaunchSpecification) SetLogin

func (*LaunchSpecification) SetManagedServiceIdentities added in v1.95.0

func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification

func (*LaunchSpecification) SetNetwork

func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification

func (*LaunchSpecification) SetOSDisk added in v1.87.0

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 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 (o Login) MarshalJSON() ([]byte, error)

func (*Login) SetSSHPublicKey

func (o *Login) SetSSHPublicKey(v *string) *Login

func (*Login) SetUserName

func (o *Login) SetUserName(v *string) *Login

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 (*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 (o Network) MarshalJSON() ([]byte, error)

func (*Network) SetNetworkInterfaces

func (o *Network) SetNetworkInterfaces(v []*NetworkInterface) *Network

func (*Network) SetResourceGroupName

func (o *Network) SetResourceGroupName(v *string) *Network

func (*Network) SetVirtualNetworkName

func (o *Network) SetVirtualNetworkName(v *string) *Network

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 OSDisk

type OSDisk struct {
	SizeGB *int    `json:"sizeGB,omitempty"`
	Type   *string `json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (OSDisk) MarshalJSON

func (o OSDisk) MarshalJSON() ([]byte, error)

func (*OSDisk) SetSizeGB

func (o *OSDisk) SetSizeGB(v *int) *OSDisk

func (*OSDisk) SetType

func (o *OSDisk) SetType(v *string) *OSDisk

type ReadClusterInput

type ReadClusterInput struct {
	ClusterID *string `json:"clusterId,omitempty"`
}

type ReadClusterOutput

type ReadClusterOutput struct {
	Cluster *Cluster `json:"cluster,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 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

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

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) CreateCluster

func (s *ServiceOp) CreateCluster(ctx context.Context, input *CreateClusterInput) (*CreateClusterOutput, 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) 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) ReadVirtualNodeGroup

func (s *ServiceOp) ReadVirtualNodeGroup(ctx context.Context, input *ReadVirtualNodeGroupInput) (*ReadVirtualNodeGroupOutput, 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 Strategy

type Strategy struct {
	SpotPercentage *int  `json:"spotPercentage,omitempty"`
	FallbackToOD   *bool `json:"fallbackToOd,omitempty"`
	// contains filtered or unexported fields
}

func (Strategy) MarshalJSON

func (o Strategy) MarshalJSON() ([]byte, error)

func (*Strategy) SetFallbackToOD

func (o *Strategy) SetFallbackToOD(v *bool) *Strategy

func (*Strategy) SetSpotPercentage

func (o *Strategy) SetSpotPercentage(v *int) *Strategy

type Tag

type Tag struct {
	Key   *string `json:"tagKey,omitempty"`
	Value *string `json:"tagValue,omitempty"`
	// contains filtered or unexported fields
}

func (Tag) MarshalJSON

func (o Tag) MarshalJSON() ([]byte, error)

func (*Tag) SetKey

func (o *Tag) SetKey(v *string) *Tag

func (*Tag) SetValue

func (o *Tag) SetValue(v *string) *Tag

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

func (o Taint) MarshalJSON() ([]byte, error)

func (*Taint) SetEffect

func (o *Taint) SetEffect(v *string) *Taint

func (*Taint) SetKey

func (o *Taint) SetKey(v *string) *Taint

func (*Taint) SetValue

func (o *Taint) SetValue(v *string) *Taint

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 (o VMSizes) MarshalJSON() ([]byte, error)

func (*VMSizes) SetWhitelist

func (o *VMSizes) SetWhitelist(v []string) *VMSizes

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"`

	// 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 (*VirtualNodeGroup) SetId

func (*VirtualNodeGroup) SetLabels

func (o *VirtualNodeGroup) SetLabels(v []*Label) *VirtualNodeGroup

func (*VirtualNodeGroup) SetLaunchSpecification

func (*VirtualNodeGroup) SetName

func (o *VirtualNodeGroup) SetName(v *string) *VirtualNodeGroup

func (*VirtualNodeGroup) SetOceanId

func (o *VirtualNodeGroup) SetOceanId(v *string) *VirtualNodeGroup

func (*VirtualNodeGroup) SetResourceLimits

func (*VirtualNodeGroup) SetTaints

func (o *VirtualNodeGroup) SetTaints(v []*Taint) *VirtualNodeGroup

type VirtualNodeGroupAutoScale

type VirtualNodeGroupAutoScale struct {
	Headrooms []*VirtualNodeGroupHeadroom `json:"headrooms,omitempty"`
	// contains filtered or unexported fields
}

func (VirtualNodeGroupAutoScale) MarshalJSON

func (o VirtualNodeGroupAutoScale) MarshalJSON() ([]byte, error)

func (*VirtualNodeGroupAutoScale) SetHeadrooms

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 (*VirtualNodeGroupHeadroom) SetGPUPerUnit

func (*VirtualNodeGroupHeadroom) SetMemoryPerUnit

func (o *VirtualNodeGroupHeadroom) SetMemoryPerUnit(v *int) *VirtualNodeGroupHeadroom

func (*VirtualNodeGroupHeadroom) SetNumOfUnits

type VirtualNodeGroupLaunchSpecification

type VirtualNodeGroupLaunchSpecification struct {
	OSDisk *OSDisk `json:"osDisk,omitempty"`
	Tags   []*Tag  `json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (VirtualNodeGroupLaunchSpecification) MarshalJSON

func (o VirtualNodeGroupLaunchSpecification) MarshalJSON() ([]byte, error)

func (*VirtualNodeGroupLaunchSpecification) SetOSDisk

func (*VirtualNodeGroupLaunchSpecification) SetTags

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

type VirtualNodeGroupTemplate

type VirtualNodeGroupTemplate struct {
	VMSizes             *VMSizes             `json:"vmSizes,omitempty"`
	LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"`
	// contains filtered or unexported fields
}

func (VirtualNodeGroupTemplate) MarshalJSON

func (o VirtualNodeGroupTemplate) MarshalJSON() ([]byte, error)

func (*VirtualNodeGroupTemplate) SetLaunchSpecification

func (*VirtualNodeGroupTemplate) SetVMSizes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL