taskutil

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type StdinCloser

type StdinCloser struct {
	Stdin  *os.File
	Closer func()
	// contains filtered or unexported fields
}

StdinCloser is from https://github.com/containerd/containerd/blob/v1.4.3/cmd/ctr/commands/tasks/exec.go#L181-L194

func (*StdinCloser) Close

func (s *StdinCloser) Close() error

Close implements Closer

func (*StdinCloser) Read

func (s *StdinCloser) Read(p []byte) (int, error)

type TaskOptions added in v2.2.0

type TaskOptions struct {
	AttachStreamOpt []string
	IsInteractive   bool
	IsTerminal      bool
	IsDetach        bool
	Con             console.Console
	LogURI          string
	DetachKeys      string
	Namespace       string
	DetachC         chan<- struct{}
	CheckpointDir   string
}

TaskOptions contains options for creating a new task

Jump to

Keyboard shortcuts

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