Documentation
¶
Overview ¶
package execopt provides options for the container exec create.
Index ¶
- type SetContainerExecOption
- func WithAttachStderr() SetContainerExecOption
- func WithAttachStdin() SetContainerExecOption
- func WithAttachStdout() SetContainerExecOption
- func WithCommand(cmd ...string) SetContainerExecOption
- func WithConsoleSize(width, height uint) SetContainerExecOption
- func WithDetach() SetContainerExecOption
- func WithDetachKeys(detachKeys string) SetContainerExecOption
- func WithEnv(key, value string) SetContainerExecOption
- func WithPrivileged() SetContainerExecOption
- func WithTty() SetContainerExecOption
- func WithUser(user string) SetContainerExecOption
- func WithWorkingDir(workingDir string) SetContainerExecOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SetContainerExecOption ¶
type SetContainerExecOption func(*container.ExecOptions) error
SetContainerExecOption is a function that sets a parameter for the container exec create.
func WithAttachStderr ¶
func WithAttachStderr() SetContainerExecOption
WithAttachStderr sets the attach stderr flag for the exec options.
func WithAttachStdin ¶
func WithAttachStdin() SetContainerExecOption
WithAttachStdin sets the attach stdin flag for the exec options.
func WithAttachStdout ¶
func WithAttachStdout() SetContainerExecOption
WithAttachStdout sets the attach stdout flag for the exec options.
func WithCommand ¶
func WithCommand(cmd ...string) SetContainerExecOption
WithCmd appends the command to the exec options.
func WithConsoleSize ¶
func WithConsoleSize(width, height uint) SetContainerExecOption
WithConsoleSize sets the console size for the exec options.
func WithDetach ¶
func WithDetach() SetContainerExecOption
WithDetach sets the detach flag for the exec options.
func WithDetachKeys ¶
func WithDetachKeys(detachKeys string) SetContainerExecOption
WithDetachKeys sets the detach keys for the exec options.
func WithEnv ¶
func WithEnv(key, value string) SetContainerExecOption
WithEnv appends the environment variable to the exec options.
func WithPrivileged ¶
func WithPrivileged() SetContainerExecOption
WithPrivileged sets the privileged flag for the exec options.
func WithTty ¶
func WithTty() SetContainerExecOption
WithTty sets the tty flag for the exec options.
func WithUser ¶
func WithUser(user string) SetContainerExecOption
WithUser sets the user for the exec options.
func WithWorkingDir ¶
func WithWorkingDir(workingDir string) SetContainerExecOption
WithWorkingDir sets the working directory for the exec options.