Documentation ¶
Index ¶
- Constants
- func ApplyCertMount(containerExec *containerruntime.Container, certFile string, ...)
- func ApplyProxyConfiguration(containerExec *containerruntime.Container)
- func ConvertNoProxyForJava(input string) string
- func GetCABundleFromHost(target string)
- func GetCertFileByType(certFileType string) string
- func GetCommandVersion(binary string) (string, error)
- func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)
- func ReplaceCommandPlaceholders(input string, env map[string]string) string
- func RunAPICommand(cmd APICommandExecute) (stdout string, stderr string, ...)
- func RunCommand(command string, env map[string]string, workDir string)
- func RunCommandAndGetOutput(command string, env map[string]string, workDir string) (string, string, error)
- func RunOptionalCommand(command string, env map[string]string, workDir string) error
- func RunSystemCommand(file string, args string, env map[string]string, workDir string, ...) error
- type APICommandExecute
Constants ¶
View Source
const AnyVersionConstraint = ">= 0.0.0"
Variables ¶
This section is empty.
Functions ¶
func ApplyCertMount ¶ added in v0.2.0
func ApplyCertMount(containerExec *containerruntime.Container, certFile string, containerCertFile string)
func ApplyProxyConfiguration ¶ added in v0.2.0
func ApplyProxyConfiguration(containerExec *containerruntime.Container)
func ConvertNoProxyForJava ¶ added in v0.2.0
func GetCABundleFromHost ¶ added in v0.2.0
func GetCABundleFromHost(target string)
func GetCertFileByType ¶ added in v0.2.0
GetCertFileByType returns the cert file by type (ca-bundle, java-keystore)
func GetCommandVersion ¶
GetCommandVersion returns the version of an executable
func GetPlatformSpecificCommand ¶
func GetPlatformSpecificCommand(platform string, file string, args string, workDir string) (*exec.Cmd, error)
GetPlatformSpecificCommand returns a platform-specific exec.Cmd
func ReplaceCommandPlaceholders ¶ added in v0.2.0
ReplaceCommandPlaceholders replaces env placeholders in a command
func RunAPICommand ¶
func RunAPICommand(cmd APICommandExecute) (stdout string, stderr string, executionCandidate *config.BinaryExecutionCandidate, err error)
RunAPICommand gets called from actions or the api to execute commands
func RunCommand ¶
RunCommand runs a required command and forwards all output to console, but will panic/exit if the command fails
func RunCommandAndGetOutput ¶
func RunCommandAndGetOutput(command string, env map[string]string, workDir string) (string, string, error)
RunCommandAndGetOutput runs a command and returns the full response / command output
func RunOptionalCommand ¶
RunOptionalCommand runs a command and forwards all output to console
Types ¶
Click to show internal directories.
Click to hide internal directories.