security

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSecurityGroupRulesFound = fmt.Errorf("no security group rules found")
View Source
var ErrNoSecurityGroupsFound = fmt.Errorf("no security groups found")

Functions

func Wait

func Wait(id string, e2 *ec2.Client) (err error)

Types

type Group

type Group struct {
	Cluster string `json:"-"`
	Name    string `json:"name"`
	Desc    string `json:"-"`
	Id      string `json:"id"`
	// contains filtered or unexported fields
}

func ById added in v0.8.4

func ById(id string, e2 *ec2.Client) (g Group, err error)

func Get

func Get(name, vpcId string, e2 *ec2.Client) (g Group, err error)

func New

func New(name, cluster string, vpc string, e2 *ec2.Client) (Group, error)

func (Group) AddLoadbalancerAuthorization

func (g Group) AddLoadbalancerAuthorization(loadbalancerId string, port int, e2 *ec2.Client) (err error)

func (Group) AddLoadbalancerPublicAccess added in v0.8.2

func (g Group) AddLoadbalancerPublicAccess(e2 *ec2.Client) (err error)

func (Group) OpenSSH

func (g Group) OpenSSH(user string, ip string, e2 *ec2.Client) (err error)

func (*Group) Revoke

func (g *Group) Revoke(id string, e2 *ec2.Client) (err error)

func (*Group) Rules

func (g *Group) Rules(e2 *ec2.Client) (rules []Rule, err error)

type Rule

type Rule struct {
	Id       string `json:"id"`
	Desc     string
	Protocol string
	Name     string
	FromPort int
	ToPort   int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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