securitygroup

package
v1.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// IPProtocolTCP is how EC2 represents the TCP protocol in ingress rules.
	IPProtocolTCP = "tcp"

	// IPProtocolUDP is how EC2 represents the UDP protocol in ingress rules.
	IPProtocolUDP = "udp"

	// IPProtocolICMP is how EC2 represents the ICMP protocol in ingress rules.
	IPProtocolICMP = "icmp"

	// IPProtocolICMPv6 is how EC2 represents the ICMPv6 protocol in ingress rules.
	IPProtocolICMPv6 = "58"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	EC2Client ec2iface.EC2API
	// contains filtered or unexported fields
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

func NewService(sgScope scope.SGScope, roles []infrav1.SecurityGroupRole) *Service

NewService returns a new service given the api clients with a defined set of roles.

func (*Service) DeleteSecurityGroups

func (s *Service) DeleteSecurityGroups() error

DeleteSecurityGroups will delete a service's security groups.

func (*Service) ReconcileSecurityGroups

func (s *Service) ReconcileSecurityGroups() error

ReconcileSecurityGroups will reconcile security groups against the Service object.

Jump to

Keyboard shortcuts

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