package
5.1.0+incompatible
Repository: https://github.com/googlecloudplatform/gcp-service-broker.git
Documentation: pkg.go.dev

# Functions

Copy copies data from a source stream to a destination stream.
FromBytes streams the given bytes as a buffer.
FromError returns a nil ReadCloser and the error passed when called.
FromFile joins the segments of the path and reads from it.
FromReadCloser reads the contents of the readcloser and takes ownership of closing it.
FromReadCloserError reads the contents of the readcloser and takes ownership of closing it.
FromReader converts a Reader to a Source.
FromBytes streams the given bytes as a buffer.
FromYaml converts the interface to a stream of Yaml.
NopWriteCloser works like io.NopCloser, but for writers.
ToBuffer buffers the contents of the stream and on Close() calls the callback returning its error.
ToDiscard discards any data written to it.
ToError returns an error when Dest is initialized.
ToFile concatenates the given path segments with filepath.Join, creates any parent directoreis if needed, and writes the file.
ToModeFile is like ToFile, but sets the permissions on the created file.
ToWriteCloser forwards data to the given WriteCloser which will be closed after the copy finishes.
ToWriter forwards data to the given writer, this function WILL NOT close the underlying stream so it is safe to use with things like stdout.
ToYaml unmarshals the contents of the stream as YAML to the given struct.

# Structs

MultiCloser calls Close() once on every added closer and returns a multierror of all errors encountered.

# Type aliases

No description provided by the author
No description provided by the author