portbinder

package
v0.0.0-...-841f565 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindPortCommand

type BindPortCommand struct {
	PortMap  PortMap
	Selector Selector
}

BindPortCommand the command to send via the portbinder channel to instruct it to attach to a port

type Binding

type Binding struct {
	HostPort   string
	RemotePort string
}

Binding is a representation of a local and remote port pair

type CommandChannel

type CommandChannel chan BindPortCommand

CommandChannel a channel which recieved bind port commands

type PortMap

type PortMap map[string]Binding

PortMap a map of keys and their port bindings

{
	grpc: {
		HostPort: 9000
		RemotePort: 9000
	}
}

func (*PortMap) ToPairs

func (pm *PortMap) ToPairs() (pairs []string)

ToPairs returns a slice of port binding pairs

type Selector

type Selector struct {
	Namespace  string
	Type       string
	LabelKey   string
	LabelValue string
}

Selector is a key value pair used to query kubernetes for matching resources

Jump to

Keyboard shortcuts

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