util

package
v0.0.0-...-c5563bb Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log Logger for this package
	Log = newLogger()
	// Cfg Config for this package
	Cfg *config.Config
)

Functions

func DescribeEC2ById

func DescribeEC2ById(id string, accountID string) (*ec2.Reservation, error)

Describe EC2 instance

func DescribeSecurityGroupById

func DescribeSecurityGroupById(id string, accountID string) (*ec2.DescribeSecurityGroupsOutput, error)

Describe security group current state getter 123Test123 172.31.18.11

func DescribeSecurityGroupsByTag

func DescribeSecurityGroupsByTag(accountID string, tagKey string, tagValue string) (*ec2.DescribeSecurityGroupsOutput, error)

func DescribeSnapshotById

func DescribeSnapshotById(id string, accountID string) (*ec2.Snapshot, error)

Describe Snapshot instance

func DescribeVolumeById

func DescribeVolumeById(id string, accountID string) (*ec2.Volume, error)

Describe Volume instance

func FindEmailBasedOnUserIdentity

func FindEmailBasedOnUserIdentity(accountID string, userIdentity map[string]string) string

func FindEmailBasedOnUserName

func FindEmailBasedOnUserName(userName string) string

func GetAWSConfig

func GetAWSConfig(accountID string) *aws.Config

func GetDynamoDBConfig

func GetDynamoDBConfig() *aws.Config

func GetS3Config

func GetS3Config() *aws.Config

func GetSesConfig

func GetSesConfig() *aws.Config

func ParseEC2ResponseRunStartInstance

func ParseEC2ResponseRunStartInstance(response interface{}, property string) (string, error)

func SendEmail

func SendEmail(emailAddress string, result config.CompliantCheckResult, template string) error

TODO send reports of multiple check results

Types

type AwsResourceType

type AwsResourceType interface {
	GetId() string
	GetProperties(string) []string
}

Jump to

Keyboard shortcuts

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