Documentation ¶
Index ¶
- Constants
- func GetTag(tags []*ec2.Tag, key string) string
- type AWSClient
- type Ami
- type AwsAuth
- func (i *AwsAuth) CheckPasswordPolicy(meta interface{}) string
- func (i *AwsAuth) GetCredentialsReport(meta interface{})
- func (i *AwsAuth) GetUsers(meta interface{})
- func (i *AwsAuth) GetUsersDetails(meta interface{})
- func (i *AwsAuth) User_has_expired_key(meta interface{}, username string, exp_days int16) string
- func (i *AwsAuth) User_has_mfa(meta interface{}, username string) bool
- func (i *AwsAuth) User_has_password(meta interface{}, username string) bool
- type Billing
- type Config
- type Cwatch
- type EC2
- func (e *EC2) Cloudtrail_is_enabled(meta interface{}) bool
- func (e *EC2) GetElbs(meta interface{})
- func (e *EC2) GetInstances(meta interface{})
- func (a *EC2) GetSgs(meta interface{})
- func (e *EC2) GetVolumes(meta interface{})
- func (e *EC2) IsAutoscaled(id string) bool
- func (ec2 *EC2) Is_attached_to_elb(sg_id string) string
- func (ec2 *EC2) Is_attached_to_instance(sg_id string) string
- type EC2Costs
- type Estimates
- type Instance
- type Output
- type PublicInst
- type Reservation
- type Role
- type SecurityGroup
- type User
- type UserReport
Constants ¶
View Source
const ( OK int = 0 WARN int = 1 ERR int = 2 UNK int = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AwsAuth ¶
type AwsAuth struct { Users *iam.ListUsersOutput UsersDetails *iam.GetAccountAuthorizationDetailsOutput CredReport []*UserReport // contains filtered or unexported fields }
func (*AwsAuth) CheckPasswordPolicy ¶
func (*AwsAuth) GetCredentialsReport ¶
func (i *AwsAuth) GetCredentialsReport(meta interface{})
func (*AwsAuth) GetUsersDetails ¶
func (i *AwsAuth) GetUsersDetails(meta interface{})
func (*AwsAuth) User_has_expired_key ¶
func (*AwsAuth) User_has_mfa ¶
func (*AwsAuth) User_has_password ¶
type Billing ¶
type Billing struct {
Metric, Namespace, DimensionName, DimensionVal string
Starting int
Period int64
Max_bill map[string]float32
}
func (*Billing) GetMetrics ¶
type Config ¶
func (Config) Ami_is_approved ¶
func (Config) Instance_is_excluded ¶
func (Config) User_is_allowed ¶
type Cwatch ¶
type Cwatch struct {
Metric, Namespace, DimensionName, DimensionVal string
Starting int
Period int64
}
func (*Cwatch) GetMetrics ¶
func (c *Cwatch) GetMetrics(meta interface{}) (*cloudwatch.GetMetricStatisticsOutput, error)
type EC2 ¶
type EC2 struct { Instances *ec2.DescribeInstancesOutput Elbs *elb.DescribeLoadBalancersOutput Autoscaled *autoscaling.DescribeAutoScalingInstancesOutput Security_groups *ec2.DescribeSecurityGroupsOutput Volumes *ec2.DescribeVolumesOutput // contains filtered or unexported fields }
func (*EC2) Cloudtrail_is_enabled ¶
func (*EC2) GetInstances ¶
func (e *EC2) GetInstances(meta interface{})
func (*EC2) GetVolumes ¶
func (e *EC2) GetVolumes(meta interface{})
func (*EC2) IsAutoscaled ¶
func (*EC2) Is_attached_to_elb ¶
func (*EC2) Is_attached_to_instance ¶
type EC2Costs ¶
type EC2Costs struct { Ondemand map[string]map[string]map[string]struct { Region string Price_per_hour float32 Period int16 } Reserved map[string]map[string]map[string][]*struct { Region string Price_per_hour float32 Period int16 } EBS map[string]map[string]struct { Region string Price_per_gbmonth float32 Price_per_iopmonth float32 } }
func (*EC2Costs) GetEBSCost ¶
func (*EC2Costs) GetEstimate ¶
func (*EC2Costs) ParsePrices ¶
type Estimates ¶
type Estimates struct { Current_cost float32 Reserved_cost map[int16]Reservation }
type Output ¶
type Output struct { Info_msgs []string Security_err_msgs []string Security_warn_msgs []string Utilisation_msgs []string Billing_msgs []string Billing_values map[string]float32 Ecode int }
func (*Output) SetUnknown ¶
func (o *Output) SetUnknown()
type PublicInst ¶
type PublicInst struct {
Role string
}
type Reservation ¶
type SecurityGroup ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.