network_interface

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 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) GetNetworkInterfaceById

func (g *Getter) GetNetworkInterfaceById(id string) (types.NetworkInterface, error)

func (*Getter) GetNetworkInterfacesWithOptions

func (g *Getter) GetNetworkInterfacesWithOptions(eniOptions *NetworkInterfaceOptions) ([]types.NetworkInterface, error)

func (*Getter) Init

func (g *Getter) Init()

type NetworkInterfaceOptions

type NetworkInterfaceOptions struct {
	resource.CommonOptions
	InstanceId       string
	IpAddress        string
	LoadBalancerName string
	SecurityGroupId  string
}

func NewOptions

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

type NetworkInterfacePrinter

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

func NewPrinter

func NewPrinter(networkInterfaces []types.NetworkInterface, accountId string) *NetworkInterfacePrinter

func (*NetworkInterfacePrinter) PrintJSON

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

func (*NetworkInterfacePrinter) PrintTable

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

func (*NetworkInterfacePrinter) PrintYAML

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

Jump to

Keyboard shortcuts

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