v3

package
v1.111.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 (*AdditionalIPConfig) SetPrivateIPAddressVersion

func (o *AdditionalIPConfig) SetPrivateIPAddressVersion(v *string) *AdditionalIPConfig

type ApplicationSecurityGroup added in v1.90.0

type ApplicationSecurityGroup struct {
	Name              *string `json:"name,omitempty"`
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	// contains filtered or unexported fields
}

func (ApplicationSecurityGroup) MarshalJSON added in v1.90.0

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

func (*ApplicationSecurityGroup) SetName added in v1.90.0

func (*ApplicationSecurityGroup) SetResourceGroupName added in v1.90.0

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

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

func (*Capacity) SetMaximum

func (o *Capacity) SetMaximum(v *int) *Capacity

func (*Capacity) SetMinimum

func (o *Capacity) SetMinimum(v *int) *Capacity

func (*Capacity) SetTarget

func (o *Capacity) SetTarget(v *int) *Capacity

type Compute

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

func (Compute) MarshalJSON

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

func (*Compute) SetLaunchSpecification

func (o *Compute) SetLaunchSpecification(v *LaunchSpecification) *Compute

func (*Compute) SetOS

func (o *Compute) SetOS(v *string) *Compute

func (*Compute) SetVMSizes

func (o *Compute) SetVMSizes(v *VMSizes) *Compute

type CreateGroupInput

type CreateGroupInput struct {
	Group *Group `json:"group,omitempty"`
}

type CreateGroupOutput

type CreateGroupOutput struct {
	Group *Group `json:"group,omitempty"`
}

type CustomImage

