config

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

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) DescribeClusters added in v0.4.1

func (c *AwsClient) DescribeClusters() (*ecs.DescribeClustersOutput, 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
	AwsCredentials     map[string]string
	IgnoreModule       map[string]bool
	IgnoreRule         map[string]bool
	Varfile            []string
	TerraformVersion   string
	TerraformEnv       string
	TerraformWorkspace string
	Rules              map[string]*Rule
}

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(files ...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
	DescribeClusterOutput                    *ecs.DescribeClustersOutput
}

type Rule added in v0.7.0

type Rule struct {
	Name    string `hcl:"name,label"`
	Enabled bool   `hcl:"enabled"`
}

Jump to

Keyboard shortcuts

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