Documentation
¶
Index ¶
- type ASG
- type AutoSpotting
- type Launcher
- func (c *Launcher) AWSRegions() []string
- func (c *Launcher) ApplyAutoSpottingTags()
- func (c *Launcher) Connect(configOption config.LoadOptionsFunc)
- func (c *Launcher) ConnectWithProfileAuth(profile string)
- func (c *Launcher) ConnectWithStaticAuth(key, secret, token string)
- func (c *Launcher) ReadAWSProfiles() []string
- func (c *Launcher) SetPricingInterval(s string)
- func (c *Launcher) SetRegion(region string)
- func (c *Launcher) UpdateAutoSpottingTotals(region string)
- type Region
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 ¶
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 ¶
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 (*Launcher) ConnectWithStaticAuth ¶
func (*Launcher) ReadAWSProfiles ¶
func (*Launcher) SetPricingInterval ¶
func (*Launcher) UpdateAutoSpottingTotals ¶
type Region ¶
type Region struct { AutoSpotting *AutoSpotting Launcher *Launcher // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.