Versions in this module Expand all Collapse all v1 v1.2.0 Oct 24, 2018 Changes in this version + func WithStdio(opt *Streams) + func WithTerminal(opt *Streams) + type Attach func(*FIFOSet) (IO, error) + func NewAttach(opts ...Opt) Attach + type Config struct + Stderr string + Stdin string + Stdout string + Terminal bool + type Creator func(id string) (IO, error) + func LogFile(path string) Creator + func NewCreator(opts ...Opt) Creator + type DirectIO struct + func NewDirectIO(ctx context.Context, fifos *FIFOSet) (*DirectIO, error) + func NewDirectIO(stdin io.WriteCloser, stdout, stderr io.ReadCloser, terminal bool) *DirectIO + func (c *DirectIO) Cancel() + func (c *DirectIO) Close() error + func (c *DirectIO) Config() Config + func (c *DirectIO) Wait() + type FIFOSet struct + func NewFIFOSet(config Config, close func() error) *FIFOSet + func NewFIFOSetInDir(_, id string, terminal bool) (*FIFOSet, error) + func NewFIFOSetInDir(root, id string, terminal bool) (*FIFOSet, error) + func (f *FIFOSet) Close() error + type IO interface + Cancel func() + Close func() error + Config func() Config + Wait func() + func Load(set *FIFOSet) (IO, error) + func NullIO(_ string) (IO, error) + type Opt func(*Streams) + func WithFIFODir(dir string) Opt + func WithStreams(stdin io.Reader, stdout, stderr io.Writer) Opt + type Streams struct + FIFODir string + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + Terminal bool