Documentation ¶
Index ¶
- Constants
- Variables
- func InitServices(conf map[string]interface{}, log *logger.Logger) error
- func InitSession(region, profile string) (*session.Session, error)
- func NewAccess(sess *session.Session, awsconf config, log *logger.Logger) cloud.Service
- func NewDns(sess *session.Session, awsconf config, log *logger.Logger) cloud.Service
- func NewInfra(sess *session.Session, awsconf config, log *logger.Logger) cloud.Service
- func NewNotification(sess *session.Session, awsconf config, log *logger.Logger) cloud.Service
- func NewQueue(sess *session.Session, awsconf config, log *logger.Logger) cloud.Service
- func NewStorage(sess *session.Session, awsconf config, log *logger.Logger) cloud.Service
- type Access
- type Dns
- type Infra
- type Notification
- func (s *Notification) Drivers() []driver.Driver
- func (s *Notification) FetchByType(t string) (*graph.Graph, error)
- func (s *Notification) FetchResources() (*graph.Graph, error)
- func (s *Notification) IsSyncDisabled() bool
- func (s *Notification) Name() string
- func (s *Notification) ResourceTypes() (all []string)
- type Queue
- type Security
- type Storage
Constants ¶
View Source
const ( PARENT_OF = iota // default APPLIES_ON DEPENDING_ON )
Variables ¶
View Source
var ErrTagNotFound = errors.New("aws tag key not found")
View Source
var ResourceTypes = []string{
"instance",
"subnet",
"vpc",
"keypair",
"securitygroup",
"volume",
"internetgateway",
"routetable",
"availabilityzone",
"loadbalancer",
"targetgroup",
"listener",
"user",
"group",
"role",
"policy",
"bucket",
"storageobject",
"subscription",
"topic",
"queue",
"zone",
"record",
}
View Source
var ServiceNames = []string{}
View Source
var ServicePerAPI = map[string]string{
"ec2": "infra",
"elbv2": "infra",
"iam": "access",
"s3": "storage",
"sns": "notification",
"sqs": "queue",
"route53": "dns",
}
View Source
var ServicePerResourceType = map[string]string{
"instance": "infra",
"subnet": "infra",
"vpc": "infra",
"keypair": "infra",
"securitygroup": "infra",
"volume": "infra",
"internetgateway": "infra",
"routetable": "infra",
"availabilityzone": "infra",
"loadbalancer": "infra",
"targetgroup": "infra",
"listener": "infra",
"user": "access",
"group": "access",
"role": "access",
"policy": "access",
"bucket": "storage",
"storageobject": "storage",
"subscription": "notification",
"topic": "notification",
"queue": "queue",
"zone": "dns",
"record": "dns",
}
Functions ¶
func NewNotification ¶
Types ¶
type Dns ¶
type Dns struct { route53iface.Route53API // contains filtered or unexported fields }
func (*Dns) IsSyncDisabled ¶
func (*Dns) ResourceTypes ¶
type Infra ¶
type Infra struct { ec2iface.EC2API elbv2iface.ELBV2API // contains filtered or unexported fields }
func (*Infra) IsSyncDisabled ¶
func (*Infra) ResourceTypes ¶
type Notification ¶
func (*Notification) Drivers ¶
func (s *Notification) Drivers() []driver.Driver
func (*Notification) FetchByType ¶
func (s *Notification) FetchByType(t string) (*graph.Graph, error)
func (*Notification) FetchResources ¶
func (s *Notification) FetchResources() (*graph.Graph, error)
func (*Notification) IsSyncDisabled ¶
func (s *Notification) IsSyncDisabled() bool
func (*Notification) Name ¶
func (s *Notification) Name() string
func (*Notification) ResourceTypes ¶
func (s *Notification) ResourceTypes() (all []string)
type Security ¶
type Security interface { stsiface.STSAPI GetUserId() (string, error) GetAccountId() (string, error) }
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
DO NOT EDIT This file was automatically generated with go generate DO NOT EDIT This file was automatically generated with go generate DO NOT EDIT This file was automatically generated with go generate
|
DO NOT EDIT This file was automatically generated with go generate DO NOT EDIT This file was automatically generated with go generate DO NOT EDIT This file was automatically generated with go generate |
Click to show internal directories.
Click to hide internal directories.