config

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2017 License: MIT Imports: 21 Imported by: 0

Documentation

Index

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 Init

func Init() *Config

func (*Config) HasAwsRegion

func (c *Config) HasAwsRegion() bool

func (*Config) HasAwsSharedCredentials added in v0.3.3

func (c *Config) HasAwsSharedCredentials() bool

func (*Config) HasAwsStaticCredentials added in v0.3.3

func (c *Config) HasAwsStaticCredentials() bool

func (*Config) LoadConfig

func (c *Config) LoadConfig(filename string) error

func (*Config) NewAwsClient

func (c *Config) NewAwsClient() *AwsClient

func (*Config) NewAwsSession

func (c *Config) NewAwsSession() *session.Session

func (*Config) SetAwsCredentials

func (c *Config) SetAwsCredentials(accessKey string, secretKey string, profile string, region string)

func (*Config) SetIgnoreModule

func (c *Config) SetIgnoreModule(ignoreModule string)

func (*Config) SetIgnoreRule

func (c *Config) SetIgnoreRule(ignoreRule string)

func (*Config) SetVarfile added in v0.3.1

func (c *Config) SetVarfile(varfile string)

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
}

Jump to

Keyboard shortcuts

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