ec2

package
Version: v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	CreateSecurityGroup(groupName string) (string, error)
	GetInstanceDetails(instanceID string) (*ec2.Instance, error)
	GetSecurityGroupID(securityGroupName string) (string, error)
	AuthorizeSecurityGroupIngress(securityGroupID string, port int, protocol string) error
	RevokeSecurityGroupIngress(securityGroupID string, port int, protocol string) error
	AuthorizeSecurityGroupEgress(securityGroupID string, port int, protocol string) error
	DeleteSecurityGroup(securityGroupID string) error
	GetENISecurityGroups(eniID string) ([]string, error)
	WaitTillTheENIIsDeleted(ctx context.Context, eniID string) error
	UnAssignSecondaryIPv4Address(instance string, secondaryIPv4Address []string) error
}

func NewManager

func NewManager(ec2Client *ec2.EC2, vpcID string) Manager

Source Files

Jump to

Keyboard shortcuts

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