exec

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecConfig

type ExecConfig struct {
	Options *containerType.ExecOptions
	ID      string
}

func NewConfig

func NewConfig() *ExecConfig

func (*ExecConfig) AddCmd added in v1.1.2

func (c *ExecConfig) AddCmd(cmd ...string) *ExecConfig

AddCmd adds commands and args to the existing command slice

func (*ExecConfig) AddEnv added in v1.1.2

func (c *ExecConfig) AddEnv(key, value string) *ExecConfig

AddEnv adds a single environment variable

func (*ExecConfig) SetAttachStderr added in v1.1.2

func (c *ExecConfig) SetAttachStderr(attach bool) *ExecConfig

SetAttachStderr sets whether to attach the standard error

func (*ExecConfig) SetAttachStdin added in v1.1.2

func (c *ExecConfig) SetAttachStdin(attach bool) *ExecConfig

SetAttachStdin sets whether to attach the standard input

func (*ExecConfig) SetAttachStdout added in v1.1.2

func (c *ExecConfig) SetAttachStdout(attach bool) *ExecConfig

SetAttachStdout sets whether to attach the standard output

func (*ExecConfig) SetCmd added in v1.1.2

func (c *ExecConfig) SetCmd(cmd ...string) *ExecConfig

SetCmd sets the execution commands and args

func (*ExecConfig) SetConsoleSize added in v1.1.2

func (c *ExecConfig) SetConsoleSize(height, width uint) *ExecConfig

SetConsoleSize sets the initial console size [height, width]

func (*ExecConfig) SetDetach added in v1.1.2

func (c *ExecConfig) SetDetach(detach bool) *ExecConfig

SetDetach sets whether to execute in detach mode

func (*ExecConfig) SetDetachKeys added in v1.1.2

func (c *ExecConfig) SetDetachKeys(keys string) *ExecConfig

SetDetachKeys sets the escape keys for detach

func (*ExecConfig) SetEnv added in v1.1.2

func (c *ExecConfig) SetEnv(env []string) *ExecConfig

SetEnv sets multiple environment variables

func (*ExecConfig) SetOptions

func (c *ExecConfig) SetOptions(options ...execoptions.ExecOptionsFn)

func (*ExecConfig) SetPrivileged added in v1.1.2

func (c *ExecConfig) SetPrivileged(privileged bool) *ExecConfig

SetPrivileged sets whether the container is in privileged mode

func (*ExecConfig) SetTty added in v1.1.2

func (c *ExecConfig) SetTty(tty bool) *ExecConfig

SetTty sets whether to attach standard streams to a tty

func (*ExecConfig) SetUser added in v1.1.2

func (c *ExecConfig) SetUser(user string) *ExecConfig

SetUser sets the user that will run the command

func (*ExecConfig) SetWorkingDir added in v1.1.2

func (c *ExecConfig) SetWorkingDir(dir string) *ExecConfig

SetWorkingDir sets the working directory

Jump to

Keyboard shortcuts

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