Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func LookupBinaryPath ¶ added in v1.8.1
func LookupBinaryPath(pathFns ...LookupPathFn) (string, error)
LookupBinaryPath looks for a binary in order of passed lookup functions. It fails only if all lookup function does not contain a binary.
Types ¶
type LookupPathFn ¶ added in v1.8.1
func LookupInCurrentDirectory ¶ added in v1.8.1
func LookupInCurrentDirectory(binary string) LookupPathFn
LookupInCurrentDirectory looks for the binary in the current directory Example: if this function is executed by /usr/bin/kuma-dp that was run in /home/kuma-dp, this function will lookup for binary 'x' in /home/kuma-dp/x
func LookupInPath ¶ added in v1.8.1
func LookupInPath(path string) LookupPathFn
func LookupNextToCurrentExecutable ¶ added in v1.8.1
func LookupNextToCurrentExecutable(binary string) LookupPathFn
LookupNextToCurrentExecutable looks for the binary next to the current binary Example: if this function is executed by /usr/bin/kuma-dp, this function will lookup for binary 'x' in /usr/bin/x
Click to show internal directories.
Click to hide internal directories.