gcp

package
v1.346.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessConfig

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

func (AccessConfig) MarshalJSON

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

func (*AccessConfig) SetName

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

func (*AccessConfig) SetType

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

type AliasIPRange

type AliasIPRange struct {
	IPCIDRRange         *string `json:"ipCidrRange,omitempty"`
	SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty"`
	// contains filtered or unexported fields
}

func (AliasIPRange) MarshalJSON

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

func (*AliasIPRange) SetIPCIDRRange

func (o *AliasIPRange) SetIPCIDRRange(v *string) *AliasIPRange

func (*AliasIPRange) SetSubnetworkRangeName

func (o *AliasIPRange) SetSubnetworkRangeName(v *string) *AliasIPRange

type AutoScale

type AutoScale struct {
	Headrooms              []*AutoScaleHeadroom `json:"headrooms,omitempty"`
	AutoHeadroomPercentage *int                 `json:"autoHeadroomPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (AutoScale) MarshalJSON

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

func (*AutoScale) SetAutoHeadroomPercentage added in v1.112.0

func (o *AutoScale) SetAutoHeadroomPercentage(v *int) *AutoScale

func (*AutoScale) SetHeadrooms

func (o *AutoScale) SetHeadrooms(v []*AutoScaleHeadroom) *AutoScale

type AutoScaleHeadroom

type AutoScaleHeadroom 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 (AutoScaleHeadroom) MarshalJSON

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

func (*AutoScaleHeadroom) SetCPUPerUnit

func (o *AutoScaleHeadroom) SetCPUPerUnit(v *int) *AutoScaleHeadroom

func (*AutoScaleHeadroom) SetGPUPerUnit

func (o *AutoScaleHeadroom) SetGPUPerUnit(v *int) *AutoScaleHeadroom

func (*AutoScaleHeadroom) SetMemoryPerUnit

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

func (*AutoScaleHeadroom) SetNumOfUnits

func (o *AutoScaleHeadroom) SetNumOfUnits(v *int) *AutoScaleHeadroom

type AutoScaler

type AutoScaler struct {
	IsEnabled                        *bool                     `json:"isEnabled,omitempty"`
	IsAutoConfig                     *bool                     `json:"isAutoConfig,omitempty"`
	Cooldown                         *int                      `json:"cooldown,omitempty"`
	AutoHeadroomPercentage           *int                      `json:"autoHeadroomPercentage,omitempty"`
	Headroom                         *AutoScalerHeadroom       `json:"headroom,omitempty"`
	ResourceLimits                   *AutoScalerResourceLimits `json:"resourceLimits,omitempty"`
	Down                             *AutoScalerDown           `json:"down,omitempty"`
	EnableAutomaticAndManualHeadroom *bool                     `json:"enableAutomaticAndManualHeadroom,omitempty"`
	// contains filtered or unexported fields
}

func (AutoScaler) MarshalJSON

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

func (*AutoScaler) SetAutoHeadroomPercentage added in v1.42.0

func (o *AutoScaler) SetAutoHeadroomPercentage(v *int) *AutoScaler

func (*AutoScaler) SetCooldown

func (o *AutoScaler) SetCooldown(v *int) *AutoScaler

func (*AutoScaler) SetDown

func (o *AutoScaler) SetDown(v *AutoScalerDown) *AutoScaler

func (*AutoScaler) SetEnableAutomaticAndManualHeadroom added in v1.108.0

func (o *AutoScaler) SetEnableAutomaticAndManualHeadroom(v *bool) *AutoScaler

func (*AutoScaler) SetHeadroom

func (o *AutoScaler) SetHeadroom(v *AutoScalerHeadroom) *AutoScaler

func (*AutoScaler) SetIsAutoConfig

func (o *AutoScaler) SetIsAutoConfig(v *bool) *AutoScaler

func (*AutoScaler) SetIsEnabled

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

func (*AutoScaler) SetResourceLimits

func (o *AutoScaler) SetResourceLimits(v *AutoScalerResourceLimits) *AutoScaler

type AutoScalerDown

type AutoScalerDown struct {
	EvaluationPeriods      *int     `json:"evaluationPeriods,omitempty"`
	MaxScaleDownPercentage *float64 `json:"maxScaleDownPercentage,omitempty"`
	// contains filtered or unexported fields
}

func (AutoScalerDown) MarshalJSON

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

func (*AutoScalerDown) SetEvaluationPeriods

func (o *AutoScalerDown) SetEvaluationPeriods(v *int) *AutoScalerDown

func (*AutoScalerDown) SetMaxScaleDownPercentage added in v1.44.1

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

type AutoScalerHeadroom

type AutoScalerHeadroom struct {
	CPUPerUnit    *int `json:"cpuPerUnit,omitempty"`
	MemoryPerUnit *int `json:"memoryPerUnit,omitempty"`
	NumOfUnits    *int `json:"numOfUnits,omitempty"`
	GPUPerUnit    *int `json:"gpuPerUnit,omitempty"`
	// contains filtered or unexported fields
}

func (AutoScalerHeadroom) MarshalJSON

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

func (*AutoScalerHeadroom) SetCPUPerUnit

func (o *AutoScalerHeadroom) SetCPUPerUnit(v *int) *AutoScalerHeadroom

func (*AutoScalerHeadroom) SetGPUPerUnit

func (o *AutoScalerHeadroom) SetGPUPerUnit(v *int) *AutoScalerHeadroom

SetGPUPerUnit sets the gpu per unit

func (*AutoScalerHeadroom) SetMemoryPerUnit

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

func (*AutoScalerHeadroom) SetNumOfUnits

func (o *AutoScalerHeadroom) SetNumOfUnits(v *int) *AutoScalerHeadroom

type AutoScalerResourceLimits

type AutoScalerResourceLimits struct {
	MaxVCPU      *int `json:"maxVCpu,omitempty"`
	MaxMemoryGiB *int `json:"maxMemoryGib,omitempty"`
	// contains filtered or unexported fields
}

func (AutoScalerResourceLimits) MarshalJSON

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

func (*AutoScalerResourceLimits) SetMaxMemoryGiB

func (o *AutoScalerResourceLimits) SetMaxMemoryGiB(v *int) *AutoScalerResourceLimits

func (*AutoScalerResourceLimits) SetMaxVCPU

type BackendService

type BackendService struct {
	BackendServiceName *string     `json:"backendServiceName,omitempty"`
	LocationType       *string     `json:"locationType,omitempty"`
	Scheme             *string     `json:"scheme,omitempty"`
	NamedPorts         *NamedPorts `json:"namedPorts,omitempty"`
	// contains filtered or unexported fields
}

func (BackendService) MarshalJSON

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

func (*BackendService) SetBackendServiceName

func (o *BackendService) SetBackendServiceName(v *string) *BackendService

func (*BackendService) SetLocationType

func (o *BackendService) SetLocationType(v *string) *BackendService

func (*BackendService) SetNamedPorts

func (o *BackendService) SetNamedPorts(v *NamedPorts) *BackendService

func (*BackendService) SetScheme

func (o *BackendService) SetScheme(v *string) *BackendService

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 Cluster

type Cluster struct {
	ID                  *string     `json:"id,omitempty"`
	ControllerClusterID *string     `json:"controllerClusterId,omitempty"`
	Name                *string     `json:"name,omitempty"`
	Scheduling          *Scheduling `json:"scheduling,omitempty"`
	AutoScaler          *AutoScaler `json:"autoScaler,omitempty"`
	Capacity            *Capacity   `json:"capacity,omitempty"`
	Compute             *Compute    `json:"compute,omitempty"`
	Strategy            *Strategy   `json:"strategy,omitempty"`
	GKE                 *GKE        `json:"gke,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) SetAutoScaler

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

func (*Cluster) SetCapacity

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

func (*Cluster) SetCompute

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

func (*Cluster) SetControllerClusterId

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

func (*Cluster) SetGKE

func (o *Cluster) SetGKE(v *GKE) *Cluster

func (*Cluster) SetId

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

func (*Cluster) SetName

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

func (*Cluster) SetScheduling added in v1.41.0

func (o *Cluster) SetScheduling(v *Scheduling) *Cluster

func (*Cluster) SetStrategy

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

type ClusterRoll added in v1.154.0

type ClusterRoll struct {
	BatchMinHealthyPercentage *int    `json:"batchMinHealthyPercentage,omitempty"`
	BatchSizePercentage       *int    `json:"batchSizePercentage,omitempty"`
	Comment                   *string `json:"comment,omitempty"`
	RespectPdb                *bool   `json:"respectPdb,omitempty"`
	// contains filtered or unexported fields
}

func (ClusterRoll) MarshalJSON added in v1.154.0

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

func (*ClusterRoll) SetBatchMinHealthyPercentage added in v1.154.0

func (o *ClusterRoll) SetBatchMinHealthyPercentage(v *int) *ClusterRoll

func (*ClusterRoll) SetBatchSizePercentage added in v1.154.0

func (o *ClusterRoll) SetBatchSizePercentage(v *int) *ClusterRoll

func (*ClusterRoll) SetComment added in v1.154.0

func (o *ClusterRoll) SetComment(v *string) *ClusterRoll

func (*ClusterRoll) SetRespectPdb added in v1.154.0

func (o *ClusterRoll) SetRespectPdb(v *bool) *ClusterRoll

type Compute

type Compute struct {
	AvailabilityZones   []string             `json:"availabilityZones,omitempty"`
	InstanceTypes       *InstanceTypes       `json:"instanceTypes,omitempty"`
	LaunchSpecification *LaunchSpecification `json:"launchSpecification,omitempty"`
	BackendServices     []*BackendService    `json:"backendServices,omitempty"`
	NetworkInterfaces   []*NetworkInterface  `json:"networkInterfaces,omitempty"`
	SubnetName          *string              `json:"subnetName,omitempty"`
	// contains filtered or unexported fields
}

func (Compute) MarshalJSON

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

func (*Compute) SetAvailabilityZones

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

func (*Compute) SetBackendServices

func (c *Compute) SetBackendServices(v []*BackendService) *Compute

func (*Compute) SetInstanceTypes

func (o *Compute) SetInstanceTypes(v *InstanceTypes) *Compute

func (*Compute) SetLaunchSpecification

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

func (*Compute) SetNetworkInterfaces

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

func (*Compute) SetSubnetName

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

type CreateClusterInput

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

type CreateClusterOutput

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

type CreateLaunchSpecInput

type CreateLaunchSpecInput struct {
	LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}

type CreateLaunchSpecOutput

type CreateLaunchSpecOutput struct {
	LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}

type CreateRollInput added in v1.100.0

type CreateRollInput struct {
	Roll *RollSpec `json:"roll,omitempty"`
}

type CreateRollOutput added in v1.100.0

type CreateRollOutput struct {
	Roll *RollStatus `json:"roll,omitempty"`
}

type DeleteClusterInput

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

type DeleteClusterOutput

type DeleteClusterOutput struct{}

type DeleteLaunchSpecInput

type DeleteLaunchSpecInput struct {
	LaunchSpecID *string `json:"launchSpecId,omitempty"`
}

type DeleteLaunchSpecOutput

type DeleteLaunchSpecOutput struct{}

type GKE

type GKE struct {
	ClusterName    *string `json:"clusterName,omitempty"`
	MasterLocation *string `json:"masterLocation,omitempty"`
	// contains filtered or unexported fields
}

func (GKE) MarshalJSON

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

func (*GKE) SetClusterName

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

func (*GKE) SetMasterLocation

func (o *GKE) SetMasterLocation(v *string) *GKE

type GKELaunchSpecScheduling added in v1.105.0

type GKELaunchSpecScheduling struct {
	Tasks []*GKELaunchSpecTask `json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (GKELaunchSpecScheduling) MarshalJSON added in v1.105.0

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

func (*GKELaunchSpecScheduling) SetTasks added in v1.105.0

type GKELaunchSpecTask added in v1.105.0

type GKELaunchSpecTask struct {
	IsEnabled      *bool          `json:"isEnabled,omitempty"`
	CronExpression *string        `json:"cronExpression,omitempty"`
	TaskType       *string        `json:"taskType,omitempty"`
	Config         *GKETaskConfig `json:"config,omitempty"`
	// contains filtered or unexported fields
}

func (GKELaunchSpecTask) MarshalJSON added in v1.105.0

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

func (*GKELaunchSpecTask) SetCronExpression added in v1.105.0

func (o *GKELaunchSpecTask) SetCronExpression(v *string) *GKELaunchSpecTask

func (*GKELaunchSpecTask) SetIsEnabled added in v1.105.0

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

func (*GKELaunchSpecTask) SetTaskConfig added in v1.105.0

func (o *GKELaunchSpecTask) SetTaskConfig(v *GKETaskConfig) *GKELaunchSpecTask

func (*GKELaunchSpecTask) SetTaskType added in v1.105.0

func (o *GKELaunchSpecTask) SetTaskType(v *string) *GKELaunchSpecTask

type GKELaunchSpecTaskHeadroom added in v1.105.0

type GKELaunchSpecTaskHeadroom 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 (GKELaunchSpecTaskHeadroom) MarshalJSON added in v1.105.0

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

func (*GKELaunchSpecTaskHeadroom) SetCPUPerUnit added in v1.105.0

func (*GKELaunchSpecTaskHeadroom) SetGPUPerUnit added in v1.105.0

func (*GKELaunchSpecTaskHeadroom) SetMemoryPerUnit added in v1.105.0

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

func (*GKELaunchSpecTaskHeadroom) SetNumOfUnits added in v1.105.0

type GKETaskConfig added in v1.105.0

type GKETaskConfig struct {
	TaskHeadrooms []*GKELaunchSpecTaskHeadroom `json:"headrooms,omitempty"`
	// contains filtered or unexported fields
}

func (GKETaskConfig) MarshalJSON added in v1.105.0

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

func (*GKETaskConfig) SetHeadrooms added in v1.105.0

func (o *GKETaskConfig) SetHeadrooms(v []*GKELaunchSpecTaskHeadroom) *GKETaskConfig

type ImportOceanGKECluster

type ImportOceanGKECluster struct {
	InstanceTypes   *InstanceTypes    `json:"instanceTypes,omitempty"`
	BackendServices []*BackendService `json:"backendServices,omitempty"`
	// contains filtered or unexported fields
}

type ImportOceanGKEClusterInput

type ImportOceanGKEClusterInput struct {
	ClusterName        *string                `json:"clusterName,omitempty"`
	Location           *string                `json:"location,omitempty"`
	NodePoolName       *string                `json:"nodePoolName,omitempty"`
	IncludeLaunchSpecs *string                `json:"includeLaunchSpecs,omitempty"`
	Cluster            *ImportOceanGKECluster `json:"cluster,omitempty"`
}

type ImportOceanGKEClusterOutput

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

type ImportOceanGKELaunchSpecInput

type ImportOceanGKELaunchSpecInput struct {
	OceanId      *string `json:"oceanId,omitempty"`
	NodePoolName *string `json:"nodePoolName,omitempty"`
}

type ImportOceanGKELaunchSpecOutput

type ImportOceanGKELaunchSpecOutput struct {
	LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}

TODO: Might use LaunchSpec directly

type InstanceTypes

type InstanceTypes struct {
	Whitelist []string `json:"whitelist,omitempty"`
	Blacklist []string `json:"blacklist,omitempty"`
	// contains filtered or unexported fields
}

func (InstanceTypes) MarshalJSON

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

func (*InstanceTypes) SetBlacklist added in v1.124.0

func (o *InstanceTypes) SetBlacklist(v []string) *InstanceTypes

func (*InstanceTypes) SetWhitelist

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

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 LaunchSpec

type LaunchSpec struct {
	ID                          *string                        `json:"id,omitempty"`
	Name                        *string                        `json:"name,omitempty"`
	OceanID                     *string                        `json:"oceanId,omitempty"`
	SourceImage                 *string                        `json:"sourceImage,omitempty"`
	Metadata                    []*Metadata                    `json:"metadata,omitempty"`
	Labels                      []*Label                       `json:"labels,omitempty"`
	Taints                      []*Taint                       `json:"taints,omitempty"`
	AutoScale                   *AutoScale                     `json:"autoScale,omitempty"`
	RestrictScaleDown           *bool                          `json:"restrictScaleDown,omitempty"`
	Strategy                    *LaunchSpecStrategy            `json:"strategy,omitempty"`
	RootVolumeSizeInGB          *int                           `json:"rootVolumeSizeInGb,omitempty"`
	RootVolumeType              *string                        `json:"rootVolumeType,omitempty"`
	ShieldedInstanceConfig      *ShieldedInstanceConfig        `json:"shieldedInstanceConfig,omitempty"`
	ServiceAccount              *string                        `json:"serviceAccount,omitempty"`
	InstanceTypes               []string                       `json:"instanceTypes,omitempty"`
	Storage                     *Storage                       `json:"storage,omitempty"`
	ResourceLimits              *ResourceLimits                `json:"resourceLimits,omitempty"`
	LaunchSpecScheduling        *GKELaunchSpecScheduling       `json:"scheduling,omitempty"`
	LaunchSpecTags              []string                       `json:"tags,omitempty"`
	LaunchSpecNetworkInterfaces []*LaunchSpecNetworkInterfaces `json:"networkInterfaces,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpec) MarshalJSON

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

func (*LaunchSpec) SetAutoScale

func (o *LaunchSpec) SetAutoScale(v *AutoScale) *LaunchSpec

func (*LaunchSpec) SetId

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

func (*LaunchSpec) SetInstanceTypes added in v1.94.0

func (o *LaunchSpec) SetInstanceTypes(v []string) *LaunchSpec

func (*LaunchSpec) SetLabels

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

func (*LaunchSpec) SetLaunchSpecNetworkInterfaces added in v1.159.0

func (o *LaunchSpec) SetLaunchSpecNetworkInterfaces(v []*LaunchSpecNetworkInterfaces) *LaunchSpec

func (*LaunchSpec) SetLaunchSpecTags added in v1.121.0

func (o *LaunchSpec) SetLaunchSpecTags(v []string) *LaunchSpec

func (*LaunchSpec) SetMetadata

func (o *LaunchSpec) SetMetadata(v []*Metadata) *LaunchSpec

func (*LaunchSpec) SetName added in v1.91.0

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

func (*LaunchSpec) SetOceanId

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

func (*LaunchSpec) SetResourceLimits added in v1.97.0

func (o *LaunchSpec) SetResourceLimits(v *ResourceLimits) *LaunchSpec

func (*LaunchSpec) SetRestrictScaleDown added in v1.77.0

func (o *LaunchSpec) SetRestrictScaleDown(v *bool) *LaunchSpec

func (*LaunchSpec) SetRootVolumeSizeInGB added in v1.91.0

func (o *LaunchSpec) SetRootVolumeSizeInGB(v *int) *LaunchSpec

func (*LaunchSpec) SetRootVolumeType added in v1.91.0

func (o *LaunchSpec) SetRootVolumeType(v *string) *LaunchSpec

func (*LaunchSpec) SetScheduling added in v1.105.0

func (o *LaunchSpec) SetScheduling(v *GKELaunchSpecScheduling) *LaunchSpec

func (*LaunchSpec) SetServiceAccount added in v1.91.0

func (o *LaunchSpec) SetServiceAccount(v *string) *LaunchSpec

func (*LaunchSpec) SetShieldedInstanceConfig added in v1.91.0

func (o *LaunchSpec) SetShieldedInstanceConfig(v *ShieldedInstanceConfig) *LaunchSpec

func (*LaunchSpec) SetSourceImage

func (o *LaunchSpec) SetSourceImage(v *string) *LaunchSpec

func (*LaunchSpec) SetStorage added in v1.97.0

func (o *LaunchSpec) SetStorage(v *Storage) *LaunchSpec

func (*LaunchSpec) SetStrategy added in v1.88.0

func (o *LaunchSpec) SetStrategy(v *LaunchSpecStrategy) *LaunchSpec

func (*LaunchSpec) SetTaints

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

type LaunchSpecAccessConfigs added in v1.159.0

type LaunchSpecAccessConfigs struct {
	LaunchSpecAccessConfigsName *string `json:"name,omitempty"`
	Type                        *string `json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecAccessConfigs) MarshalJSON added in v1.159.0

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

func (*LaunchSpecAccessConfigs) SetLaunchSpecAccessConfigsName added in v1.159.0

func (o *LaunchSpecAccessConfigs) SetLaunchSpecAccessConfigsName(v *string) *LaunchSpecAccessConfigs

func (*LaunchSpecAccessConfigs) SetType added in v1.159.0

type LaunchSpecAliasIPRanges added in v1.159.0

type LaunchSpecAliasIPRanges struct {
	IPCidrRange         *string `json:"ipCidrRange,omitempty"`
	SubnetworkRangeName *string `json:"subnetworkRangeName,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecAliasIPRanges) MarshalJSON added in v1.159.0

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

func (*LaunchSpecAliasIPRanges) SetIPCidrRange added in v1.159.0

func (*LaunchSpecAliasIPRanges) SetSubnetworkRangeName added in v1.159.0

func (o *LaunchSpecAliasIPRanges) SetSubnetworkRangeName(v *string) *LaunchSpecAliasIPRanges

type LaunchSpecNetworkInterfaces added in v1.159.0

type LaunchSpecNetworkInterfaces struct {
	LaunchSpecAccessConfigs []*LaunchSpecAccessConfigs `json:"accessConfigs,omitempty"`
	LaunchSpecAliasIPRanges []*LaunchSpecAliasIPRanges `json:"aliasIpRanges,omitempty"`
	Network                 *string                    `json:"network,omitempty"`
	ProjectID               *string                    `json:"projectId,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecNetworkInterfaces) MarshalJSON added in v1.159.0

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

func (*LaunchSpecNetworkInterfaces) SetLaunchSpecAccessConfigs added in v1.159.0

func (*LaunchSpecNetworkInterfaces) SetLaunchSpecAliasIPRanges added in v1.159.0

func (*LaunchSpecNetworkInterfaces) SetNetwork added in v1.159.0

func (*LaunchSpecNetworkInterfaces) SetProjectId added in v1.159.0

type LaunchSpecShieldedInstanceConfig added in v1.113.0

type LaunchSpecShieldedInstanceConfig struct {
	EnableSecureBoot          *bool `json:"enableSecureBoot,omitempty"`
	EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecShieldedInstanceConfig) MarshalJSON added in v1.113.0

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

func (*LaunchSpecShieldedInstanceConfig) SetEnableIntegrityMonitoring added in v1.113.0

func (o *LaunchSpecShieldedInstanceConfig) SetEnableIntegrityMonitoring(v *bool) *LaunchSpecShieldedInstanceConfig

func (*LaunchSpecShieldedInstanceConfig) SetEnableSecureBoot added in v1.113.0

type LaunchSpecStrategy added in v1.88.0

type LaunchSpecStrategy struct {
	PreemptiblePercentage *int `json:"preemptiblePercentage,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecStrategy) MarshalJSON added in v1.88.0

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

func (*LaunchSpecStrategy) SetPreemptiblePercentage added in v1.88.0

func (o *LaunchSpecStrategy) SetPreemptiblePercentage(v *int) *LaunchSpecStrategy

type LaunchSpecification

type LaunchSpecification struct {
	Labels                 []*Label                          `json:"labels,omitempty"`
	IPForwarding           *bool                             `json:"ipForwarding,omitempty"`
	Metadata               []*Metadata                       `json:"metadata,omitempty"`
	RootVolumeSizeInGB     *int                              `json:"rootVolumeSizeInGb,omitempty"`
	ServiceAccount         *string                           `json:"serviceAccount,omitempty"`
	SourceImage            *string                           `json:"sourceImage,omitempty"`
	Tags                   []string                          `json:"tags,omitempty"`
	RootVolumeType         *string                           `json:"rootVolumeType,omitempty"`
	ShieldedInstanceConfig *LaunchSpecShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"`
	UseAsTemplateOnly      *bool                             `json:"useAsTemplateOnly,omitempty"`
	// contains filtered or unexported fields
}

func (LaunchSpecification) MarshalJSON

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

func (*LaunchSpecification) SetIPForwarding

func (o *LaunchSpecification) SetIPForwarding(v *bool) *LaunchSpecification

func (*LaunchSpecification) SetLabels

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

func (*LaunchSpecification) SetMetadata

func (o *LaunchSpecification) SetMetadata(v []*Metadata) *LaunchSpecification

func (*LaunchSpecification) SetRootVolumeSizeInGB

func (o *LaunchSpecification) SetRootVolumeSizeInGB(v *int) *LaunchSpecification

func (*LaunchSpecification) SetRootVolumeType added in v1.96.0

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

func (*LaunchSpecification) SetServiceAccount

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

func (*LaunchSpecification) SetShieldedInstanceConfig added in v1.113.0

func (*LaunchSpecification) SetSourceImage

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

func (*LaunchSpecification) SetTags

func (*LaunchSpecification) SetUseAsTemplateOnly added in v1.121.0

func (o *LaunchSpecification) SetUseAsTemplateOnly(v *bool) *LaunchSpecification

type ListClustersInput

type ListClustersInput struct{}

type ListClustersOutput

type ListClustersOutput struct {
	Clusters []*Cluster `json:"clusters,omitempty"`
}

type ListLaunchSpecsInput

type ListLaunchSpecsInput struct {
	OceanID *string `json:"oceanId,omitempty"`
}

type ListLaunchSpecsOutput

type ListLaunchSpecsOutput struct {
	LaunchSpecs []*LaunchSpec `json:"launchSpecs,omitempty"`
}

type Metadata

type Metadata struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (Metadata) MarshalJSON

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

func (*Metadata) SetKey

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

func (*Metadata) SetValue

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

type NamedPorts

type NamedPorts struct {
	Name  *string `json:"name,omitempty"`
	Ports []int   `json:"ports,omitempty"`
	// contains filtered or unexported fields
}

func (NamedPorts) MarshalJSON

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

func (*NamedPorts) SetName

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

SetNamedPorts sets the name of the NamedPorts

func (*NamedPorts) SetPorts

func (o *NamedPorts) SetPorts(v []int) *NamedPorts

type NetworkInterface

type NetworkInterface struct {
	AccessConfigs []*AccessConfig `json:"accessConfigs,omitempty"`
	AliasIPRanges []*AliasIPRange `json:"aliasIpRanges,omitempty"`
	Network       *string         `json:"network,omitempty"`
	ProjectID     *string         `json:"projectId,omitempty"`
	// contains filtered or unexported fields
}

func (NetworkInterface) MarshalJSON

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

func (*NetworkInterface) SetAccessConfigs

func (o *NetworkInterface) SetAccessConfigs(v []*AccessConfig) *NetworkInterface

func (*NetworkInterface) SetAliasIPRanges

func (o *NetworkInterface) SetAliasIPRanges(v []*AliasIPRange) *NetworkInterface

func (*NetworkInterface) SetNetwork

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

func (*NetworkInterface) SetProjectId added in v1.46.0

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

type Parameters added in v1.154.0

type Parameters struct {
	ClusterRoll *ClusterRoll `json:"clusterRoll,omitempty"`
	// contains filtered or unexported fields
}

func (Parameters) MarshalJSON added in v1.154.0

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

func (*Parameters) SetClusterRoll added in v1.154.0

func (o *Parameters) SetClusterRoll(v *ClusterRoll) *Parameters

type Progress added in v1.100.0

type Progress struct {
	Unit  *string  `json:"unit,omitempty"`
	Value *float64 `json:"value,omitempty"`
}

type ReadClusterInput

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

type ReadClusterOutput

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

type ReadLaunchSpecInput

type ReadLaunchSpecInput struct {
	LaunchSpecID *string `json:"launchSpecId,omitempty"`
}

type ReadLaunchSpecOutput

type ReadLaunchSpecOutput struct {
	LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}

type ResourceLimits added in v1.97.0

type ResourceLimits struct {
	MaxInstanceCount *int `json:"maxInstanceCount,omitempty"`
	MinInstanceCount *int `json:"minInstanceCount,omitempty"`
	// contains filtered or unexported fields
}

func (ResourceLimits) MarshalJSON added in v1.97.0

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

func (*ResourceLimits) SetMaxInstanceCount added in v1.97.0

func (o *ResourceLimits) SetMaxInstanceCount(v *int) *ResourceLimits

func (*ResourceLimits) SetMinInstanceCount added in v1.102.0

func (o *ResourceLimits) SetMinInstanceCount(v *int) *ResourceLimits

type RollSpec added in v1.100.0

type RollSpec struct {
	ClusterID                 *string  `json:"clusterId,omitempty"`
	Comment                   *string  `json:"comment,omitempty"`
	BatchSizePercentage       *int     `json:"batchSizePercentage,omitempty"`
	BatchMinHealthyPercentage *int     `json:"batchMinHealthyPercentage,omitempty"`
	LaunchSpecIDs             []string `json:"launchSpecIds,omitempty"`
	InstanceNames             []string `json:"instanceNames,omitempty"`
	RespectPDB                *bool    `json:"respectPdb,omitempty"`
	// contains filtered or unexported fields
}

func (RollSpec) MarshalJSON added in v1.100.0

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

func (*RollSpec) SetBatchMinHealthyPercentage added in v1.115.0

func (o *RollSpec) SetBatchMinHealthyPercentage(v *int) *RollSpec

func (*RollSpec) SetBatchSizePercentage added in v1.100.0

func (o *RollSpec) SetBatchSizePercentage(v *int) *RollSpec

func (*RollSpec) SetComment added in v1.100.0

func (o *RollSpec) SetComment(v *string) *RollSpec

func (*RollSpec) SetInstanceNames added in v1.100.0

func (o *RollSpec) SetInstanceNames(v []string) *RollSpec

func (*RollSpec) SetLaunchSpecIDs added in v1.100.0

func (o *RollSpec) SetLaunchSpecIDs(v []string) *RollSpec

func (*RollSpec) SetRespectPDB added in v1.135.0

func (o *RollSpec) SetRespectPDB(v *bool) *RollSpec

type RollStatus added in v1.100.0

type RollStatus struct {
	RollID        *string    `json:"rollId,omitempty"`
	ClusterID     *string    `json:"oceanId,omitempty"`
	Comment       *string    `json:"comment,omitempty"`
	Status        *string    `json:"status,omitempty"`
	Progress      *Progress  `json:"progress,omitempty"`
	BatchNumber   *int       `json:"batchNumber,omitempty"`
	NumOfBatches  *int       `json:"numOfBatches,omitempty"`
	LaunchSpecIDs []string   `json:"launchSpecIds,omitempty"`
	InstanceNames []string   `json:"instanceNames,omitempty"`
	CreatedAt     *time.Time `json:"createdAt,omitempty"`
	UpdatedAt     *time.Time `json:"updatedAt,omitempty"`
}

type Scheduling added in v1.41.0

type Scheduling struct {
	ShutdownHours *ShutdownHours `json:"shutdownHours,omitempty"`
	Tasks         []*Task        `json:"tasks,omitempty"`
	// contains filtered or unexported fields
}

func (Scheduling) MarshalJSON added in v1.41.0

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

func (*Scheduling) SetShutdownHours added in v1.41.0

func (o *Scheduling) SetShutdownHours(v *ShutdownHours) *Scheduling

func (*Scheduling) SetTasks added in v1.41.0

func (o *Scheduling) SetTasks(v []*Task) *Scheduling

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

func (s *ServiceOp) CreateLaunchSpec(ctx context.Context, input *CreateLaunchSpecInput) (*CreateLaunchSpecOutput, error)

func (*ServiceOp) CreateRoll added in v1.100.0

func (s *ServiceOp) CreateRoll(ctx context.Context, input *CreateRollInput) (*CreateRollOutput, error)

func (*ServiceOp) DeleteCluster

func (s *ServiceOp) DeleteCluster(ctx context.Context, input *DeleteClusterInput) (*DeleteClusterOutput, error)

func (*ServiceOp) DeleteLaunchSpec

func (s *ServiceOp) DeleteLaunchSpec(ctx context.Context, input *DeleteLaunchSpecInput) (*DeleteLaunchSpecOutput, error)

func (*ServiceOp) ImportOceanGKECluster

func (s *ServiceOp) ImportOceanGKECluster(ctx context.Context, input *ImportOceanGKEClusterInput) (*ImportOceanGKEClusterOutput, error)

ImportOceanGKECluster imports an existing Ocean GKE cluster into Elastigroup.

func (*ServiceOp) ImportOceanGKELaunchSpec

func (s *ServiceOp) ImportOceanGKELaunchSpec(ctx context.Context, input *ImportOceanGKELaunchSpecInput) (*ImportOceanGKELaunchSpecOutput, error)

func (*ServiceOp) ListClusters

func (s *ServiceOp) ListClusters(ctx context.Context, input *ListClustersInput) (*ListClustersOutput, error)

func (*ServiceOp) ListLaunchSpecs

func (s *ServiceOp) ListLaunchSpecs(ctx context.Context, input *ListLaunchSpecsInput) (*ListLaunchSpecsOutput, error)

func (*ServiceOp) ReadCluster

func (s *ServiceOp) ReadCluster(ctx context.Context, input *ReadClusterInput) (*ReadClusterOutput, error)

func (*ServiceOp) ReadLaunchSpec

func (s *ServiceOp) ReadLaunchSpec(ctx context.Context, input *ReadLaunchSpecInput) (*ReadLaunchSpecOutput, error)

func (*ServiceOp) UpdateCluster

func (s *ServiceOp) UpdateCluster(ctx context.Context, input *UpdateClusterInput) (*UpdateClusterOutput, error)

func (*ServiceOp) UpdateLaunchSpec

func (s *ServiceOp) UpdateLaunchSpec(ctx context.Context, input *UpdateLaunchSpecInput) (*UpdateLaunchSpecOutput, error)

type ShieldedInstanceConfig added in v1.91.0

type ShieldedInstanceConfig struct {
	EnableSecureBoot          *bool `json:"enableSecureBoot,omitempty"`
	EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"`
	// contains filtered or unexported fields
}

func (ShieldedInstanceConfig) MarshalJSON added in v1.91.0

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

func (*ShieldedInstanceConfig) SetEnableIntegrityMonitoring added in v1.91.0

func (o *ShieldedInstanceConfig) SetEnableIntegrityMonitoring(v *bool) *ShieldedInstanceConfig

func (*ShieldedInstanceConfig) SetEnableSecureBoot added in v1.91.0

func (o *ShieldedInstanceConfig) SetEnableSecureBoot(v *bool) *ShieldedInstanceConfig

type ShutdownHours added in v1.41.0

type ShutdownHours struct {
	IsEnabled   *bool    `json:"isEnabled,omitempty"`
	TimeWindows []string `json:"timeWindows,omitempty"`
	// contains filtered or unexported fields
}

func (ShutdownHours) MarshalJSON added in v1.41.0

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

func (*ShutdownHours) SetIsEnabled added in v1.41.0

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

func (*ShutdownHours) SetTimeWindows added in v1.41.0

func (o *ShutdownHours) SetTimeWindows(v []string) *ShutdownHours

type Storage added in v1.97.0

type Storage struct {
	LocalSSDCount *int `json:"localSsdCount,omitempty"`
	// contains filtered or unexported fields
}

func (Storage) MarshalJSON added in v1.97.0

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

func (*Storage) SetLocalSSDCount added in v1.97.0

func (o *Storage) SetLocalSSDCount(v *int) *Storage

type Strategy

type Strategy struct {
	DrainingTimeout       *int    `json:"drainingTimeout,omitempty"`
	ProvisioningModel     *string `json:"provisioningModel,omitempty"`
	PreemptiblePercentage *int    `json:"preemptiblePercentage,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) SetPreemptiblePercentage added in v1.116.0

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

func (*Strategy) SetProvisioningModel added in v1.111.0

func (o *Strategy) SetProvisioningModel(v *string) *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 Task added in v1.41.0

type Task struct {
	IsEnabled      *bool       `json:"isEnabled,omitempty"`
	Type           *string     `json:"taskType,omitempty"`
	CronExpression *string     `json:"cronExpression,omitempty"`
	Parameters     *Parameters `json:"parameters,omitempty"`
	// contains filtered or unexported fields
}

func (Task) MarshalJSON added in v1.41.0

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

func (*Task) SetCronExpression added in v1.41.0

func (o *Task) SetCronExpression(v *string) *Task

func (*Task) SetIsEnabled added in v1.41.0

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

func (*Task) SetParameters added in v1.154.0

func (o *Task) SetParameters(v *Parameters) *Task

func (*Task) SetType added in v1.41.0

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

type UpdateClusterInput

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

type UpdateClusterOutput

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

type UpdateLaunchSpecInput

type UpdateLaunchSpecInput struct {
	LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}

type UpdateLaunchSpecOutput

type UpdateLaunchSpecOutput struct {
	LaunchSpec *LaunchSpec `json:"launchSpec,omitempty"`
}

Jump to

Keyboard shortcuts

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