ports

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

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

func NewParser

func NewParser(args []string) Parser

NewParser creates a new parser that parse ports in args.

func (*Parser) Parse

func (p *Parser) Parse() ([]PortPair, error)

func (Parser) WithObject

func (p Parser) WithObject(obj runtime.Object) Parser

type PortPair

type PortPair struct {
	LocalPort  uint16
	RemotePort uint16
	Protocol   string
}

PortPair consists of localPort, remotePort and the protocol.

Jump to

Keyboard shortcuts

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