static

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	IPv4Addresses []netip.Addr `toml:"ipv4-addresses"`
}

type StaticL3PortManager

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

func NewStaticL3PortManager

func NewStaticL3PortManager(config *Config) (*StaticL3PortManager, error)

func (*StaticL3PortManager) CheckPortExists

func (pm *StaticL3PortManager) CheckPortExists(portID string) (bool, error)

func (*StaticL3PortManager) CleanUnusedPorts

func (pm *StaticL3PortManager) CleanUnusedPorts(usedPorts []string) error

func (*StaticL3PortManager) GetAvailablePorts

func (pm *StaticL3PortManager) GetAvailablePorts() ([]string, error)

func (*StaticL3PortManager) GetExternalAddress

func (pm *StaticL3PortManager) GetExternalAddress(portID string) (string, string, error)

func (*StaticL3PortManager) GetInternalAddress

func (pm *StaticL3PortManager) GetInternalAddress(portID string) (string, error)

func (*StaticL3PortManager) ProvisionPort

func (pm *StaticL3PortManager) ProvisionPort() (string, error)

Jump to

Keyboard shortcuts

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