Documentation ¶
Index ¶
- func CopyFile(src, dst string) error
- func GetCommandName() string
- func GetCommandNameFilename(commandName string) string
- func GetExecutableFilePath() (string, error)
- func GetExecutablePath() (string, error)
- func IsTerminalContext() bool
- func NewLoggingWriter(targetWriter io.Writer, logger *logrus.Logger, logginPrefix string) io.Writer
- func ParseCommandNameFromCommandLine() string
- func StringInSlice(s string, slice []string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommandName ¶
func GetCommandName() string
GetCommandName returns the filename of the droxy binary
func GetCommandNameFilename ¶
GetCommandNameFilename returns the binary filename of the given proxy command name
func GetExecutableFilePath ¶
GetExecutableFilePath returns the file-path of the droxy binary
func GetExecutablePath ¶
GetExecutablePath returns the path of the directory where droxy binary is located
func IsTerminalContext ¶
func IsTerminalContext() bool
IsTerminalContext checks if the current process is in a terminal context
func NewLoggingWriter ¶
NewLoggingWriter returns a new writer that also logs the output it writes
func ParseCommandNameFromCommandLine ¶
func ParseCommandNameFromCommandLine() string
ParseCommandNameFromCommandLine returns the called proxy command from cli args
func StringInSlice ¶
StringInSlice checks if s is part of slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.