Documentation ¶
Index ¶
- type AwsClient
- func (c AwsClient) DescribeAccountAttributes() (*ec2.DescribeAccountAttributesOutput, error)
- func (c *AwsClient) DescribeCacheClusters() (*elasticache.DescribeCacheClustersOutput, error)
- func (c *AwsClient) DescribeCacheParameterGroups() (*elasticache.DescribeCacheParameterGroupsOutput, error)
- func (c *AwsClient) DescribeCacheSubnetGroups() (*elasticache.DescribeCacheSubnetGroupsOutput, error)
- func (c *AwsClient) DescribeClassicLoadBalancers() (*elb.DescribeLoadBalancersOutput, error)
- func (c *AwsClient) DescribeDBInstances() (*rds.DescribeDBInstancesOutput, error)
- func (c *AwsClient) DescribeDBParameterGroups() (*rds.DescribeDBParameterGroupsOutput, error)
- func (c *AwsClient) DescribeDBSubnetGroups() (*rds.DescribeDBSubnetGroupsOutput, error)
- func (c AwsClient) DescribeEgressOnlyInternetGateways() (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error)
- func (c *AwsClient) DescribeImages() (*ec2.DescribeImagesOutput, error)
- func (c *AwsClient) DescribeInstances() (*ec2.DescribeInstancesOutput, error)
- func (c AwsClient) DescribeInternetGateways() (*ec2.DescribeInternetGatewaysOutput, error)
- func (c *AwsClient) DescribeKeyPairs() (*ec2.DescribeKeyPairsOutput, error)
- func (c *AwsClient) DescribeLoadBalancers() (*elbv2.DescribeLoadBalancersOutput, error)
- func (c AwsClient) DescribeNatGateways() (*ec2.DescribeNatGatewaysOutput, error)
- func (c AwsClient) DescribeNetworkInterfaces() (*ec2.DescribeNetworkInterfacesOutput, error)
- func (c *AwsClient) DescribeOptionGroups() (*rds.DescribeOptionGroupsOutput, error)
- func (c AwsClient) DescribeRouteTables() (*ec2.DescribeRouteTablesOutput, error)
- func (c *AwsClient) DescribeSecurityGroups() (*ec2.DescribeSecurityGroupsOutput, error)
- func (c *AwsClient) DescribeSubnets() (*ec2.DescribeSubnetsOutput, error)
- func (c AwsClient) DescribeVpcPeeringConnections() (*ec2.DescribeVpcPeeringConnectionsOutput, error)
- func (c *AwsClient) DescribeVpcs() (*ec2.DescribeVpcsOutput, error)
- func (c *AwsClient) ListInstanceProfiles() (*iam.ListInstanceProfilesOutput, error)
- type Config
- func (c *Config) HasAwsRegion() bool
- func (c *Config) HasAwsSharedCredentials() bool
- func (c *Config) HasAwsStaticCredentials() bool
- func (c *Config) LoadConfig(filename string) error
- func (c *Config) NewAwsClient() *AwsClient
- func (c *Config) NewAwsSession() *session.Session
- func (c *Config) SetAwsCredentials(accessKey string, secretKey string, profile string, region string)
- func (c *Config) SetIgnoreModule(ignoreModule string)
- func (c *Config) SetIgnoreRule(ignoreRule string)
- func (c *Config) SetVarfile(varfile string)
- type ResponseCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsClient ¶
type AwsClient struct { Iam iamiface.IAMAPI Ec2 ec2iface.EC2API Rds rdsiface.RDSAPI Elasticache elasticacheiface.ElastiCacheAPI Elb elbiface.ELBAPI Elbv2 elbv2iface.ELBV2API Cache *ResponseCache }
func (AwsClient) DescribeAccountAttributes ¶ added in v0.3.4
func (c AwsClient) DescribeAccountAttributes() (*ec2.DescribeAccountAttributesOutput, error)
func (*AwsClient) DescribeCacheClusters ¶ added in v0.3.1
func (c *AwsClient) DescribeCacheClusters() (*elasticache.DescribeCacheClustersOutput, error)
func (*AwsClient) DescribeCacheParameterGroups ¶ added in v0.3.1
func (c *AwsClient) DescribeCacheParameterGroups() (*elasticache.DescribeCacheParameterGroupsOutput, error)
func (*AwsClient) DescribeCacheSubnetGroups ¶ added in v0.3.1
func (c *AwsClient) DescribeCacheSubnetGroups() (*elasticache.DescribeCacheSubnetGroupsOutput, error)
func (*AwsClient) DescribeClassicLoadBalancers ¶ added in v0.3.1
func (c *AwsClient) DescribeClassicLoadBalancers() (*elb.DescribeLoadBalancersOutput, error)
func (*AwsClient) DescribeDBInstances ¶ added in v0.3.1
func (c *AwsClient) DescribeDBInstances() (*rds.DescribeDBInstancesOutput, error)
func (*AwsClient) DescribeDBParameterGroups ¶ added in v0.3.1
func (c *AwsClient) DescribeDBParameterGroups() (*rds.DescribeDBParameterGroupsOutput, error)
func (*AwsClient) DescribeDBSubnetGroups ¶ added in v0.3.1
func (c *AwsClient) DescribeDBSubnetGroups() (*rds.DescribeDBSubnetGroupsOutput, error)
func (AwsClient) DescribeEgressOnlyInternetGateways ¶ added in v0.3.4
func (c AwsClient) DescribeEgressOnlyInternetGateways() (*ec2.DescribeEgressOnlyInternetGatewaysOutput, error)
func (*AwsClient) DescribeImages ¶ added in v0.3.1
func (c *AwsClient) DescribeImages() (*ec2.DescribeImagesOutput, error)
func (*AwsClient) DescribeInstances ¶ added in v0.3.1
func (c *AwsClient) DescribeInstances() (*ec2.DescribeInstancesOutput, error)
func (AwsClient) DescribeInternetGateways ¶ added in v0.3.4
func (c AwsClient) DescribeInternetGateways() (*ec2.DescribeInternetGatewaysOutput, error)
func (*AwsClient) DescribeKeyPairs ¶ added in v0.3.1
func (c *AwsClient) DescribeKeyPairs() (*ec2.DescribeKeyPairsOutput, error)
func (*AwsClient) DescribeLoadBalancers ¶ added in v0.3.1
func (c *AwsClient) DescribeLoadBalancers() (*elbv2.DescribeLoadBalancersOutput, error)
func (AwsClient) DescribeNatGateways ¶ added in v0.3.4
func (c AwsClient) DescribeNatGateways() (*ec2.DescribeNatGatewaysOutput, error)
func (AwsClient) DescribeNetworkInterfaces ¶ added in v0.3.4
func (c AwsClient) DescribeNetworkInterfaces() (*ec2.DescribeNetworkInterfacesOutput, error)
func (*AwsClient) DescribeOptionGroups ¶ added in v0.3.1
func (c *AwsClient) DescribeOptionGroups() (*rds.DescribeOptionGroupsOutput, error)
func (AwsClient) DescribeRouteTables ¶ added in v0.3.4
func (c AwsClient) DescribeRouteTables() (*ec2.DescribeRouteTablesOutput, error)
func (*AwsClient) DescribeSecurityGroups ¶ added in v0.3.1
func (c *AwsClient) DescribeSecurityGroups() (*ec2.DescribeSecurityGroupsOutput, error)
func (*AwsClient) DescribeSubnets ¶ added in v0.3.1
func (c *AwsClient) DescribeSubnets() (*ec2.DescribeSubnetsOutput, error)
func (AwsClient) DescribeVpcPeeringConnections ¶ added in v0.3.4
func (c AwsClient) DescribeVpcPeeringConnections() (*ec2.DescribeVpcPeeringConnectionsOutput, error)
func (*AwsClient) DescribeVpcs ¶ added in v0.3.1
func (c *AwsClient) DescribeVpcs() (*ec2.DescribeVpcsOutput, error)
func (*AwsClient) ListInstanceProfiles ¶ added in v0.3.1
func (c *AwsClient) ListInstanceProfiles() (*iam.ListInstanceProfilesOutput, error)
type Config ¶
type Config struct { Debug bool DeepCheck bool `hcl:"deep_check"` AwsCredentials map[string]string `hcl:"aws_credentials"` IgnoreModule map[string]bool `hcl:"ignore_module"` IgnoreRule map[string]bool `hcl:"ignore_rule"` Varfile []string `hcl:"varfile"` }
func (*Config) HasAwsRegion ¶
func (*Config) HasAwsSharedCredentials ¶ added in v0.3.3
func (*Config) HasAwsStaticCredentials ¶ added in v0.3.3
func (*Config) LoadConfig ¶
func (*Config) NewAwsClient ¶
func (*Config) NewAwsSession ¶
func (*Config) SetAwsCredentials ¶
func (*Config) SetIgnoreModule ¶
func (*Config) SetIgnoreRule ¶
func (*Config) SetVarfile ¶ added in v0.3.1
type ResponseCache ¶ added in v0.3.1
type ResponseCache struct { DescribeImagesOutput *ec2.DescribeImagesOutput DescribeKeyPairsOutput *ec2.DescribeKeyPairsOutput DescribeSubnetsOutput *ec2.DescribeSubnetsOutput DescribeSecurityGroupsOutput *ec2.DescribeSecurityGroupsOutput DescribeVpcsOutput *ec2.DescribeVpcsOutput DescribeInstancesOutput *ec2.DescribeInstancesOutput DescribeAccountAttributesOutput *ec2.DescribeAccountAttributesOutput DescribeRouteTablesOutput *ec2.DescribeRouteTablesOutput DescribeInternetGatewaysOutput *ec2.DescribeInternetGatewaysOutput DescribeEgressOnlyInternetGatewaysOutput *ec2.DescribeEgressOnlyInternetGatewaysOutput DescribeNatGatewaysOutput *ec2.DescribeNatGatewaysOutput DescribeVpcPeeringConnectionsOutput *ec2.DescribeVpcPeeringConnectionsOutput DescribeNetworkInterfacesOutput *ec2.DescribeNetworkInterfacesOutput ListInstanceProfilesOutput *iam.ListInstanceProfilesOutput DescribeDBSubnetGroupsOutput *rds.DescribeDBSubnetGroupsOutput DescribeDBParameterGroupsOutput *rds.DescribeDBParameterGroupsOutput DescribeOptionGroupsOutput *rds.DescribeOptionGroupsOutput DescribeDBInstancesOutput *rds.DescribeDBInstancesOutput DescribeCacheParameterGroupsOutput *elasticache.DescribeCacheParameterGroupsOutput DescribeCacheSubnetGroupsOutput *elasticache.DescribeCacheSubnetGroupsOutput DescribeCacheClustersOutput *elasticache.DescribeCacheClustersOutput DescribeLoadBalancersOutput *elbv2.DescribeLoadBalancersOutput DescribeClassicLoadBalancersOutput *elb.DescribeLoadBalancersOutput }
Click to show internal directories.
Click to hide internal directories.