Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateFetchProgress ¶
func UpdateFetchProgress(done <-chan struct{}, client *containerd.Client, progress *progress.ImageFetch)
UpdateFetchProgress start goroutine to update the fetch status until done channel closes
func WithCwd ¶
WithCwd spets the container current working directory (cwd)
func WithEnv ¶
WithEnv you can add or override process environment variables overrides should be list of strings in format 'KEY=value'
Types ¶
type DirectIO ¶
type DirectIO struct {
Stdin io.WriteCloser
Stdout io.ReadCloser
Stderr io.ReadCloser
// contains filtered or unexported fields
}
DirectIO allows task IO to be handled externally by the caller
func NewDirectIO ¶
func NewDirectIO(ctx context.Context, stdin, stdout, stderr string, terminal bool) (f *DirectIO, err error)
NewDirectIO returns an IO implementation that exposes the pipes directly
func (*DirectIO) Cancel ¶
func (f *DirectIO) Cancel()
Cancel stops any IO copy operations
Not applicable for DirectIO
func (*DirectIO) Delete ¶
Delete removes the underlying directory containing fifos
func (*DirectIO) IOCreate ¶
IOCreate returns IO avaliable for use with task creation
Source Files
¶
- io.go
- opts.go
- progress.go
Click to show internal directories.
Click to hide internal directories.