package multireader

import "github.com/docker/cli/components/engine/daemon/logger/jsonfilelog/multireader"

Index

Functions

func MultiReadSeeker

func MultiReadSeeker(readers ...io.ReadSeeker) io.ReadSeeker

MultiReadSeeker returns a ReadSeeker that's the logical concatenation of the provided input readseekers. After calling this method the initial position is set to the beginning of the first ReadSeeker. At the end of a ReadSeeker, Read always advances to the beginning of the next ReadSeeker and returns EOF at the end of the last ReadSeeker. Seek can be used over the sum of lengths of all readseekers.

When a MultiReadSeeker is used, no Read and Seek operations should be made on its ReadSeeker components. Also, users should make no assumption on the state of individual readseekers while the MultiReadSeeker is used.

Source Files

multireader.go

Version
v17.11.0-ce-rc3+incompatible
Published
Nov 8, 2017
Platform
linux/amd64
Imports
4 packages
Last checked
31 minutes ago

Tools for package owners.