package
0.3.4
Repository: https://github.com/memoio/minio.git
Documentation: pkg.go.dev

# Functions

AppendFile - appends the file "src" to the file "dst".
Copy is exactly like io.Copy but with re-usable buffers.
CopyAligned - copies from reader to writer using the aligned input buffer, it is expected that input buffer is page aligned to 4K page boundaries.
LimitedWriter takes an io.Writer and returns an ioutil.LimitWriter.
NewDeadlineWriter wraps a writer to make it respect given deadline value per Write().
NewSkipReader - creates a SkipReader.
NopCloser returns a WriteCloser with a no-op Close method wrapping the provided Writer w.
ReadFile reads the named file and returns the contents.
ReadFileWithFileInfo reads the named file and returns the contents.
SameFile returns if the files are same.
WaitPipe implements wait-group backend io.Pipe to provide synchronization between read() end with write() end.
WriteOnClose takes an io.Writer and returns an ioutil.WriteOnCloser.

# Constants

Default r/w block size for larger objects.
Default write block size for objects per shard >= 64MiB.
Default r/w block size for smaller objects.
DirectioAlignSize - DirectIO alignment needs to be 4K.

# Variables

O_DIRECT aligned sync.Pool's.
O_DIRECT aligned sync.Pool's.
O_DIRECT aligned sync.Pool's.

# Structs

DeadlineWriter deadline writer with context.
LimitWriter implements io.WriteCloser.
ODirectReader - to support O_DIRECT reads for erasure backends.
PipeReader is similar to io.PipeReader with wait group.
PipeWriter is similar to io.PipeWriter with wait group.
SkipReader skips a given number of bytes and then returns all remaining data.
WriteOnCloser implements io.WriteCloser and always executes at least one write operation if it is closed.