コード例 #1
0
ファイル: streams.go プロジェクト: Mic92/docker
// StdoutPipe creates a new io.ReadCloser with an empty bytes pipe.
// It adds this new out pipe to the Stdout broadcaster.
func (streamConfig *StreamConfig) StdoutPipe() io.ReadCloser {
	bytesPipe := ioutils.NewBytesPipe()
	streamConfig.stdout.Add(bytesPipe)
	return bytesPipe
}
コード例 #2
0
ファイル: container.go プロジェクト: m1911/hyper
func (streamConfig *streamConfig) StderrPipe() io.ReadCloser {
	bytesPipe := ioutils.NewBytesPipe(nil)
	streamConfig.stderr.Add(bytesPipe)
	return bytesPipe
}
コード例 #3
0
ファイル: streams.go プロジェクト: jfrazelle/docker
// StderrPipe creates a new io.ReadCloser with an empty bytes pipe.
// It adds this new err pipe to the Stderr broadcaster.
func (c *Config) StderrPipe() io.ReadCloser {
	bytesPipe := ioutils.NewBytesPipe()
	c.stderr.Add(bytesPipe)
	return bytesPipe
}