aws

package
v0.0.0-...-e0af2a1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const METADATA_AZ_URL = "http://169.254.169.254/latest/meta-data/placement/availability-zone"

Variables

This section is empty.

Functions

This section is empty.

Types

type ASGDiscoverer

type ASGDiscoverer struct {
	*fetcher.DataManager
	// contains filtered or unexported fields
}

func NewASGDiscoverer

func NewASGDiscoverer(refreshInterval time.Duration, autoDiscoveryTags map[string]string) (*ASGDiscoverer, error)

func (*ASGDiscoverer) GetASGNames

func (asgd *ASGDiscoverer) GetASGNames() ([]string, error)

func (*ASGDiscoverer) GetASGsData

func (asgd *ASGDiscoverer) GetASGsData() (map[string]string, error)

func (*ASGDiscoverer) GetAsgFor

func (asgd *ASGDiscoverer) GetAsgFor(instanceType, az string, isSpot bool) (string, error)

func (*ASGDiscoverer) GetAsgFromInstanceDetails

func (asgd *ASGDiscoverer) GetAsgFromInstanceDetails(details utils.InstanceDetails) (string, error)

func (*ASGDiscoverer) GetCheckSum

func (asgd *ASGDiscoverer) GetCheckSum(data interface{}) string

func (*ASGDiscoverer) GetData

func (asgd *ASGDiscoverer) GetData() (interface{}, error)

func (*ASGDiscoverer) GetDetailsFor

func (asgd *ASGDiscoverer) GetDetailsFor(asgName string) (utils.DetailsResult, error)

func (*ASGDiscoverer) GetInstanceDetailsFor

func (asgd *ASGDiscoverer) GetInstanceDetailsFor(asgName string) (utils.InstanceDetails, error)

func (*ASGDiscoverer) GetInstanceTypeAndAZFor

func (asgd *ASGDiscoverer) GetInstanceTypeAndAZFor(asgName string) ([]string, error)

func (*ASGDiscoverer) GetLastChanges

func (asgd *ASGDiscoverer) GetLastChanges() time.Time

func (*ASGDiscoverer) ProcessData

func (asgd *ASGDiscoverer) ProcessData(data interface{}) error

type Pricer

type Pricer struct {
	*fetcher.DataManager
	// contains filtered or unexported fields
}

func NewPricer

func NewPricer(refreshInterval time.Duration) (*Pricer, error)

func (*Pricer) GetCheckSum

func (p *Pricer) GetCheckSum(data interface{}) string

func (*Pricer) GetData

func (p *Pricer) GetData() (interface{}, error)

func (*Pricer) GetPriceFor

func (p *Pricer) GetPriceFor(instanceType, az string, isSpot bool) (float64, bool)

func (*Pricer) ProcessData

func (p *Pricer) ProcessData(data interface{}) error

Jump to

Keyboard shortcuts

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