cgcaws

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	AwsUrl                    = "http://checkip.amazonaws.com"
	IpifyUrl                  = "https://api.ipify.org"
	DuplicateIngressErrorCode = "InvalidPermission.Duplicate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SGS

type SGS struct {
	Ec2        *ec2.Client
	IpCheckUrl string
}

func NewAwsSecurityGroupService

func NewAwsSecurityGroupService(ec2 *ec2.Client) *SGS

func NewIpifySecurityGroupService

func NewIpifySecurityGroupService(ec2 *ec2.Client) *SGS

func NewSecurityGroupService

func NewSecurityGroupService(ec2 *ec2.Client, ipCheckUrl string) *SGS

func (*SGS) AuthorizeDescribedIngress

func (sgs *SGS) AuthorizeDescribedIngress(ctx context.Context, groupId, cidr, description string) error

func (*SGS) EnsureDescribedIngressRevoked

func (sgs *SGS) EnsureDescribedIngressRevoked(ctx context.Context, groupId, description string) error

func (*SGS) OpenSecurityGroup

func (sgs *SGS) OpenSecurityGroup(ctx context.Context, groupId, description string) error

func (*SGS) PublicIpAsCidr

func (sgs *SGS) PublicIpAsCidr() (string, error)

Jump to

Keyboard shortcuts

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