execopt

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

package execopt provides options for the container exec create.

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL