mirror of
https://github.com/dokku/dokku.git
synced 2025-12-16 12:07:45 +01:00
25 lines
484 B
Go
25 lines
484 B
Go
package proxy
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// TriggerProxyIsEnabled prints true or false depending on whether the proxy is enabled
|
|
func TriggerProxyIsEnabled(appName string) error {
|
|
if IsAppProxyEnabled(appName) {
|
|
fmt.Println("true")
|
|
} else {
|
|
fmt.Println("false")
|
|
}
|
|
|
|
return nil
|
|
}
|
|
|
|
// TriggerProxyType prints out the current proxy type, defaulting to nginx
|
|
func TriggerProxyType(appName string) error {
|
|
proxyType := getComputedProxyType(appName)
|
|
fmt.Println(proxyType)
|
|
|
|
return nil
|
|
}
|