security_group

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT-0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type Getter

type Getter struct {
	// contains filtered or unexported fields
}

func NewGetter

func NewGetter(ec2Client *aws.EC2Client) *Getter

func (*Getter) Get

func (g *Getter) Get(id string, output printer.Output, options resource.Options) error

func (*Getter) GetSecurityGroupsByLoadBalancerName

func (g *Getter) GetSecurityGroupsByLoadBalancerName(name string) ([]types.SecurityGroup, error)

func (*Getter) GetSecurityGroupsByNetworkInterface

func (g *Getter) GetSecurityGroupsByNetworkInterface(networkInterfaceId string) ([]types.SecurityGroup, error)

func (*Getter) Init

func (g *Getter) Init()

type Manager

type Manager struct {
	DryRun bool
	// contains filtered or unexported fields
}

func (*Manager) Create

func (m *Manager) Create(options resource.Options) error

func (*Manager) Delete

func (m *Manager) Delete(options resource.Options) (err error)

func (*Manager) Init

func (m *Manager) Init()

func (*Manager) SetDryRun

func (m *Manager) SetDryRun()

func (*Manager) Update

func (m *Manager) Update(options resource.Options, cmd *cobra.Command) error

type SecurityGroupOptions

type SecurityGroupOptions struct {
	resource.CommonOptions
	LoadBalancerName   string
	NetworkInterfaceId string
}

func NewOptions

func NewOptions() (options *SecurityGroupOptions, flags cmd.Flags)

type SecurityGroupPrinter

type SecurityGroupPrinter struct {
	// contains filtered or unexported fields
}

func NewPrinter

func NewPrinter(securityGroups []types.SecurityGroup) *SecurityGroupPrinter

func (*SecurityGroupPrinter) PrintJSON

func (p *SecurityGroupPrinter) PrintJSON(writer io.Writer) error

func (*SecurityGroupPrinter) PrintTable

func (p *SecurityGroupPrinter) PrintTable(writer io.Writer) error

func (*SecurityGroupPrinter) PrintYAML

func (p *SecurityGroupPrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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