MCPcopy
hub / github.com/cloudfoundry/cli / NewPipeBomb

Function NewPipeBomb

api/cloudcontroller/pipebomb.go:24–27  ·  view source on GitHub ↗

NewPipeBomb returns an io.WriteCloser that can be used to stream data to a the Pipebomb.

()

Source from the content-addressed store, hash-verified

22// NewPipeBomb returns an io.WriteCloser that can be used to stream data to a
23// the Pipebomb.
24func NewPipeBomb() (*Pipebomb, io.WriteCloser) {
25 writerOutput, writerInput := io.Pipe()
26 return &Pipebomb{ReadCloser: writerOutput}, writerInput
27}

Calls

no outgoing calls

Tested by

no test coverage detected