Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPortMapping ¶
func ApplyPortMapping(p *types.Project, mapping PortConfigs)
func HasPortConflicts ¶
func HasPortConflicts(cfgs PortConfigs) bool
HasPortConflicts returns true if there are two services using the same host port
func PortAvailable ¶
PortAvailable returns true if the port is not currently in use by the host
Types ¶
type PortConfig ¶
type PortConfigs ¶
type PortConfigs []PortConfig
func PortConflicts ¶
func PortConflicts(cfgs PortConfigs) PortConfigs
PortConflicts returns all PortConfigs that have a port conflict
func ProjectPortConfigs ¶
func ProjectPortConfigs(p *types.Project) PortConfigs
ProjectPortConfigs returns a slice of associations of port/proto to services, for a specific protocol, sorted by port
func ResolvePortConflicts ¶
func ResolvePortConflicts(conflicts PortConfigs) (PortConfigs, error)
ResolvePortConflicts mutates the project and returns the port configs with any conflicting ports remapped
func (PortConfigs) String ¶
func (c PortConfigs) String() string
Click to show internal directories.
Click to hide internal directories.