portutil

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPortMappings added in v2.1.3

func LoadPortMappings(dataStore, namespace, id string, containerLabels map[string]string) ([]cni.PortMapping, error)

func ParseFlagP

func ParseFlagP(s string) ([]cni.PortMapping, error)

ParseFlagP parse port mapping pair, like "127.0.0.1:3000:8080/tcp", "127.0.0.1:3000-3001:8080-8081/tcp" and "3000:8080" ...

func StoreNetworkConfig added in v2.1.3

func StoreNetworkConfig(dataStore, namespace, id string, netConf networkstore.NetworkConfig) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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