Documentation
¶
Index ¶
- type Reader
- func (r *Reader) GetNumber() int64
- func (r *Reader) GetSize() int64
- func (r *Reader) GetSkipped() []string
- func (r *Reader) GetType() string
- func (r *Reader) ListObjects(ctx context.Context, _ string) ([]string, error)
- func (r *Reader) StreamFile(ctx context.Context, filename string, readersCh chan<- models.File, ...)
- func (r *Reader) StreamFiles(ctx context.Context, readersCh chan<- models.File, errorsCh chan<- error, ...)
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader represents an stdin reader.
func (*Reader) GetNumber ¶
GetNumber returns -1 for stdin, indicating that estimates should not be calculated.
func (*Reader) GetSize ¶
GetSize returns -1 for stdin, indicating that estimates should not be calculated.
func (*Reader) GetSkipped ¶ added in v0.8.0
GetSkipped returns a list of file paths that were skipped during the `StreamFlies` with skipPrefix. no-op func to satisfy interface.
func (*Reader) ListObjects ¶
ListObjects returns a list of objects in the path. Always returns one element "stdin".
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer represents an stdout writer.
func (*Writer) NewWriter ¶
NewWriter creates a new stdout writer closer. The file name is ignored for stdout.
Click to show internal directories.
Click to hide internal directories.