Documentation ¶
Index ¶
- type Action
- func (o Action) MarshalJSON() ([]byte, error)
- func (o *Action) SetAdjustment(v *string) *Action
- func (o *Action) SetMaxTargetCapacity(v *string) *Action
- func (o *Action) SetMaximum(v *string) *Action
- func (o *Action) SetMinTargetCapacity(v *string) *Action
- func (o *Action) SetMinimum(v *string) *Action
- func (o *Action) SetTarget(v *string) *Action
- func (o *Action) SetType(v *string) *Action
- type AdditionalIPConfigs
- type Capacity
- type Compute
- func (o Compute) MarshalJSON() ([]byte, error)
- func (o *Compute) SetHealth(v *Health) *Compute
- func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
- func (o *Compute) SetProduct(v *string) *Compute
- func (o *Compute) SetRegion(v *string) *Compute
- func (o *Compute) SetResourceGroupName(v *string) *Compute
- func (o *Compute) SetVMSizes(v *VMSizes) *Compute
- type CreateGroupInput
- type CreateGroupOutput
- type CreateTaskInput
- type CreateTaskOutput
- type CustomImage
- type DeleteGroupInput
- type DeleteGroupOutput
- type DeleteTaskInput
- type DeleteTaskOutput
- type DetachGroupInput
- type DetachGroupOutput
- type Dimension
- type Group
- func (o Group) MarshalJSON() ([]byte, error)
- func (o *Group) SetCapacity(v *Capacity) *Group
- func (o *Group) SetCompute(v *Compute) *Group
- func (o *Group) SetDescription(v *string) *Group
- func (o *Group) SetId(v *string) *Group
- func (o *Group) SetIntegration(v *Integration) *Group
- func (o *Group) SetName(v *string) *Group
- func (o *Group) SetRegion(v *string) *Group
- func (o *Group) SetResourceGroupName(v *string) *Group
- func (o *Group) SetScaling(v *Scaling) *Group
- func (o *Group) SetScheduling(v *Scheduling) *Group
- func (o *Group) SetStrategy(v *Strategy) *Group
- type Health
- type Image
- type Integration
- type KubernetesIntegration
- type LaunchSpecification
- func (o LaunchSpecification) MarshalJSON() ([]byte, error)
- func (o *LaunchSpecification) SetCustomData(v *string) *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) SetNetwork(v *Network) *LaunchSpecification
- func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification
- func (o *LaunchSpecification) SetStorage(v *Storage) *LaunchSpecification
- func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification
- type ListGroupsInput
- type ListGroupsOutput
- type ListRollStatusInput
- type ListRollStatusOutput
- type ListTasksInput
- type ListTasksOutput
- type LoadBalancer
- type LoadBalancersConfig
- type Login
- type ManagedServiceIdentity
- type MarketPlaceImage
- type MultaiIntegration
- type Network
- func (o Network) MarshalJSON() ([]byte, error)
- func (o *Network) SetAdditionalIPConfigs(v []*AdditionalIPConfigs) *Network
- func (o *Network) SetAssignPublicIP(v *bool) *Network
- func (o *Network) SetResourceGroupName(v *string) *Network
- func (o *Network) SetSubnetName(v *string) *Network
- func (o *Network) SetVirtualNetworkName(v *string) *Network
- type Node
- type NodeSignal
- type NodeSignalInput
- type NodeSignalOutput
- type RancherIntegration
- type ReadGroupInput
- type ReadGroupOutput
- type ReadTaskInput
- type ReadTaskOutput
- type ResourceFile
- type Roll
- type RollGroupInput
- type RollGroupOutput
- type RollItem
- type RollProgress
- type RollStatus
- type RollStatusInput
- type RollStatusOutput
- type RollStrategy
- type ScaleGroupInput
- type ScaleGroupOutput
- type Scaling
- type ScalingPolicy
- func (o ScalingPolicy) MarshalJSON() ([]byte, error)
- func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy
- func (o *ScalingPolicy) SetAdjustment(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetDimensions(v []*Dimension) *ScalingPolicy
- func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetMaxTargetCapacity(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetMinTargetCapacity(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy
- func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy
- func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy
- func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy
- type ScheduledTask
- func (o ScheduledTask) MarshalJSON() ([]byte, error)
- func (o *ScheduledTask) SetAdjustment(v *int) *ScheduledTask
- func (o *ScheduledTask) SetAdjustmentPercentage(v *int) *ScheduledTask
- func (o *ScheduledTask) SetBatchSizePercentage(v *int) *ScheduledTask
- func (o *ScheduledTask) SetCronExpression(v *string) *ScheduledTask
- func (o *ScheduledTask) SetFrequency(v *string) *ScheduledTask
- func (o *ScheduledTask) SetGracePeriod(v *int) *ScheduledTask
- func (o *ScheduledTask) SetIsEnabled(v *bool) *ScheduledTask
- func (o *ScheduledTask) SetScaleMaxCapacity(v *int) *ScheduledTask
- func (o *ScheduledTask) SetScaleMinCapacity(v *int) *ScheduledTask
- func (o *ScheduledTask) SetScaleTargetCapacity(v *int) *ScheduledTask
- func (o *ScheduledTask) SetTaskType(v *string) *ScheduledTask
- type Scheduling
- type Service
- type ServiceOp
- func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)
- func (s *ServiceOp) CreateNodeSignal(ctx context.Context, input *NodeSignalInput) (*NodeSignalOutput, error)
- func (s *ServiceOp) CreateTask(ctx context.Context, input *CreateTaskInput) (*CreateTaskOutput, error)
- func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)
- func (s *ServiceOp) DeleteTask(ctx context.Context, input *DeleteTaskInput) (*DeleteTaskOutput, error)
- func (s *ServiceOp) Detach(ctx context.Context, input *DetachGroupInput) (*DetachGroupOutput, error)
- func (s *ServiceOp) GetRollStatus(ctx context.Context, input *RollStatusInput) (*RollStatusOutput, error)
- func (s *ServiceOp) List(ctx context.Context, input *ListGroupsInput) (*ListGroupsOutput, error)
- func (s *ServiceOp) ListRollStatus(ctx context.Context, input *ListRollStatusInput) (*ListRollStatusOutput, error)
- func (s *ServiceOp) ListTasks(ctx context.Context, input *ListTasksInput) (*ListTasksOutput, error)
- func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)
- func (s *ServiceOp) ReadTask(ctx context.Context, input *ReadTaskInput) (*ReadTaskOutput, error)
- func (s *ServiceOp) Roll(ctx context.Context, input *RollGroupInput) (*RollGroupOutput, error)
- func (s *ServiceOp) Scale(ctx context.Context, input *ScaleGroupInput) (*ScaleGroupOutput, error)
- func (s *ServiceOp) Status(ctx context.Context, input *StatusGroupInput) (*StatusGroupOutput, error)
- func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)
- func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)
- func (s *ServiceOp) UpdateTask(ctx context.Context, input *UpdateTaskInput) (*UpdateTaskOutput, error)
- type Signal
- type StatusGroupInput
- type StatusGroupOutput
- type StopRollInput
- type StopRollOutput
- type Storage
- type Strategy
- type Tag
- type Task
- func (o Task) MarshalJSON() ([]byte, error)
- func (o *Task) SetDescription(v *string) *Task
- func (o *Task) SetId(v *string) *Task
- func (o *Task) SetInstances(v []*TaskInstance) *Task
- func (o *Task) SetName(v *string) *Task
- func (o *Task) SetPolicies(v []*TaskPolicy) *Task
- func (o *Task) SetState(v *string) *Task
- type TaskInstance
- type TaskPolicy
- type UpdateGroupInput
- type UpdateGroupOutput
- type UpdateTaskInput
- type UpdateTaskOutput
- type VMSizes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Type *string `json:"type,omitempty"` Adjustment *string `json:"adjustment,omitempty"` MinTargetCapacity *string `json:"minTargetCapacity,omitempty"` MaxTargetCapacity *string `json:"maxTargetCapacity,omitempty"` Maximum *string `json:"maximum,omitempty"` Minimum *string `json:"minimum,omitempty"` Target *string `json:"target,omitempty"` // contains filtered or unexported fields }
func (Action) MarshalJSON ¶
func (*Action) SetAdjustment ¶
func (*Action) SetMaxTargetCapacity ¶
func (*Action) SetMaximum ¶
func (*Action) SetMinTargetCapacity ¶
func (*Action) SetMinimum ¶
type AdditionalIPConfigs ¶
type AdditionalIPConfigs struct { Name *string `json:"name,omitempty"` PrivateIPAddressVersion *string `json:"privateIpAddressVersion,omitempty"` // contains filtered or unexported fields }
func (AdditionalIPConfigs) MarshalJSON ¶
func (o AdditionalIPConfigs) MarshalJSON() ([]byte, error)
func (*AdditionalIPConfigs) SetName ¶
func (o *AdditionalIPConfigs) SetName(v *string) *AdditionalIPConfigs
SetName sets the name
func (*AdditionalIPConfigs) SetPrivateIPAddressVersion ¶
func (o *AdditionalIPConfigs) SetPrivateIPAddressVersion(v *string) *AdditionalIPConfigs
SetPrivateIPAddressVersion sets the ip address version
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 Compute ¶
type Compute struct { Region *string `json:"region,omitempty"` Product *string `json:"product,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` VMSizes *VMSizes `json:"vmSizes,omitempty"` LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"` Health *Health `json:"health,omitempty"` // contains filtered or unexported fields }
func (Compute) MarshalJSON ¶
func (*Compute) SetLaunchSpecification ¶
func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute
func (*Compute) SetProduct ¶
func (*Compute) SetResourceGroupName ¶
func (*Compute) SetVMSizes ¶
type CreateGroupInput ¶
type CreateGroupInput struct {
Group *Group `json:"group,omitempty"`
}
type CreateGroupOutput ¶
type CreateGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type CreateTaskInput ¶
type CreateTaskInput struct {
Task *Task `json:"task,omitempty"`
}
type CreateTaskOutput ¶
type CreateTaskOutput struct {
Task *Task `json:"task,omitempty"`
}
type CustomImage ¶
type CustomImage struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` ImageName *string `json:"imageName,omitempty"` // contains filtered or unexported fields }
func (CustomImage) MarshalJSON ¶
func (o CustomImage) MarshalJSON() ([]byte, error)
func (*CustomImage) SetImageName ¶
func (o *CustomImage) SetImageName(v *string) *CustomImage
func (*CustomImage) SetResourceGroupName ¶
func (o *CustomImage) SetResourceGroupName(v *string) *CustomImage
type DeleteGroupInput ¶
type DeleteGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type DeleteGroupOutput ¶
type DeleteGroupOutput struct{}
type DeleteTaskInput ¶
type DeleteTaskInput struct {
TaskID *string `json:"id,omitempty"`
}
type DeleteTaskOutput ¶
type DeleteTaskOutput struct{}
type DetachGroupInput ¶
type DetachGroupInput struct { GroupID *string `json:"groupId,omitempty"` InstanceIDs []string `json:"instancesToDetach,omitempty"` ShouldDecrementTargetCapacity *bool `json:"shouldDecrementTargetCapacity,omitempty"` ShouldTerminateInstances *bool `json:"shouldTerminateInstances,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` }
type DetachGroupOutput ¶
type DetachGroupOutput struct{}
type Dimension ¶
type Dimension struct { Name *string `json:"name,omitempty"` Value *string `json:"value,omitempty"` // contains filtered or unexported fields }
func (Dimension) MarshalJSON ¶
type Group ¶
type Group struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` Description *string `json:"description,omitempty"` Region *string `json:"region,omitempty"` Capacity *Capacity `json:"capacity,omitempty"` Compute *Compute `json:"compute,omitempty"` Strategy *Strategy `json:"strategy,omitempty"` Scaling *Scaling `json:"scaling,omitempty"` Scheduling *Scheduling `json:"scheduling,omitempty"` Integration *Integration `json:"thirdPartiesIntegration,omitempty"` // Read-only fields. CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (Group) MarshalJSON ¶
func (*Group) SetCapacity ¶
func (*Group) SetCompute ¶
func (*Group) SetDescription ¶
func (*Group) SetIntegration ¶
func (o *Group) SetIntegration(v *Integration) *Group
func (*Group) SetResourceGroupName ¶
func (*Group) SetScaling ¶
func (*Group) SetScheduling ¶
func (o *Group) SetScheduling(v *Scheduling) *Group
func (*Group) SetStrategy ¶
type Health ¶
type Health struct { HealthCheckType *string `json:"healthCheckType,omitempty"` AutoHealing *bool `json:"autoHealing,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` // contains filtered or unexported fields }
func (Health) MarshalJSON ¶
func (*Health) SetAutoHealing ¶
func (*Health) SetGracePeriod ¶
func (*Health) SetHealthCheckType ¶
type Image ¶
type Image struct { MarketPlace *MarketPlaceImage `json:"marketplace,omitempty"` Custom *CustomImage `json:"custom,omitempty"` // contains filtered or unexported fields }
func (Image) MarshalJSON ¶
func (*Image) SetCustom ¶
func (o *Image) SetCustom(v *CustomImage) *Image
func (*Image) SetMarketPlaceImage ¶
func (o *Image) SetMarketPlaceImage(v *MarketPlaceImage) *Image
type Integration ¶
type Integration struct { Rancher *RancherIntegration `json:"rancher,omitempty"` Kubernetes *KubernetesIntegration `json:"kubernetes,omitempty"` Multai *MultaiIntegration `json:"mlbRuntime,omitempty"` // contains filtered or unexported fields }
func (Integration) MarshalJSON ¶
func (o Integration) MarshalJSON() ([]byte, error)
func (*Integration) SetKubernetes ¶
func (o *Integration) SetKubernetes(v *KubernetesIntegration) *Integration
func (*Integration) SetMultai ¶
func (o *Integration) SetMultai(v *MultaiIntegration) *Integration
func (*Integration) SetRancher ¶
func (o *Integration) SetRancher(v *RancherIntegration) *Integration
type KubernetesIntegration ¶
type KubernetesIntegration struct { ClusterIdentifier *string `json:"clusterIdentifier,omitempty"` // contains filtered or unexported fields }
func (KubernetesIntegration) MarshalJSON ¶
func (o KubernetesIntegration) MarshalJSON() ([]byte, error)
func (*KubernetesIntegration) SetClusterIdentifier ¶
func (o *KubernetesIntegration) SetClusterIdentifier(v *string) *KubernetesIntegration
type LaunchSpecification ¶
type LaunchSpecification struct { LoadBalancersConfig *LoadBalancersConfig `json:"loadBalancersConfig,omitempty"` Image *Image `json:"image,omitempty"` UserData *string `json:"userData,omitempty"` ShutdownScript *string `json:"shutdownScript,omitempty"` Storage *Storage `json:"storage,omitempty"` Network *Network `json:"network,omitempty"` Login *Login `json:"login,omitempty"` CustomData *string `json:"customData,omitempty"` ManagedServiceIdentities []*ManagedServiceIdentity `json:"managedServiceIdentities,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) SetImage ¶
func (o *LaunchSpecification) SetImage(v *Image) *LaunchSpecification
func (*LaunchSpecification) SetLoadBalancersConfig ¶
func (o *LaunchSpecification) SetLoadBalancersConfig(v *LoadBalancersConfig) *LaunchSpecification
func (*LaunchSpecification) SetLogin ¶
func (o *LaunchSpecification) SetLogin(v *Login) *LaunchSpecification
func (*LaunchSpecification) SetManagedServiceIdentities ¶
func (o *LaunchSpecification) SetManagedServiceIdentities(v []*ManagedServiceIdentity) *LaunchSpecification
func (*LaunchSpecification) SetNetwork ¶
func (o *LaunchSpecification) SetNetwork(v *Network) *LaunchSpecification
func (*LaunchSpecification) SetShutdownScript ¶
func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification
SetShutdownScript sets the shutdown script used when draining instances
func (*LaunchSpecification) SetStorage ¶
func (o *LaunchSpecification) SetStorage(v *Storage) *LaunchSpecification
func (*LaunchSpecification) SetUserData ¶
func (o *LaunchSpecification) SetUserData(v *string) *LaunchSpecification
type ListGroupsInput ¶
type ListGroupsInput struct{}
type ListGroupsOutput ¶
type ListGroupsOutput struct {
Groups []*Group `json:"groups,omitempty"`
}
type ListRollStatusInput ¶
type ListRollStatusInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type ListRollStatusOutput ¶
type ListRollStatusOutput struct {
Items []*RollStatus `json:"items"`
}
type ListTasksInput ¶
type ListTasksInput struct{}
type ListTasksOutput ¶
type ListTasksOutput struct {
Tasks []*Task `json:"tasks,omitempty"`
}
type LoadBalancer ¶
type LoadBalancer struct { Type *string `json:"type,omitempty"` BalancerID *string `json:"balancerId,omitempty"` TargetSetID *string `json:"targetSetId,omitempty"` AutoWeight *bool `json:"autoWeight,omitempty"` // contains filtered or unexported fields }
func (LoadBalancer) MarshalJSON ¶
func (o LoadBalancer) MarshalJSON() ([]byte, error)
func (*LoadBalancer) SetAutoWeight ¶
func (o *LoadBalancer) SetAutoWeight(v *bool) *LoadBalancer
func (*LoadBalancer) SetBalancerId ¶
func (o *LoadBalancer) SetBalancerId(v *string) *LoadBalancer
func (*LoadBalancer) SetTargetSetId ¶
func (o *LoadBalancer) SetTargetSetId(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 ¶
func (o *LoadBalancersConfig) SetLoadBalancers(v []*LoadBalancer) *LoadBalancersConfig
type Login ¶
type Login struct { UserName *string `json:"userName,omitempty"` SSHPublicKey *string `json:"sshPublicKey,omitempty"` Password *string `json:"password,omitempty"` // contains filtered or unexported fields }
func (Login) MarshalJSON ¶
func (*Login) SetPassword ¶
func (*Login) SetSSHPublicKey ¶
func (*Login) SetUserName ¶
type ManagedServiceIdentity ¶
type ManagedServiceIdentity struct { ResourceGroupName *string `json:"resourceGroupName,omitempty"` Name *string `json:"name,omitempty"` // contains filtered or unexported fields }
func (ManagedServiceIdentity) MarshalJSON ¶
func (o ManagedServiceIdentity) MarshalJSON() ([]byte, error)
func (*ManagedServiceIdentity) SetName ¶
func (o *ManagedServiceIdentity) SetName(v *string) *ManagedServiceIdentity
func (*ManagedServiceIdentity) SetResourceGroupName ¶
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"` // 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
type MultaiIntegration ¶
type MultaiIntegration struct { DeploymentID *string `json:"deploymentId,omitempty"` // contains filtered or unexported fields }
func (MultaiIntegration) MarshalJSON ¶
func (o MultaiIntegration) MarshalJSON() ([]byte, error)
func (*MultaiIntegration) SetDeploymentId ¶
func (o *MultaiIntegration) SetDeploymentId(v *string) *MultaiIntegration
type Network ¶
type Network struct { VirtualNetworkName *string `json:"virtualNetworkName,omitempty"` SubnetName *string `json:"subnetName,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` AssignPublicIP *bool `json:"assignPublicIp,omitempty"` AdditionalIPConfigs []*AdditionalIPConfigs `json:"additionalIpConfigurations,omitempty"` // contains filtered or unexported fields }
func (Network) MarshalJSON ¶
func (*Network) SetAdditionalIPConfigs ¶
func (o *Network) SetAdditionalIPConfigs(v []*AdditionalIPConfigs) *Network
SetAdditionalIPConfigs sets the additional IP configurations
func (*Network) SetAssignPublicIP ¶
func (*Network) SetResourceGroupName ¶
func (*Network) SetSubnetName ¶
func (*Network) SetVirtualNetworkName ¶
type Node ¶
type Node struct { ID *string `json:"id,omitempty"` VMSize *string `json:"vmSize,omitempty"` State *string `json:"state,omitempty"` LifeCycle *string `json:"lifeCycle,omitempty"` Region *string `json:"region,omitempty"` IPAddress *string `json:"ipAddress,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` }
type NodeSignal ¶
type NodeSignal struct { NodeID *string `json:"nodeId,omitempty"` PoolID *string `json:"poolId,omitempty"` Signal *string `json:"signal,omitempty"` // contains filtered or unexported fields }
func (NodeSignal) MarshalJSON ¶
func (o NodeSignal) MarshalJSON() ([]byte, error)
func (*NodeSignal) SetNodeID ¶
func (o *NodeSignal) SetNodeID(v *string) *NodeSignal
func (*NodeSignal) SetPoolID ¶
func (o *NodeSignal) SetPoolID(v *string) *NodeSignal
func (*NodeSignal) SetSignal ¶
func (o *NodeSignal) SetSignal(v *string) *NodeSignal
type NodeSignalInput ¶
type NodeSignalOutput ¶
type NodeSignalOutput struct{}
type RancherIntegration ¶
type RancherIntegration struct { MasterHost *string `json:"masterHost,omitempty"` AccessKey *string `json:"accessKey,omitempty"` SecretKey *string `json:"secretKey,omitempty"` // contains filtered or unexported fields }
func (RancherIntegration) MarshalJSON ¶
func (o RancherIntegration) MarshalJSON() ([]byte, error)
func (*RancherIntegration) SetAccessKey ¶
func (o *RancherIntegration) SetAccessKey(v *string) *RancherIntegration
func (*RancherIntegration) SetMasterHost ¶
func (o *RancherIntegration) SetMasterHost(v *string) *RancherIntegration
func (*RancherIntegration) SetSecretKey ¶
func (o *RancherIntegration) SetSecretKey(v *string) *RancherIntegration
type ReadGroupInput ¶
type ReadGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type ReadGroupOutput ¶
type ReadGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type ReadTaskInput ¶
type ReadTaskInput struct {
TaskID *string `json:"taskId,omitempty"`
}
type ReadTaskOutput ¶
type ReadTaskOutput struct {
Task *Task `json:"task,omitempty"`
}
type ResourceFile ¶
type ResourceFile struct { URL *string `json:"resourceFileUrl,omitempty"` TargetPath *string `json:"resourceFileTargetPath,omitempty"` // contains filtered or unexported fields }
func (ResourceFile) MarshalJSON ¶
func (o ResourceFile) MarshalJSON() ([]byte, error)
func (*ResourceFile) SetTargetPath ¶
func (o *ResourceFile) SetTargetPath(v *string) *ResourceFile
func (*ResourceFile) SetURL ¶
func (o *ResourceFile) SetURL(v *string) *ResourceFile
type Roll ¶
type Roll struct { Status *string `json:"status,omitempty"` // contains filtered or unexported fields }
func (Roll) MarshalJSON ¶
type RollGroupInput ¶
type RollGroupInput struct { GroupID *string `json:"groupId,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` HealthCheckType *string `json:"healthCheckType,omitempty"` Strategy *RollStrategy `json:"strategy,omitempty"` }
type RollGroupOutput ¶
type RollGroupOutput struct {
Items []*RollItem `json:"items"`
}
type RollProgress ¶
type RollProgress struct { Unit *string `json:"unit,omitempty"` Value *int `json:"value,omitempty"` // contains filtered or unexported fields }
func (RollProgress) MarshalJSON ¶
func (o RollProgress) MarshalJSON() ([]byte, error)
func (*RollProgress) SetUnit ¶
func (o *RollProgress) SetUnit(v *string) *RollProgress
func (*RollProgress) SetValue ¶
func (o *RollProgress) SetValue(v *int) *RollProgress
type RollStatus ¶
type RollStatus struct { GroupID *string `json:"groupId,omitempty"` RollID *string `json:"id,omitempty"` Status *string `json:"status,omitempty"` Progress *RollProgress `json:"progress,omitempty"` CreatedAt *string `json:"createdAt,omitempty"` UpdatedAt *string `json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (RollStatus) MarshalJSON ¶
func (o RollStatus) MarshalJSON() ([]byte, error)
func (*RollStatus) SetGroupID ¶
func (o *RollStatus) SetGroupID(v *string) *RollStatus
func (*RollStatus) SetProgress ¶
func (o *RollStatus) SetProgress(v *RollProgress) *RollStatus
func (*RollStatus) SetRollID ¶
func (o *RollStatus) SetRollID(v *string) *RollStatus
func (*RollStatus) SetStatus ¶
func (o *RollStatus) SetStatus(v *string) *RollStatus
type RollStatusInput ¶
type RollStatusOutput ¶
type RollStatusOutput struct {
RollStatus *RollStatus `json:"rollStatus,omitempty"`
}
type RollStrategy ¶
type ScaleGroupInput ¶
type ScaleGroupOutput ¶
type ScaleGroupOutput struct{}
type Scaling ¶
type Scaling struct { Up []*ScalingPolicy `json:"up,omitempty"` Down []*ScalingPolicy `json:"down,omitempty"` // contains filtered or unexported fields }
func (Scaling) MarshalJSON ¶
func (*Scaling) SetDown ¶
func (o *Scaling) SetDown(v []*ScalingPolicy) *Scaling
func (*Scaling) SetUp ¶
func (o *Scaling) SetUp(v []*ScalingPolicy) *Scaling
type ScalingPolicy ¶
type ScalingPolicy struct { PolicyName *string `json:"policyName,omitempty"` MetricName *string `json:"metricName,omitempty"` Statistic *string `json:"statistic,omitempty"` Unit *string `json:"unit,omitempty"` Threshold *float64 `json:"threshold,omitempty"` Adjustment *int `json:"adjustment,omitempty"` MinTargetCapacity *int `json:"minTargetCapacity,omitempty"` MaxTargetCapacity *int `json:"maxTargetCapacity,omitempty"` Namespace *string `json:"namespace,omitempty"` EvaluationPeriods *int `json:"evaluationPeriods,omitempty"` Period *int `json:"period,omitempty"` Cooldown *int `json:"cooldown,omitempty"` Operator *string `json:"operator,omitempty"` Dimensions []*Dimension `json:"dimensions,omitempty"` Action *Action `json:"action,omitempty"` // contains filtered or unexported fields }
func (ScalingPolicy) MarshalJSON ¶
func (o ScalingPolicy) MarshalJSON() ([]byte, error)
func (*ScalingPolicy) SetAction ¶
func (o *ScalingPolicy) SetAction(v *Action) *ScalingPolicy
func (*ScalingPolicy) SetAdjustment ¶
func (o *ScalingPolicy) SetAdjustment(v *int) *ScalingPolicy
func (*ScalingPolicy) SetCooldown ¶
func (o *ScalingPolicy) SetCooldown(v *int) *ScalingPolicy
func (*ScalingPolicy) SetDimensions ¶
func (o *ScalingPolicy) SetDimensions(v []*Dimension) *ScalingPolicy
func (*ScalingPolicy) SetEvaluationPeriods ¶
func (o *ScalingPolicy) SetEvaluationPeriods(v *int) *ScalingPolicy
func (*ScalingPolicy) SetMaxTargetCapacity ¶
func (o *ScalingPolicy) SetMaxTargetCapacity(v *int) *ScalingPolicy
func (*ScalingPolicy) SetMetricName ¶
func (o *ScalingPolicy) SetMetricName(v *string) *ScalingPolicy
func (*ScalingPolicy) SetMinTargetCapacity ¶
func (o *ScalingPolicy) SetMinTargetCapacity(v *int) *ScalingPolicy
func (*ScalingPolicy) SetNamespace ¶
func (o *ScalingPolicy) SetNamespace(v *string) *ScalingPolicy
func (*ScalingPolicy) SetOperator ¶
func (o *ScalingPolicy) SetOperator(v *string) *ScalingPolicy
func (*ScalingPolicy) SetPeriod ¶
func (o *ScalingPolicy) SetPeriod(v *int) *ScalingPolicy
func (*ScalingPolicy) SetPolicyName ¶
func (o *ScalingPolicy) SetPolicyName(v *string) *ScalingPolicy
func (*ScalingPolicy) SetStatistic ¶
func (o *ScalingPolicy) SetStatistic(v *string) *ScalingPolicy
func (*ScalingPolicy) SetThreshold ¶
func (o *ScalingPolicy) SetThreshold(v *float64) *ScalingPolicy
func (*ScalingPolicy) SetUnit ¶
func (o *ScalingPolicy) SetUnit(v *string) *ScalingPolicy
type ScheduledTask ¶
type ScheduledTask struct { IsEnabled *bool `json:"isEnabled,omitempty"` Frequency *string `json:"frequency,omitempty"` CronExpression *string `json:"cronExpression,omitempty"` TaskType *string `json:"taskType,omitempty"` ScaleTargetCapacity *int `json:"scaleTargetCapacity,omitempty"` ScaleMinCapacity *int `json:"scaleMinCapacity,omitempty"` ScaleMaxCapacity *int `json:"scaleMaxCapacity,omitempty"` BatchSizePercentage *int `json:"batchSizePercentage,omitempty"` GracePeriod *int `json:"gracePeriod,omitempty"` Adjustment *int `json:"adjustment,omitempty"` AdjustmentPercentage *int `json:"adjustmentPercentage,omitempty"` // contains filtered or unexported fields }
func (ScheduledTask) MarshalJSON ¶
func (o ScheduledTask) MarshalJSON() ([]byte, error)
func (*ScheduledTask) SetAdjustment ¶
func (o *ScheduledTask) SetAdjustment(v *int) *ScheduledTask
func (*ScheduledTask) SetAdjustmentPercentage ¶
func (o *ScheduledTask) SetAdjustmentPercentage(v *int) *ScheduledTask
func (*ScheduledTask) SetBatchSizePercentage ¶
func (o *ScheduledTask) SetBatchSizePercentage(v *int) *ScheduledTask
func (*ScheduledTask) SetCronExpression ¶
func (o *ScheduledTask) SetCronExpression(v *string) *ScheduledTask
func (*ScheduledTask) SetFrequency ¶
func (o *ScheduledTask) SetFrequency(v *string) *ScheduledTask
func (*ScheduledTask) SetGracePeriod ¶
func (o *ScheduledTask) SetGracePeriod(v *int) *ScheduledTask
func (*ScheduledTask) SetIsEnabled ¶
func (o *ScheduledTask) SetIsEnabled(v *bool) *ScheduledTask
func (*ScheduledTask) SetScaleMaxCapacity ¶
func (o *ScheduledTask) SetScaleMaxCapacity(v *int) *ScheduledTask
func (*ScheduledTask) SetScaleMinCapacity ¶
func (o *ScheduledTask) SetScaleMinCapacity(v *int) *ScheduledTask
func (*ScheduledTask) SetScaleTargetCapacity ¶
func (o *ScheduledTask) SetScaleTargetCapacity(v *int) *ScheduledTask
func (*ScheduledTask) SetTaskType ¶
func (o *ScheduledTask) SetTaskType(v *string) *ScheduledTask
type Scheduling ¶
type Scheduling struct { Tasks []*ScheduledTask `json:"tasks,omitempty"` // contains filtered or unexported fields }
func (Scheduling) MarshalJSON ¶
func (o Scheduling) MarshalJSON() ([]byte, error)
func (*Scheduling) SetTasks ¶
func (o *Scheduling) SetTasks(v []*ScheduledTask) *Scheduling
type Service ¶
type Service interface { List(context.Context, *ListGroupsInput) (*ListGroupsOutput, error) Create(context.Context, *CreateGroupInput) (*CreateGroupOutput, error) Read(context.Context, *ReadGroupInput) (*ReadGroupOutput, error) Update(context.Context, *UpdateGroupInput) (*UpdateGroupOutput, error) Delete(context.Context, *DeleteGroupInput) (*DeleteGroupOutput, error) Status(context.Context, *StatusGroupInput) (*StatusGroupOutput, error) Detach(context.Context, *DetachGroupInput) (*DetachGroupOutput, error) Scale(context.Context, *ScaleGroupInput) (*ScaleGroupOutput, error) CreateNodeSignal(context.Context, *NodeSignalInput) (*NodeSignalOutput, error) Roll(context.Context, *RollGroupInput) (*RollGroupOutput, error) GetRollStatus(context.Context, *RollStatusInput) (*RollStatusOutput, error) ListRollStatus(context.Context, *ListRollStatusInput) (*ListRollStatusOutput, error) StopRoll(context.Context, *StopRollInput) (*StopRollOutput, error) ListTasks(context.Context, *ListTasksInput) (*ListTasksOutput, error) CreateTask(context.Context, *CreateTaskInput) (*CreateTaskOutput, error) ReadTask(context.Context, *ReadTaskInput) (*ReadTaskOutput, error) UpdateTask(context.Context, *UpdateTaskInput) (*UpdateTaskOutput, error) DeleteTask(context.Context, *DeleteTaskInput) (*DeleteTaskOutput, 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) Create ¶
func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)
func (*ServiceOp) CreateNodeSignal ¶
func (s *ServiceOp) CreateNodeSignal(ctx context.Context, input *NodeSignalInput) (*NodeSignalOutput, error)
func (*ServiceOp) CreateTask ¶
func (s *ServiceOp) CreateTask(ctx context.Context, input *CreateTaskInput) (*CreateTaskOutput, error)
func (*ServiceOp) Delete ¶
func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)
func (*ServiceOp) DeleteTask ¶
func (s *ServiceOp) DeleteTask(ctx context.Context, input *DeleteTaskInput) (*DeleteTaskOutput, error)
func (*ServiceOp) Detach ¶
func (s *ServiceOp) Detach(ctx context.Context, input *DetachGroupInput) (*DetachGroupOutput, error)
func (*ServiceOp) GetRollStatus ¶
func (s *ServiceOp) GetRollStatus(ctx context.Context, input *RollStatusInput) (*RollStatusOutput, error)
func (*ServiceOp) List ¶
func (s *ServiceOp) List(ctx context.Context, input *ListGroupsInput) (*ListGroupsOutput, error)
func (*ServiceOp) ListRollStatus ¶
func (s *ServiceOp) ListRollStatus(ctx context.Context, input *ListRollStatusInput) (*ListRollStatusOutput, error)
func (*ServiceOp) ListTasks ¶
func (s *ServiceOp) ListTasks(ctx context.Context, input *ListTasksInput) (*ListTasksOutput, error)
func (*ServiceOp) Read ¶
func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)
func (*ServiceOp) ReadTask ¶
func (s *ServiceOp) ReadTask(ctx context.Context, input *ReadTaskInput) (*ReadTaskOutput, error)
func (*ServiceOp) Roll ¶
func (s *ServiceOp) Roll(ctx context.Context, input *RollGroupInput) (*RollGroupOutput, error)
func (*ServiceOp) Scale ¶
func (s *ServiceOp) Scale(ctx context.Context, input *ScaleGroupInput) (*ScaleGroupOutput, error)
func (*ServiceOp) Status ¶
func (s *ServiceOp) Status(ctx context.Context, input *StatusGroupInput) (*StatusGroupOutput, error)
func (*ServiceOp) StopRoll ¶
func (s *ServiceOp) StopRoll(ctx context.Context, input *StopRollInput) (*StopRollOutput, error)
func (*ServiceOp) Update ¶
func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)
func (*ServiceOp) UpdateTask ¶
func (s *ServiceOp) UpdateTask(ctx context.Context, input *UpdateTaskInput) (*UpdateTaskOutput, error)
type Signal ¶
type Signal struct { Name *string `json:"name,omitempty"` Timeout *int `json:"timeout,omitempty"` // contains filtered or unexported fields }
func (Signal) MarshalJSON ¶
func (*Signal) SetTimeout ¶
type StatusGroupInput ¶
type StatusGroupInput struct {
GroupID *string `json:"groupId,omitempty"`
}
type StatusGroupOutput ¶
type StatusGroupOutput struct {
Nodes []*Node `json:"nodes,omitempty"`
}
type StopRollInput ¶
type StopRollOutput ¶
type StopRollOutput struct{}
type Storage ¶
type Storage struct { AccountName *string `json:"storageAccountName,omitempty"` // contains filtered or unexported fields }
func (Storage) MarshalJSON ¶
func (*Storage) SetAccountName ¶
type Strategy ¶
type Strategy struct { LowPriorityPercentage *int `json:"lowPriorityPercentage,omitempty"` OnDemandCount *int `json:"onDemandCount,omitempty"` DrainingTimeout *int `json:"drainingTimeout,omitempty"` Signals []*Signal `json:"signals,omitempty"` // contains filtered or unexported fields }
func (Strategy) MarshalJSON ¶
func (*Strategy) SetDrainingTimeout ¶
func (*Strategy) SetLowPriorityPercentage ¶
func (*Strategy) SetOnDemandCount ¶
func (*Strategy) SetSignals ¶
type Tag ¶
type Tag struct { Key *string `json:"tagKey,omitempty"` Value *string `json:"tagValue,omitempty"` // contains filtered or unexported fields }
func (Tag) MarshalJSON ¶
type Task ¶
type Task struct { ID *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Policies []*TaskPolicy `json:"policies,omitempty"` Instances []*TaskInstance `json:"instances,omitempty"` State *string `json:"state,omitempty"` // contains filtered or unexported fields }
func (Task) MarshalJSON ¶
func (*Task) SetDescription ¶
func (*Task) SetInstances ¶
func (o *Task) SetInstances(v []*TaskInstance) *Task
func (*Task) SetPolicies ¶
func (o *Task) SetPolicies(v []*TaskPolicy) *Task
type TaskInstance ¶
type TaskInstance struct { VMName *string `json:"vmName,omitempty"` ResourceGroupName *string `json:"resourceGroupName,omitempty"` // contains filtered or unexported fields }
func (TaskInstance) MarshalJSON ¶
func (o TaskInstance) MarshalJSON() ([]byte, error)
func (*TaskInstance) SetResourceGroupName ¶
func (o *TaskInstance) SetResourceGroupName(v *string) *TaskInstance
func (*TaskInstance) SetVMName ¶
func (o *TaskInstance) SetVMName(v *string) *TaskInstance
type TaskPolicy ¶
type TaskPolicy struct { Cron *string `json:"cron,omitempty"` Action *string `json:"action,omitempty"` // contains filtered or unexported fields }
func (TaskPolicy) MarshalJSON ¶
func (o TaskPolicy) MarshalJSON() ([]byte, error)
func (*TaskPolicy) SetAction ¶
func (o *TaskPolicy) SetAction(v *string) *TaskPolicy
func (*TaskPolicy) SetCron ¶
func (o *TaskPolicy) SetCron(v *string) *TaskPolicy
type UpdateGroupInput ¶
type UpdateGroupInput struct {
Group *Group `json:"group,omitempty"`
}
type UpdateGroupOutput ¶
type UpdateGroupOutput struct {
Group *Group `json:"group,omitempty"`
}
type UpdateTaskInput ¶
type UpdateTaskInput struct {
Task *Task `json:"task,omitempty"`
}
type UpdateTaskOutput ¶
type UpdateTaskOutput struct {
Task *Task `json:"task,omitempty"`
}
type VMSizes ¶
type VMSizes struct { OnDemand []string `json:"odSizes,omitempty"` LowPriority []string `json:"lowPrioritySizes,omitempty"` // contains filtered or unexported fields }
func (VMSizes) MarshalJSON ¶
func (*VMSizes) SetLowPriority ¶
func (*VMSizes) SetOnDemand ¶
Click to show internal directories.
Click to hide internal directories.