securitygroup

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: 12 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

This section is empty.

Types

type SecurityGroup

type SecurityGroup struct {
	State *ec2.SecurityGroup
}

func FindAllSecGroupsWithTag

func FindAllSecGroupsWithTag(tagKey string, tagValue string) ([]SecurityGroup, error)

func NewSecurityGroup

func NewSecurityGroup(sgout *ec2.SecurityGroup) SecurityGroup

NewSecurityGroup create a new SecurityGroup object

func NewSecurityGroupWithStatus

func NewSecurityGroupWithStatus(sgID string, accountID string, describeFunc ...func(string, string) (*ec2.DescribeSecurityGroupsOutput, error)) (SecurityGroup, error)

NewSecurityGroupWithStatus create a new SecurityGroup object including the current status of the AWS resource

func (*SecurityGroup) GetId

func (sg *SecurityGroup) GetId() string

func (*SecurityGroup) GetProperties

func (sg *SecurityGroup) GetProperties(key string) []string

GetProperties returns the given properties for <key> argument

func (SecurityGroup) Tag

func (sg SecurityGroup) Tag(key string, value string) error

func (SecurityGroup) TagCreator

func (sg SecurityGroup) TagCreator(ui map[string]string) error

TagCreator Tag security group with the user identity given in the event

type SecurityGroupError

type SecurityGroupError struct {
	Ignore bool
	// contains filtered or unexported fields
}

SecurityGroupError error definition

func NewSecurityGroupError

func NewSecurityGroupError(id, msg string, ignore bool) SecurityGroupError

NewSecurityGroupError create new SecurityGroupError

func (SecurityGroupError) Error

func (e SecurityGroupError) Error() string

Jump to

Keyboard shortcuts

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