config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2017 License: MIT Imports: 19 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
}

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"`
}

func Init

func Init() *Config

func (*Config) HasAwsCredentials

func (c *Config) HasAwsCredentials() bool

func (*Config) HasAwsRegion

func (c *Config) HasAwsRegion() 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, region string)

func (*Config) SetIgnoreModule

func (c *Config) SetIgnoreModule(ignoreModule string)

func (*Config) SetIgnoreRule

func (c *Config) SetIgnoreRule(ignoreRule string)

Jump to

Keyboard shortcuts

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