spotinsttasks

package
v0.0.0-...-6060be6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScalerDownOpts

type AutoScalerDownOpts struct {
	MaxPercentage     *int
	EvaluationPeriods *int
}

type AutoScalerHeadroomOpts

type AutoScalerHeadroomOpts struct {
	CPUPerUnit *int
	GPUPerUnit *int
	MemPerUnit *int
	NumOfUnits *int
}

type AutoScalerOpts

type AutoScalerOpts struct {
	Enabled   *bool
	ClusterID *string
	Labels    map[string]string
	Headroom  *AutoScalerHeadroomOpts
	Down      *AutoScalerDownOpts
}

type Elastigroup

type Elastigroup struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	ID                       *string
	MinSize                  *int64
	MaxSize                  *int64
	SpotPercentage           *float64
	UtilizeReservedInstances *bool
	FallbackToOnDemand       *bool
	HealthCheckType          *string
	Product                  *string
	Orientation              *string
	Tags                     map[string]string
	UserData                 *fi.ResourceHolder
	ImageID                  *string
	OnDemandInstanceType     *string
	SpotInstanceTypes        []string
	IAMInstanceProfile       *awstasks.IAMInstanceProfile
	LoadBalancer             *awstasks.LoadBalancer
	SSHKey                   *awstasks.SSHKey
	Subnets                  []*awstasks.Subnet
	SecurityGroups           []*awstasks.SecurityGroup
	Monitoring               *bool
	AssociatePublicIP        *bool
	Tenancy                  *string
	RootVolumeOpts           *RootVolumeOpts
	AutoScalerOpts           *AutoScalerOpts
}

func (*Elastigroup) CheckChanges

func (s *Elastigroup) CheckChanges(a, e, changes *Elastigroup) error

func (*Elastigroup) CheckExisting

func (e *Elastigroup) CheckExisting(c *fi.Context) bool

func (*Elastigroup) CompareWithID

func (e *Elastigroup) CompareWithID() *string

func (*Elastigroup) Find

func (e *Elastigroup) Find(c *fi.Context) (*Elastigroup, error)

func (*Elastigroup) GetDependencies

func (e *Elastigroup) GetDependencies(tasks map[string]fi.Task) []fi.Task

func (*Elastigroup) GetLifecycle

func (o *Elastigroup) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Elastigroup) GetName

func (o *Elastigroup) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Elastigroup) RenderAWS

func (eg *Elastigroup) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Elastigroup) error

func (*Elastigroup) RenderTerraform

func (_ *Elastigroup) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Elastigroup) error

func (*Elastigroup) Run

func (e *Elastigroup) Run(c *fi.Context) error

func (*Elastigroup) SetLifecycle

func (o *Elastigroup) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Elastigroup) SetName

func (o *Elastigroup) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Elastigroup) String

func (o *Elastigroup) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (e *Elastigroup) TerraformLink() *terraform.Literal

func (*Elastigroup) UnmarshalJSON

func (o *Elastigroup) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type LaunchSpec

type LaunchSpec struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	ID                 *string
	UserData           *fi.ResourceHolder
	SecurityGroups     []*awstasks.SecurityGroup
	IAMInstanceProfile *awstasks.IAMInstanceProfile
	ImageID            *string
	Labels             map[string]string

	Ocean *Ocean
}

func (*LaunchSpec) CheckChanges

func (s *LaunchSpec) CheckChanges(a, e, changes *LaunchSpec) error

func (*LaunchSpec) CheckExisting

func (o *LaunchSpec) CheckExisting(c *fi.Context) bool

func (*LaunchSpec) CompareWithID

func (o *LaunchSpec) CompareWithID() *string

func (*LaunchSpec) Find

func (o *LaunchSpec) Find(c *fi.Context) (*LaunchSpec, error)

func (*LaunchSpec) GetDependencies

func (o *LaunchSpec) GetDependencies(tasks map[string]fi.Task) []fi.Task

func (*LaunchSpec) GetLifecycle

