Documentation ¶
Index ¶
- func GetInstancesFormatted(envname, format string)
- func GetSubnetsFormatted(format string)
- func GetTrail(key, value, format string)
- func UpdateEnvTags(tagname, tagvalue, envname string)
- type EventData
- type EventResponse
- type InstanceData
- type Item
- type Items
- type NameSorter
- type RequestParameters
- type ResourceItems
- type ResourcesSet
- type ResponseElements
- type SubnetData
- type TagSet
- type UserIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstancesFormatted ¶
func GetInstancesFormatted(envname, format string)
GetInstancesFormatted retrieve all instances in the subnet
func GetSubnetsFormatted ¶
func GetSubnetsFormatted(format string)
GetSubnetsFormatted retrieve all subnet in a region and format it
func GetTrail ¶
func GetTrail(key, value, format string)
GetTrail returns events captured in cloudtrail
func UpdateEnvTags ¶
func UpdateEnvTags(tagname, tagvalue, envname string)
UpdateEnvTags updates tag with a value for all objects in subnet
Types ¶
type EventData ¶
type EventData struct { EventID string `json:"event_id"` EventName string `json:"event_name"` Username string `json:"username"` ResourceID string `json:"resource_id"` EventTime string `json:"event_time"` UserIdentity string `json:"user_identity"` EventSource string `json:"event_source"` AwsRegion string `json:"aws_region"` SourceIPAddress string `json:"source_IPAddress"` UserAgent string `json:"user_agent"` RequestID string `json:"request_id"` EventType string `json:"event_type"` RecipientAccountId string `json:"recipient_accountId"` AccountType string `json:"account_type"` PrincipalId string `json:"principal_id"` Arn string `json:"arn"` AccountId string `json:"account_id"` AccessKeyId string `json:"access_key_Id"` }
EventData type for handling cloudtrail events data
type EventResponse ¶
type EventResponse struct { EventVersion string `json:"eventVersion"` UserIdentity `json:"userIdentity"` EventTime string `json:"eventTime"` EventSource string `json:"eventSource"` EventName string `json:"eventName"` AwsRegion string `json:"awsRegion"` SourceIPAddress string `json:"sourceIPAddress"` UserAgent string `json:"userAgent"` //RequestParameters `json:"requestParameters"` //ResponseElements `json:"responseElements"` RequestID string `json:"requestID"` EventID string `json:"eventID"` EventType string `json:"eventType"` RecipientAccountId string `json:"recipientAccountId"` }
type InstanceData ¶
type NameSorter ¶
type NameSorter []InstanceData
NameSorter is an implementation of Sort
func (NameSorter) Len ¶
func (a NameSorter) Len() int
func (NameSorter) Less ¶
func (a NameSorter) Less(i, j int) bool
func (NameSorter) Swap ¶
func (a NameSorter) Swap(i, j int)
type RequestParameters ¶
type RequestParameters struct { ResourcesSet `json:"resourcesSet"` TagSet `json:"tagSet"` }
type ResourceItems ¶
type ResourceItems struct {
ResourceId string `json:"resourceId"`
}
type ResourcesSet ¶
type ResourcesSet struct {
ResourceItems `json:"items"`
}
type ResponseElements ¶
type ResponseElements struct {
Return string `json:"_return"`
}
Click to show internal directories.
Click to hide internal directories.