Documentation ¶
Index ¶
- func CommandAdd(appName string, portMapStrings []string) error
- func CommandClear(appName string) error
- func CommandList(appName string) error
- func CommandRemove(appName string, portMapStrings []string) error
- func CommandReport(appName string, format string, infoFlag string) error
- func CommandSet(appName string, portMapStrings []string) error
- func ReportSingleApp(appName string, format string, infoFlag string) error
- func TriggerInstall() error
- func TriggerPortsClear(appName string) error
- func TriggerPortsConfigure(appName string) error
- func TriggerPortsGet(appName string, format string) error
- func TriggerPortsGetAvailable() error
- func TriggerPortsGetProperty(appName string, key string) error
- func TriggerPortsSetDetected(appName string, portMapString string) error
- func TriggerPostAppCloneSetup(oldAppName string, newAppName string) error
- func TriggerPostAppRenameSetup(oldAppName string, newAppName string) error
- func TriggerPostCertsRemove(appName string) error
- func TriggerPostCertsUpdate(appName string) error
- func TriggerPostDelete(appName string) error
- type PortMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandAdd ¶
CommandAdd adds port mappings to an app
func CommandClear ¶
CommandClear clears all port mappings for an app
func CommandList ¶
CommandList is a cmd wrapper to list port mappings for an app
func CommandRemove ¶
CommandRemove removes specific port mappings from an app
func CommandReport ¶
CommandReport displays a ports report for one or more apps
func CommandSet ¶
CommandSet sets port mappings for an app
func ReportSingleApp ¶
ReportSingleApp is an internal function that displays the ports report for one or more apps
func TriggerInstall ¶
func TriggerInstall() error
TriggerInstall migrates the ports config to properties
func TriggerPortsClear ¶
TriggerPortsClear removes all ports for the specified app
func TriggerPortsConfigure ¶
TriggerPortsConfigure ensures we have a port mapping
func TriggerPortsGet ¶
TriggerPortsGet prints out the port mapping for a given app
func TriggerPortsGetAvailable ¶
func TriggerPortsGetAvailable() error
TriggerPortsGetAvailable prints out an available port greater than 1024
func TriggerPortsGetProperty ¶
TriggerPortsGetProperty writes the ports key to stdout for a given app container
func TriggerPortsSetDetected ¶
TriggerPortsSetDetected writes out detected ports
func TriggerPostAppCloneSetup ¶
TriggerPostAppCloneSetup creates new ports files
func TriggerPostAppRenameSetup ¶
TriggerPostAppRenameSetup renames ports files
func TriggerPostCertsRemove ¶
TriggerPostCertsRemove unsets port config vars after SSL cert is added
func TriggerPostCertsUpdate ¶
TriggerPostCertsUpdate sets port config vars after SSL cert is added
func TriggerPostDelete ¶
TriggerPostDelete is the ports post-delete plugin trigger
Types ¶
type PortMap ¶
type PortMap struct { // ContainerPort is the port on the container ContainerPort int `json:"container_port"` // HostPort is the port on the host HostPort int `json:"host_port"` // Scheme is the scheme of the port mapping Scheme string `json:"scheme"` }
PortMap is a struct that contains a scheme:host-port:container-port mapping
func (PortMap) AllowsPersistence ¶
AllowsPersistence returns true if the port map is not to be persisted