reserved

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reserved

type Reserved struct {
	ReservedID         string    `json:"reserved_id"`
	Region             string    `json:"region"`
	Duration           int64     `json:"duration"`
	OfferingType       string    `json:"offering_type"`
	OfferingClass      string    `json:"offering_class,omitempty"`
	ProductDescription string    `json:"product_description,omitempty"`
	InstanceType       string    `json:"instance_type,omitempty"`
	InstanceCount      int64     `json:"instance_count,omitempty"`
	CacheNodeType      string    `json:"cache_node_type,omitempty"`
	CacheNodeCount     int64     `json:"cache_node_count,omitempty"`
	DBInstanceClass    string    `json:"db_instance_class,omitempty"`
	DBInstanceCount    int64     `json:"db_instance_count,omitempty"`
	MultiAZ            bool      `json:"multi_az,omitempty"`
	Start              time.Time `json:"start"`
	State              string    `json:"state"`
}

func Fetch

func Fetch(region []string) ([]Reserved, error)

func FetchWith

func FetchWith(region []string, fn []fetchFunc) ([]Reserved, error)

func (Reserved) Count

func (r Reserved) Count() int64

func (Reserved) JSON

func (r Reserved) JSON() string

func (Reserved) Pretty

func (r Reserved) Pretty() string

func (Reserved) String

func (r Reserved) String() string

func (Reserved) TypeClass

func (r Reserved) TypeClass() string

Jump to

Keyboard shortcuts

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