Documentation ¶
Index ¶
- Constants
- func ExtractPorts(m map[string]interface{}) map[int64]string
- func ExtractPortsFromConfig(configPath string) (map[int64]string, error)
- func OpenPortsPerJob(ctx context.Context, nomadExposedPortsPerJob map[string][]int64, ...) (map[JobWithTask][]PortWithName, error)
- func ScanNetworkProcessesPorts() (map[int64]string, error)
- type JobWithTask
- type PortWithName
Constants ¶
View Source
const (
PortConfigKey = "Port"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractPorts ¶
ExtractPorts extracts all ports definitions into a map of ports to port name. Example map: { 2002: "API.Rest", 2003: "API.GRPC" }
func ExtractPortsFromConfig ¶
ExtractPortsFromConfig read TOML config from disc and extracts all ports definitions into a map of ports to port name
func OpenPortsPerJob ¶
func OpenPortsPerJob( ctx context.Context, nomadExposedPortsPerJob map[string][]int64, genServices genServiceGetter, ) (map[JobWithTask][]PortWithName, error)
func ScanNetworkProcessesPorts ¶
ScanNetworkProcessesPorts returns map of ports to process name for Capsule own processes.
Types ¶
type JobWithTask ¶
type PortWithName ¶
Click to show internal directories.
Click to hide internal directories.