ioextensions

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFileWith

func CreateFileWith(filePath string, content io.Reader) error

Types

type Flusher

type Flusher interface {
	Flush() error
}

type OnCloseFlusher

type OnCloseFlusher struct {
	io.WriteCloser
	Flusher
}

func NewOnCloseFlusher

func NewOnCloseFlusher(writeCloser io.WriteCloser, flusher Flusher) *OnCloseFlusher

func (OnCloseFlusher) Close

func (cf OnCloseFlusher) Close() error

type ReadCascadeCloser

type ReadCascadeCloser struct {
	io.Reader
	io.Closer
}

ReadCascadeCloser composes io.ReadCloser from two parts

type ReadSeekCloser

type ReadSeekCloser interface {
	io.Reader
	io.Seeker
	io.Closer
}

type ReadSeekCloserImpl

type ReadSeekCloserImpl struct {
	io.Reader
	io.Seeker
	io.Closer
}

type ZeroReader

type ZeroReader struct{}

ZeroReader generates a slice of zeroes. Used to pad tar in cases where length of file changes.

func (*ZeroReader) Read

func (z *ZeroReader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL