Documentation ¶
Index ¶
- Constants
- Variables
- func AllRegions() []string
- func InitServices(region string) error
- func InitSession(region string) (*session.Session, error)
- func IsValidRegion(given string) bool
- type Access
- func (s *Access) FetchByType(t string) (*graph.Graph, error)
- func (s *Access) FetchResources() (*graph.Graph, error)
- func (s *Access) Name() string
- func (s *Access) Provider() string
- func (s *Access) ProviderAPI() string
- func (s *Access) ProviderRunnableAPI() interface{}
- func (s *Access) ResourceTypes() (all []string)
- type Infra
- func (s *Infra) FetchByType(t string) (*graph.Graph, error)
- func (s *Infra) FetchResources() (*graph.Graph, error)
- func (s *Infra) Name() string
- func (s *Infra) Provider() string
- func (s *Infra) ProviderAPI() string
- func (s *Infra) ProviderRunnableAPI() interface{}
- func (s *Infra) ResourceTypes() (all []string)
- type Security
- type Storage
- func (s *Storage) FetchByType(t string) (*graph.Graph, error)
- func (s *Storage) FetchResources() (*graph.Graph, error)
- func (s *Storage) Name() string
- func (s *Storage) Provider() string
- func (s *Storage) ProviderAPI() string
- func (s *Storage) ProviderRunnableAPI() interface{}
- func (s *Storage) ResourceTypes() (all []string)
Constants ¶
View Source
const ( PARENT_OF = iota // default APPLIES_ON )
Variables ¶
View Source
var DefaultAMIUsers = []string{"ec2-user", "ubuntu", "centos", "bitnami", "admin", "root"}
View Source
var ErrFieldNotFound = errors.New("aws struct field not found")
View Source
var ErrTagNotFound = errors.New("aws tag key not found")
View Source
var ParentNotFound = errors.New("empty field to add parent")
View Source
var ResourceTypesPerAPI = map[string][]string{ "ec2": []string{ "instance", "subnet", "vpc", "keypair", "securitygroup", "volume", "internetgateway", "routetable", }, "iam": []string{ "user", "group", "role", "policy", }, "s3": []string{ "bucket", "storageobject", }, }
View Source
var ServiceNames = []string{}
View Source
var ServicePerAPI = map[string]string{
"ec2": "infra",
"iam": "access",
"s3": "storage",
}
View Source
var ServicePerResourceType = map[string]string{
"instance": "infra",
"subnet": "infra",
"vpc": "infra",
"keypair": "infra",
"securitygroup": "infra",
"volume": "infra",
"internetgateway": "infra",
"routetable": "infra",
"user": "access",
"group": "access",
"role": "access",
"policy": "access",
"bucket": "storage",
"storageobject": "storage",
}
Functions ¶
func AllRegions ¶
func AllRegions() []string
func InitServices ¶
func IsValidRegion ¶
Types ¶
type Access ¶
func (*Access) ProviderAPI ¶
func (*Access) ProviderRunnableAPI ¶
func (s *Access) ProviderRunnableAPI() interface{}
func (*Access) ResourceTypes ¶
type Infra ¶
func (*Infra) ProviderAPI ¶
func (*Infra) ProviderRunnableAPI ¶
func (s *Infra) ProviderRunnableAPI() interface{}
func (*Infra) ResourceTypes ¶
type Security ¶
type Storage ¶
func NewStorage ¶
func (*Storage) ProviderAPI ¶
func (*Storage) ProviderRunnableAPI ¶
func (s *Storage) ProviderRunnableAPI() interface{}
func (*Storage) ResourceTypes ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.