func (o *LaunchSpec) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*LaunchSpec) GetName

func (o *LaunchSpec) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*LaunchSpec) RenderAWS

func (o *LaunchSpec) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *LaunchSpec) error

func (*LaunchSpec) RenderTerraform

func (_ *LaunchSpec) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *LaunchSpec) error

func (*LaunchSpec) Run

func (o *LaunchSpec) Run(c *fi.Context) error

func (*LaunchSpec) SetLifecycle

func (o *LaunchSpec) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*LaunchSpec) SetName

func (o *LaunchSpec) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*LaunchSpec) String

func (o *LaunchSpec) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (o *LaunchSpec) TerraformLink() *terraform.Literal

func (*LaunchSpec) UnmarshalJSON

func (o *LaunchSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Ocean

type Ocean struct {
	Name      *string
	Lifecycle *fi.Lifecycle

	ID                       *string
	MinSize                  *int64
	MaxSize                  *int64
	SpotPercentage           *float64
	UtilizeReservedInstances *bool
	FallbackToOnDemand       *bool
	InstanceTypes            []string
	Tags                     map[string]string
	UserData                 *fi.ResourceHolder
	ImageID                  *string
	IAMInstanceProfile       *awstasks.IAMInstanceProfile
	SSHKey                   *awstasks.SSHKey
	Subnets                  []*awstasks.Subnet
	SecurityGroups           []*awstasks.SecurityGroup
	Monitoring               *bool
	AssociatePublicIP        *bool
	RootVolumeOpts           *RootVolumeOpts
	AutoScalerOpts           *AutoScalerOpts
}

func (*Ocean) CheckChanges

func (s *Ocean) CheckChanges(a, e, changes *Ocean) error

func (*Ocean) CheckExisting

func (o *Ocean) CheckExisting(c *fi.Context) bool

func (*Ocean) CompareWithID

func (o *Ocean) CompareWithID() *string

func (*Ocean) Find

func (o *Ocean) Find(c *fi.Context) (*Ocean, error)

func (*Ocean) GetDependencies

func (o *Ocean) GetDependencies(tasks map[string]fi.Task) []fi.Task

func (*Ocean) GetLifecycle

func (o *Ocean) GetLifecycle() *fi.Lifecycle

GetLifecycle returns the Lifecycle of the object, implementing fi.HasLifecycle

func (*Ocean) GetName

func (o *Ocean) GetName() *string

GetName returns the Name of the object, implementing fi.HasName

func (*Ocean) RenderAWS

func (o *Ocean) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *Ocean) error

func (*Ocean) RenderTerraform

func (_ *Ocean) RenderTerraform(t *terraform.TerraformTarget, a, e, changes *Ocean) error

func (*Ocean) Run

func (o *Ocean) Run(c *fi.Context) error

func (*Ocean) SetLifecycle

func (o *Ocean) SetLifecycle(lifecycle fi.Lifecycle)

SetLifecycle sets the Lifecycle of the object, implementing fi.SetLifecycle

func (*Ocean) SetName

func (o *Ocean) SetName(name string)

SetName sets the Name of the object, implementing fi.SetName

func (*Ocean) String

func (o *Ocean) String() string

String is the stringer function for the task, producing readable output using fi.TaskAsString

func (o *Ocean) TerraformLink() *terraform.Literal

func (*Ocean) UnmarshalJSON

func (o *Ocean) UnmarshalJSON(data []byte) error

UnmarshalJSON implements conversion to JSON, supporting an alternate specification of the object as a string

type Orientation

type Orientation string
const (
	OrientationBalanced              Orientation = "balanced"
	OrientationCost                  Orientation = "costOriented"
	OrientationAvailability          Orientation = "availabilityOriented"
	OrientationEqualZoneDistribution Orientation = "equalAzDistribution"
)

type RootVolumeOpts

type RootVolumeOpts struct {
	Type         *string
	Size         *int32
	IOPS         *int32
	Optimization *bool
}

Jump to

Keyboard shortcuts

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