awsapi

package
v0.0.0-...-7f48339 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CostexplorerIface

type CostexplorerIface interface {
	FetchRIUtilizationPercentage(service, startDay, endDay string) (string, error)
	FetchRICoveragePercentage(service, startDay, endDay string) ([]*costexplorer.ReservationCoverageGroup, error)
}

CostexplorerIface : costexplorer interface

func NewCostexplorer

func NewCostexplorer(client costexploreriface.CostExplorerAPI) CostexplorerIface

NewCostexplorer ... generate new costexplorer client

type CostexplorerInstance

type CostexplorerInstance struct {
	// contains filtered or unexported fields
}

CostexplorerInstance : costexplorer instance

func (*CostexplorerInstance) FetchRICoveragePercentage

func (c *CostexplorerInstance) FetchRICoveragePercentage(service, startDay, endDay string) ([]*costexplorer.ReservationCoverageGroup, error)

FetchRICoveragePercentage ... fetch RI Coverage Percentage

func (*CostexplorerInstance) FetchRIUtilizationPercentage

func (c *CostexplorerInstance) FetchRIUtilizationPercentage(service, startDay, endDay string) (riUtilPct string, err error)

FetchRIUtilizationPercentage ... fetch RI Utilization Percentage

type SSMIface

type SSMIface interface {
	GetSSMParameters(keys []string) (map[string]string, error)
}

SSMIface : -

func NewSSMClient

func NewSSMClient(client ssmiface.SSMAPI) SSMIface

NewSSMClient ... generate a new ssm client

type SSMInstance

type SSMInstance struct {
	// contains filtered or unexported fields
}

SSMInstance : ssm instance

func (*SSMInstance) GetSSMParameters

func (d *SSMInstance) GetSSMParameters(keys []string) (map[string]string, error)

GetSSMParameters ... get values from ssm parameter store

Jump to

Keyboard shortcuts

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