2020-02-22 06:35:30 -05:00
|
|
|
package proxy
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
)
|
|
|
|
|
|
2020-02-22 16:56:35 -05:00
|
|
|
// TriggerProxyIsEnabled prints true or false depending on whether the proxy is enabled
|
2020-02-22 06:35:30 -05:00
|
|
|
func TriggerProxyIsEnabled(appName string) error {
|
|
|
|
|
if IsAppProxyEnabled(appName) {
|
|
|
|
|
fmt.Println("true")
|
|
|
|
|
} else {
|
|
|
|
|
fmt.Println("false")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-02-22 16:56:35 -05:00
|
|
|
// TriggerProxyType prints out the current proxy type, defaulting to nginx
|
2020-02-22 06:35:30 -05:00
|
|
|
func TriggerProxyType(appName string) error {
|
2024-01-19 04:13:55 -05:00
|
|
|
proxyType := getComputedProxyType(appName)
|
2020-02-22 06:35:30 -05:00
|
|
|
fmt.Println(proxyType)
|
|
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
}
|