feat: add a command to clear all proxy configs

Closes #5002
This commit is contained in:
Jose Diaz-Gonzalez
2022-01-28 20:26:49 -05:00
parent 3b0bf4d8f2
commit 7136da1aa5
4 changed files with 86 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ func BuildConfig(appName string) error {
return common.PlugnTrigger("proxy-build-config", []string{appName}...)
}
// ClearConfig clears the proxy config for the specified app
func ClearConfig(appName string) error {
return common.PlugnTrigger("proxy-clear-config", []string{appName}...)
}
// Disable disables proxy implementations for the specified app
func Disable(appName string) error {
if !IsAppProxyEnabled(appName) {