azure_np

package
v1.151.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AKS

type AKS struct {
	ClusterName                     *string `json:"clusterName,omitempty"`
	ResourceGroupName               *string `json:"resourceGroupName,omitempty"`
	Region                          *string `json:"region,omitempty"`
	InfrastructureResourceGroupName *string `json:"infrastructureResourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (AKS) MarshalJSON

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

func (*AKS) SetClusterName

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

func (*AKS) SetInfrastructureResourceGroupName

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

func (*AKS) SetRegion

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

func (*AKS) SetResourceGroupName

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

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"`
	Name                     *string                   `json:"name,omitempty"`
	ControllerClusterID      *string                   `json:"controllerClusterId,omitempty"`
	AKS                      *AKS                      `json:"aks,omitempty"`
	AutoScaler               *AutoScaler               `json:"autoScaler,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) 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 *int `json:"maxScaleDownPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (Down) MarshalJSON

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

func (*Down) SetMaxScaleDownPercentage

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

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 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 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 NodeCountLimits

type NodeCountLimits struct {
	MinCount *int `json:"minCount,omitempty"`
	MaxCount *int `json:"maxCount,omitempty"`
	// contains filtered or unexported fields
}

NodeCountLimits region

func (NodeCountLimits) MarshalJSON

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

func (*NodeCountLimits) SetMaxCount

func (o *NodeCountLimits) SetMaxCount(v *int) *NodeCountLimits

func (*NodeCountLimits) SetMinCount

func (o *NodeCountLimits) SetMinCount(v *int) *NodeCountLimits

type NodePoolProperties

type NodePoolProperties struct {
	MaxPodsPerNode     *int    `json:"maxPodsPerNode,omitempty"`
	EnableNodePublicIP *bool   `json:"enableNodePublicIP,omitempty"`
	OsDiskSizeGB       *int    `json:"osDiskSizeGB,omitempty"`
	OsDiskType         *string `json:"osDiskType,omitempty"`
	OsType             *string `json:"osType,omitempty"`
	// contains filtered or unexported fields
}

NodePoolProperties region

func (NodePoolProperties) MarshalJSON

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

func (*NodePoolProperties) SetEnableNodePublicIP

func (o *NodePoolProperties) SetEnableNodePublicIP(v *bool) *NodePoolProperties

func (*NodePoolProperties) SetMaxPodsPerNode

func (o *NodePoolProperties) SetMaxPodsPerNode(v *int) *NodePoolProperties

func (*NodePoolProperties) SetOsDiskSizeGB

func (o *NodePoolProperties) SetOsDiskSizeGB(v *int) *NodePoolProperties

func (*NodePoolProperties) SetOsDiskType

func (o *NodePoolProperties) SetOsDiskType(v *string) *NodePoolProperties

func (*NodePoolProperties) SetOsType

func (o *NodePoolProperties) SetOsType(v *string) *NodePoolProperties

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 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
}

Strategy region

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 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 VirtualNodeGroup

type VirtualNodeGroup struct {
	ID                 *string             `json:"id,omitempty"`
	OceanID            *string             `json:"oceanId,omitempty"`
	Name               *string             `json:"name,omitempty"`
	Labels             *map[string]string  `json:"labels,omitempty"`
	Taints             []*Taint            `json:"taints,omitempty"`
	Tags               *map[string]string  `json:"tags,omitempty"`
	Strategy           *Strategy           `json:"strategy,omitempty"`
	AvailabilityZones  []string            `json:"availabilityZones,omitempty"`
	NodePoolProperties *NodePoolProperties `json:"nodePoolProperties,omitempty"`
	NodeCountLimits    *NodeCountLimits    `json:"nodeCountLimits,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) SetAvailabilityZones

func (o *VirtualNodeGroup) SetAvailabilityZones(v []string) *VirtualNodeGroup

func (*VirtualNodeGroup) SetId

func (*VirtualNodeGroup) SetLabels

func (o *VirtualNodeGroup) SetLabels(v *map[string]string) *VirtualNodeGroup

func (*VirtualNodeGroup) SetName

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

func (*VirtualNodeGroup) SetNodeCountLimits

func (o *VirtualNodeGroup) SetNodeCountLimits(v *NodeCountLimits) *VirtualNodeGroup

func (*VirtualNodeGroup) SetNodePoolProperties

func (o *VirtualNodeGroup) SetNodePoolProperties(v *NodePoolProperties) *VirtualNodeGroup

func (*VirtualNodeGroup) SetOceanId

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

func (*VirtualNodeGroup) SetStrategy

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

func (*VirtualNodeGroup) SetTags

func (o *VirtualNodeGroup) SetTags(v *map[string]string) *VirtualNodeGroup

func (*VirtualNodeGroup) SetTaints

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

type VirtualNodeGroupTemplate

type VirtualNodeGroupTemplate struct {
	AvailabilityZones  []string            `json:"availabilityZones,omitempty"`
	NodePoolProperties *NodePoolProperties `json:"nodePoolProperties,omitempty"`
	NodeCountLimits    *NodeCountLimits    `json:"nodeCountLimits,omitempty"`
	Strategy           *Strategy           `json:"strategy,omitempty"`
	Labels             *map[string]string  `json:"labels,omitempty"`
	Tags               *map[string]string  `json:"tags,omitempty"`
	Taints             []*Taint            `json:"taints,omitempty"`
	// contains filtered or unexported fields
}

func (VirtualNodeGroupTemplate) MarshalJSON

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

func (*VirtualNodeGroupTemplate) SetAvailabilityZones

func (o *VirtualNodeGroupTemplate) SetAvailabilityZones(v []string) *VirtualNodeGroupTemplate

func (*VirtualNodeGroupTemplate) SetLabels

func (*VirtualNodeGroupTemplate) SetNodeCountLimits

func (*VirtualNodeGroupTemplate) SetNodePoolProperties

func (*VirtualNodeGroupTemplate) SetStrategy

func (*VirtualNodeGroupTemplate) SetTags

func (*VirtualNodeGroupTemplate) SetTaints

Jump to

Keyboard shortcuts

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