Documentation ¶
Index ¶
- func CheckError(region string, config *configuration.Config, err error) error
- func GetAvailableServices() *[]string
- func LoadFromFile(r Resource, filename string) error
- func LoadResource(r Resource, config *configuration.Config, region string) error
- func LoadResources(config *configuration.Config, region string, resources ...Resource) error
- func SaveToFile(r Resource, filename string) error
- type Actions
- type Condition
- type Ec2s
- type IAMInfo
- type Images
- type KMSKey
- type KMSKeyAliases
- type KMSKeys
- type KMSKeysListEntries
- type Principal
- type Resource
- type Resources
- type S3Bucket
- type S3Buckets
- type S3Policy
- type SecurityGroups
- type Snapshots
- type Statement
- type Users
- type Volumes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func CheckError(region string, config *configuration.Config, err error) error
func GetAvailableServices ¶
func GetAvailableServices() *[]string
func LoadFromFile ¶
func LoadResource ¶
func LoadResource(r Resource, config *configuration.Config, region string) error
func LoadResources ¶
func LoadResources(config *configuration.Config, region string, resources ...Resource) error
func SaveToFile ¶
Types ¶
type Ec2s ¶
func (*Ec2s) LoadFromAWS ¶
func (e *Ec2s) LoadFromAWS(config *configuration.Config, region string) error
type IAMInfo ¶
type IAMInfo struct {
// contains filtered or unexported fields
}
func (IAMInfo) HasRootAccessKeys ¶
func (*IAMInfo) LoadFromAWS ¶
func (iaminfo *IAMInfo) LoadFromAWS(config *configuration.Config, region string) error
type Images ¶
func (*Images) LoadFromAWS ¶
func (im *Images) LoadFromAWS(config *configuration.Config, region string) error
func (Images) SortByDate ¶
func (im Images) SortByDate()
type KMSKeyAliases ¶
type KMSKeyAliases []*kms.AliasListEntry
type KMSKeys ¶
func NewKMSKeys ¶
func NewKMSKeys() *KMSKeys
NewKMSKeys : Initialize KMS Keys struct with map of keys
func (*KMSKeys) FindByKeyArn ¶
func (*KMSKeys) LoadAllFromAWS ¶
func (k *KMSKeys) LoadAllFromAWS(config *configuration.Config) error
LoadAllFromAWS : Load KMS Keys from all regions
func (*KMSKeys) LoadFromAWS ¶
func (k *KMSKeys) LoadFromAWS(config *configuration.Config, region string) error
type KMSKeysListEntries ¶
type KMSKeysListEntries []*kms.KeyListEntry
type Principal ¶
type Principal struct { Map map[string][]string // Values in Map: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html Wildcard string // Values: * }
Principal : Specifies user, account, service or other
entity that is allowed or denied access to resource
func (*Principal) UnmarshalJSON ¶
type Resource ¶
type Resource interface {
LoadFromAWS(config *configuration.Config, region string) error
}
type S3Bucket ¶
type S3Bucket struct { *s3.Bucket S3Policy *S3Policy Region *string *s3.ServerSideEncryptionConfiguration *s3.LoggingEnabled ACL s3.GetBucketAclOutput }
type S3Buckets ¶
type S3Buckets []*S3Bucket
func (*S3Buckets) LoadFromAWS ¶
func (b *S3Buckets) LoadFromAWS(config *configuration.Config, region string) error
func (*S3Buckets) LoadNames ¶
func (b *S3Buckets) LoadNames(config *configuration.Config, region string) error
LoadNames : Get All S3 Bucket names
func (*S3Buckets) LoadRegions ¶
func (b *S3Buckets) LoadRegions(config *configuration.Config, region string) error
type S3Policy ¶
type S3Policy struct { Version string Id string `json:",omitempty"` Statements []Statement `json:"Statement"` }
func NewS3Policy ¶
type SecurityGroups ¶
type SecurityGroups map[string][]*ec2.IpPermission
func (*SecurityGroups) GetIpPermissionsByID ¶
func (s *SecurityGroups) GetIpPermissionsByID(groupID string) []*ec2.IpPermission
func (*SecurityGroups) LoadFromAWS ¶
func (s *SecurityGroups) LoadFromAWS(config *configuration.Config, region string) error
type Snapshots ¶
func (*Snapshots) LoadFromAWS ¶
func (s *Snapshots) LoadFromAWS(config *configuration.Config, region string) error
type Users ¶
type Users []*iam.UserDetail
Click to show internal directories.
Click to hide internal directories.