package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

AtomicWriteFile atomically writes data to a file named by filename and with the specified permission bits.
NewAtomicFileWriter returns WriteCloser so that writing to it writes to a temporary file and closing it atomically changes the temporary file to destination path.
NewAtomicWriteSet creates a new atomic write set to atomically create a set of files.
NewCancelReadCloser creates a wrapper that closes the ReadCloser when the context is cancelled.
NewReadCloserWrapper wraps an io.Reader, and implements an io.ReadCloser.
NewWriteCloserWrapper returns a new io.WriteCloser.
NewWriteFlusher returns a new WriteFlusher.

# Structs

WriteFlusher wraps the Write and Flush operation ensuring that every write is a flush.

# Type aliases

AtomicWriteSet is used to atomically write a set of files and ensure they are visible at the same time.