Documentation ¶
Overview ¶
Contains a set of method for getting EC2 information
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLoadingAwsConfigFile = errors.New("failed to load AWS credentials config file")
)
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains the AWS config and service clients and is used to access the API
func New ¶
func New(ctx context.Context, currentConfig *config.Account, customTransportConfig *config.TransportConfig) (*Client, error)
New creates a struct with the AWS config, EC2 Client, and CloudWatch Client It allows to pass:
- configFile: the location of the config file to load. If empty the default location of the credentials file (~/.aws/config) is used
- profile: the name of the profile to use to load the credentials if empty the default credentials will be used
TODO: use options pattern
func (*Client) GetEC2Metrics ¶
GetEC2Metrics gets the resource consumptions for EC2 instances
type Source ¶
type Source struct { // Amazon Client *Client // AWS doesn't use project, but instead is // separated by region Region string }
Source is a configured Amazon source that adheres to Aethers source interface
Click to show internal directories.
Click to hide internal directories.