sg

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

Client represents an EC2 client

type Rule

type Rule struct {
	Permissions []*ec2.IpPermission
}

Rule contains an info required for ingress/egress rules

type SecurityGroup

type SecurityGroup struct {
	ID *string
}

SecurityGroup represents an Ingress rule

func (*SecurityGroup) AuthorizeIngressRule

func (a *SecurityGroup) AuthorizeIngressRule(cli Client, r *Rule) error

AuthorizeIngressRule on a Security Group (receiver)

func (*SecurityGroup) RevokeIngressRule

func (a *SecurityGroup) RevokeIngressRule(cli Client, r *Rule) error

RevokeIngressRule from a Security Group (receiver)

type Tag

type Tag struct {
	Key   *string
	Value *string
}

Tag contains 'key:value' of a single AWS Tag

func (*Tag) GetSecurityGroups

func (t *Tag) GetSecurityGroups(cli Client) ([]*ec2.SecurityGroup, error)

GetSecurityGroups returns list of Security Groups matching a Tag (receiver)

Jump to

Keyboard shortcuts

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