Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exec ¶ added in v1.16.0
type Exec struct {
// contains filtered or unexported fields
}
func (*Exec) AwaitExit ¶ added in v1.17.7
AwaitExit waits for the process to exit on its own and asserts the expected exit code. Unlike Cleanup it does not signal the process, which is important when callers know the process is already terminating (or has terminated) and signaling could fail with "process already finished" on systems that have reaped the PID.
func (*Exec) ReplaceArg ¶ added in v1.17.7
ReplaceArg sets `--<flag>=<value>` on the next Run/Restart, replacing any existing occurrence of that flag. Useful for tests that need to change a daprd flag (e.g. --max-body-size) and then restart.
type Option ¶
type Option func(*options)
func WithEnvVars ¶
WithEnvVars sets the environment variables for the command. Expects a list of key value pairs.
func WithExitCode ¶
func WithStderr ¶
func WithStderr(stderr io.WriteCloser) Option
func WithStdout ¶
func WithStdout(stdout io.WriteCloser) Option
Click to show internal directories.
Click to hide internal directories.