Documentation ¶
Index ¶
- func CreateFileWith(filePath string, content io.Reader) error
- func NewReaderWithRetry(getReader func() (io.ReadCloser, error), retryAttempts int) io.ReadCloser
- type Flusher
- type MultiCloser
- type NamedReader
- type NamedReaderImpl
- type OnCloseFlusher
- type ReadCascadeCloser
- type ReadSeekCloser
- type ReadSeekCloserImpl
- type ReaderWithRetry
- type ZeroReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReaderWithRetry ¶
func NewReaderWithRetry(getReader func() (io.ReadCloser, error), retryAttempts int) io.ReadCloser
Types ¶
type MultiCloser ¶
type MultiCloser struct {
// contains filtered or unexported fields
}
func NewMultiCloser ¶
func NewMultiCloser(closers []io.Closer) *MultiCloser
func (*MultiCloser) Close ¶
func (m *MultiCloser) Close() error
type NamedReader ¶
type NamedReaderImpl ¶
func NewNamedReaderImpl ¶
func NewNamedReaderImpl(reader io.Reader, name string) *NamedReaderImpl
func (*NamedReaderImpl) Name ¶
func (reader *NamedReaderImpl) Name() string
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 ¶
ReadCascadeCloser composes io.ReadCloser from two parts
type ReaderWithRetry ¶
type ReaderWithRetry struct {
// contains filtered or unexported fields
}
func (*ReaderWithRetry) Close ¶
func (r *ReaderWithRetry) Close() error
type ZeroReader ¶
type ZeroReader struct{}
ZeroReader generates a slice of zeroes. Used to pad tar in cases where length of file changes.
Click to show internal directories.
Click to hide internal directories.