type CustomImage struct {
	ResourceGroupName *string `json:"resourceGroupName,omitempty"`
	Name              *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (CustomImage) MarshalJSON

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

func (*CustomImage) SetName

func (o *CustomImage) SetName(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 Group

type Group struct {
	ID                *string   `json:"id,omitempty"`
	Name              *string   `json:"name,omitempty"`
	ResourceGroupName *string   `json:"resourceGroupName,omitempty"`
	Region            *string   `json:"region,omitempty"`
	Capacity          *Capacity `json:"capacity,omitempty"`
	Compute           *Compute  `json:"compute,omitempty"`
	Strategy          *Strategy `json:"strategy,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 (o Group) MarshalJSON() ([]byte, error)

func (*Group) SetCapacity

func (o *Group) SetCapacity(v *Capacity) *Group

func (*Group) SetCompute

func (o *Group) SetCompute(v *Compute) *Group

func (*Group) SetId

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

func (*Group) SetName

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

func (*Group) SetRegion

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

func (*Group) SetResourceGroupName

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

func (*Group) SetStrategy

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

type Image

type Image struct {
	MarketPlace *MarketPlaceImage `json:"marketplace,omitempty"`
	Custom      *CustomImage      `json:"custom,omitempty"`
	// contains filtered or unexported fields
}

func (Image) MarshalJSON

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

func (*Image) SetCustom

func (o *Image) SetCustom(v *CustomImage) *Image

func (*Image) SetMarketPlaceImage

func (o *Image) SetMarketPlaceImage(v *MarketPlaceImage) *Image

type LaunchSpecification

type LaunchSpecification struct {
	Image                    *Image                    `json:"image,omitempty"`
	Network                  *Network                  `json:"network,omitempty"`
	Login                    *Login                    `json:"login,omitempty"`
	CustomData               *string                   `json:"customData,omitempty"`
	ManagedServiceIdentities []*ManagedServiceIdentity `json:"managedServiceIdentities,omitempty"`
	LoadBalancersConfig      *LoadBalancersConfig      `json:"loadBalancersConfig,omitempty"`
	ShutdownScript           *string                   `json:"shutdownScript,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecification) MarshalJSON

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

func (*LaunchSpecification) SetCustomData added in v1.100.0

func (o *LaunchSpecification) SetCustomData(v *string) *LaunchSpecification

func (*LaunchSpecification) SetImage

func (*LaunchSpecification) SetLoadBalancersConfig added in v1.106.0

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

func (*LaunchSpecification) SetLogin

func (*LaunchSpecification) SetManagedServiceIdentities added in v1.104.0

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

func (*LaunchSpecification) SetNetwork

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

func (*LaunchSpecification) SetShutdownScript added in v1.106.0

func (o *LaunchSpecification) SetShutdownScript(v *string) *LaunchSpecification

SetShutdownScript sets the shutdown script used when draining instances

type ListGroupsInput

type ListGroupsInput struct{}

type ListGroupsOutput

type ListGroupsOutput struct {
	Groups []*Group `json:"groups,omitempty"`
}

type LoadBalancer added in v1.106.0

type LoadBalancer struct {
	Type              *string  `json:"type,omitempty"`
	ResourceGroupName *string  `json:"resourceGroupName,omitempty"`
	Name              *string  `json:"name,omitempty"`
	SKU               *string  `json:"sku,omitempty"`
	BackendPoolNames  []string `json:"backendPoolNames,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancer) MarshalJSON added in v1.106.0

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

func (*LoadBalancer) SeBackendPoolNames added in v1.106.0

func (o *LoadBalancer) SeBackendPoolNames(v []string) *LoadBalancer

func (*LoadBalancer) SetName added in v1.106.0

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

func (*LoadBalancer) SetResourceGroupName added in v1.106.0

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

func (*LoadBalancer) SetSKU added in v1.106.0

func (o *LoadBalancer) SetSKU(v *string) *LoadBalancer

func (*LoadBalancer) SetType added in v1.106.0

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

type LoadBalancersConfig added in v1.106.0

type LoadBalancersConfig struct {
	LoadBalancers []*LoadBalancer `json:"loadBalancers,omitempty"`
	// contains filtered or unexported fields
}

func (LoadBalancersConfig) MarshalJSON added in v1.106.0

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

func (*LoadBalancersConfig) SetLoadBalancers added in v1.106.0

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

func (*Login) SetPassword

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

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.104.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.104.0

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

func (*ManagedServiceIdentity) SetName added in v1.104.0

func (*ManagedServiceIdentity) SetResourceGroupName added in v1.104.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 {
	VirtualNetworkName *string             `json:"virtualNetworkName,omitempty"`
	ResourceGroupName  *string             `json:"resourceGroupName,omitempty"`
	NetworkInterfaces  []*NetworkInterface `json:"networkInterfaces,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"`
	AdditionalIPConfigs       []*AdditionalIPConfig       `json:"additionalIpConfigurations,omitempty"`
	ApplicationSecurityGroups []*ApplicationSecurityGroup `json:"applicationSecurityGroups,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) SetApplicationSecurityGroups added in v1.90.0

func (o *NetworkInterface) SetApplicationSecurityGroups(v []*ApplicationSecurityGroup) *NetworkInterface

func (*NetworkInterface) SetAssignPublicIP

func (o *NetworkInterface) SetAssignPublicIP(v *bool) *NetworkInterface

func (*NetworkInterface) SetIsPrimary

func (o *NetworkInterface) SetIsPrimary(v *bool) *NetworkInterface

func (*NetworkInterface) SetSubnetName

func (o *NetworkInterface) SetSubnetName(v *string) *NetworkInterface

type ReadGroupInput

type ReadGroupInput struct {
	GroupID *string `json:"groupId,omitempty"`
}

type ReadGroupOutput

type ReadGroupOutput struct {
	Group *Group `json:"group,omitempty"`
}

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) Create

func (s *ServiceOp) Create(ctx context.Context, input *CreateGroupInput) (*CreateGroupOutput, error)

func (*ServiceOp) Delete

func (s *ServiceOp) Delete(ctx context.Context, input *DeleteGroupInput) (*DeleteGroupOutput, error)

func (*ServiceOp) List

func (*ServiceOp) Read

func (s *ServiceOp) Read(ctx context.Context, input *ReadGroupInput) (*ReadGroupOutput, error)

func (*ServiceOp) Update

func (s *ServiceOp) Update(ctx context.Context, input *UpdateGroupInput) (*UpdateGroupOutput, error)

type Strategy

type Strategy struct {
	OnDemandCount      *int  `json:"onDemandCount,omitempty"`
	DrainingTimeout    *int  `json:"drainingTimeout,omitempty"`
	SpotPercentage     *int  `json:"spotPercentage,omitempty"`
	FallbackToOnDemand *bool `json:"fallbackToOd,omitempty"`
	// contains filtered or unexported fields
}

func (Strategy) MarshalJSON

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

func (*Strategy) SetDrainingTimeout

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

func (*Strategy) SetFallbackToOnDemand

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

func (*Strategy) SetOnDemandCount

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

func (*Strategy) SetSpotPercentage

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

type UpdateGroupInput

type UpdateGroupInput struct {
	Group *Group `json:"group,omitempty"`
}

type UpdateGroupOutput

type UpdateGroupOutput struct {
	Group *Group `json:"group,omitempty"`
}

type VMSizes

type VMSizes struct {
	OnDemandSizes []string `json:"odSizes,omitempty"`
	SpotSizes     []string `json:"spotSizes,omitempty"`
	// contains filtered or unexported fields
}

func (VMSizes) MarshalJSON

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

func (*VMSizes) SetOnDemandSizes

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

func (*VMSizes) SetSpotSizes

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

Jump to

Keyboard shortcuts

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