Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { AuthorizeSecurityGroupIngress(*ec2.AuthorizeSecurityGroupIngressInput) (*ec2.AuthorizeSecurityGroupIngressOutput, error) RevokeSecurityGroupIngress(*ec2.RevokeSecurityGroupIngressInput) (*ec2.RevokeSecurityGroupIngressOutput, error) DescribeSecurityGroups(*ec2.DescribeSecurityGroupsInput) (*ec2.DescribeSecurityGroupsOutput, error) }
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)
Click to show internal directories.
Click to hide internal directories.