Documentation
¶
Overview ¶
Copyright (c) 2021 - for information on the respective copyright owner see the NOTICE file and/or the repository https://github.com/carbynestack/ephemeral.
SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Commander ¶
Commander is a wrapper around os/exec.Command(). It returns a byte array containing the output of stdout and error. An error in command execution will land there. Stderr is scanned as well, its output is printed out.
func (*Commander) CallCMD ¶
CallCMD calls a specified command in sh and returns its stdout as a byte slice and potentially an error. As per os/exec doc: ``` If the command fails to run or doesn't complete successfully, the error is of type *ExitError. Other error types may be returned for I/O problems. ```