proxy

package module
v0.0.0-...-4c89809 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RunInSerial = 0

RunInSerial is the default value for whether to run a command in parallel or not and defaults to -1 (false)

Variables

This section is empty.

Functions

func BuildConfig

func BuildConfig(appName string) error

BuildConfig rebuilds the proxy config for the specified app

func ClearConfig

func ClearConfig(appName string) error

ClearConfig clears the proxy config for the specified app

func CommandBuildConfig

func CommandBuildConfig(appName string, allApps bool, parallelCount int) error

CommandBuildConfig rebuilds config for a given app

func CommandClearConfig

func CommandClearConfig(appName string, allApps bool) error

CommandClearConfig clears config for a given app

func CommandDisable

func CommandDisable(appName string, allApps bool, parallelCount int) error

CommandDisable disables the proxy for app via command line

func CommandEnable

func CommandEnable(appName string, allApps bool, parallelCount int) error

CommandEnable enables the proxy for app via command line

func CommandReport

func CommandReport(appName string, format string, infoFlag string) error

CommandReport displays a proxy report for one or more apps

func CommandSet

func CommandSet(appName string, proxyType string) error

CommandSet sets a proxy for an app

func Disable

func Disable(appName string) error

Disable disables proxy implementations for the specified app

func Enable

func Enable(appName string) error

Enable enables proxy implementations for the specified app

func IsAppProxyEnabled

func IsAppProxyEnabled(appName string) bool

IsAppProxyEnabled returns true if proxy is enabled; otherwise return false

func ReportSingleApp

func ReportSingleApp(appName string, format string, infoFlag string) error

ReportSingleApp is an internal function that displays the proxy report for one or more apps

func TriggerProxyIsEnabled

func TriggerProxyIsEnabled(appName string) error

TriggerProxyIsEnabled prints true or false depending on whether the proxy is enabled

func TriggerProxyType

func TriggerProxyType(appName string) error

TriggerProxyType prints out the current proxy type, defaulting to nginx

Types

This section is empty.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL