core

package
v0.0.0-...-2b2f647 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASG

type ASG struct {
	types.AutoScalingGroup

	HourlyCosts         float64
	ProjectedCosts      float64
	ProjectedSavings    float64
	InstanceTypes       []string
	SpotInstanceNumber  int
	SpotInstancePercent int

	Enabled                         bool
	OnDemandNumber                  int64
	OnDemandPercentage              float64
	OnDemandPercentageEntry         *widget.Entry
	OnDemandNumberEntry             *widget.Entry
	ConvertToSpotCheck              *widget.Check
	EnabledTagExistedInitially      bool
	ODNumberTagExistedInitially     bool
	ODPercentageTagExistedInitially bool
	// contains filtered or unexported fields
}

func (*ASG) CalculateHourlyPricing

func (asg *ASG) CalculateHourlyPricing() error

type AutoSpotting

type AutoSpotting struct {
	ASGs []*ASG

	OverrideOnDemandPercentage int64
	OverrideOnDemandNumber     int64
	OverrideSpotConversion     bool
	// contains filtered or unexported fields
}

func (*AutoSpotting) LoadASGData

func (a *AutoSpotting) LoadASGData() error

type Launcher

type Launcher struct {
	Regions                   map[string]*Region
	CurrentRegion             string
	GlobalServices            *globalServices
	Connected                 bool
	InstanceTypeData          *ec2instancesinfo.InstanceData
	PricingIntervalMultiplier float64

	AutoSpottingCurrentTotalMonthlyCosts     binding.String
	AutoSpottingProjectedMonthlyCosts        binding.String
	AutoSpottingProjectedSpotSavings         binding.String
	AutoSpottingProjectedSpotSavingsPercent  binding.String
	AutoSpottingProjectedAutoSpottingCharges binding.String
	AutoSpottingProjectedNetSavings          binding.String
}

func (*Launcher) AWSRegions

func (c *Launcher) AWSRegions() []string

TODO: remove the hardcoded region list

func (*Launcher) ApplyAutoSpottingTags

func (c *Launcher) ApplyAutoSpottingTags()

func (*Launcher) Connect

func (c *Launcher) Connect(configOption config.LoadOptionsFunc)

func (*Launcher) ConnectWithProfileAuth

func (c *Launcher) ConnectWithProfileAuth(profile string)

func (*Launcher) ConnectWithStaticAuth

func (c *Launcher) ConnectWithStaticAuth(key, secret, token string)

func (*Launcher) ReadAWSProfiles

func (c *Launcher) ReadAWSProfiles() []string

func (*Launcher) SetPricingInterval

func (c *Launcher) SetPricingInterval(s string)

func (*Launcher) SetRegion

func (c *Launcher) SetRegion(region string)

func (*Launcher) UpdateAutoSpottingTotals

func (c *Launcher) UpdateAutoSpottingTotals(region string)

type Region

type Region struct {
	AutoSpotting *AutoSpotting
	Launcher     *Launcher
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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