Documentation ¶
Index ¶
- Constants
- Variables
- type Bundle
- func (b *Bundle) DataFS() afero.Fs
- func (b *Bundle) Delete() error
- func (b *Bundle) FS() afero.Fs
- func (b *Bundle) Manifest() (*Manifest, error)
- func (b *Bundle) Reader() (*Reader, error)
- func (b *Bundle) WithDecoderMaker(maker DecoderMaker) *Bundle
- func (b *Bundle) WithEncoderMaker(maker EncoderMaker) *Bundle
- func (b *Bundle) WithFileExtension(ext string) *Bundle
- func (b *Bundle) WithFilter(allowList []string, denyList []string) *Bundle
- func (b *Bundle) WithPartSize(n uint64) *Bundle
- func (b *Bundle) WriteManifest(manifest *Manifest) error
- func (b *Bundle) Writer() (*Writer, error)
- func (b *Bundle) WriterWithPartSize(n uint64) (*Writer, error)
- type Decoder
- type DecoderClosure
- type DecoderMaker
- type DecoderMakerFunc
- type Encoder
- type EncoderClosure
- type EncoderMaker
- type EncoderMakerFunc
- type File
- type Manifest
- type Reader
- type SourceFilter
- type UserData
- type Writer
Constants ¶
View Source
const ( DataDir = "data" DefaultDataFileNameFormat = "part-%05d.%s" DefaultDataFileExt = "dat" DefaultPartSize = 1000 * 1000 )
View Source
const (
// Manifest schema version
ManifestVersion = "1.0"
)
Variables ¶
View Source
var ErrNilBundle = errors.New("nil bundle")
View Source
var ErrNotImplemented = errors.New("not implemented")
View Source
var ErrWriterClosed = errors.New("writer closed")
Functions ¶
This section is empty.
Types ¶
type Bundle ¶
type Bundle struct {
// contains filtered or unexported fields
}
func (*Bundle) WithDecoderMaker ¶
func (b *Bundle) WithDecoderMaker(maker DecoderMaker) *Bundle
func (*Bundle) WithEncoderMaker ¶
func (b *Bundle) WithEncoderMaker(maker EncoderMaker) *Bundle
func (*Bundle) WithFileExtension ¶
func (*Bundle) WithFilter ¶
func (*Bundle) WithPartSize ¶
func (*Bundle) WriteManifest ¶
type DecoderClosure ¶
func (*DecoderClosure) Close ¶
func (c *DecoderClosure) Close() error
func (*DecoderClosure) Decode ¶
func (c *DecoderClosure) Decode(record interface{}) error
type DecoderMaker ¶
type DecoderMakerFunc ¶
type EncoderClosure ¶
func (*EncoderClosure) Close ¶
func (c *EncoderClosure) Close() error
func (*EncoderClosure) Encode ¶
func (c *EncoderClosure) Encode(record interface{}) error
type EncoderMaker ¶
type EncoderMakerFunc ¶
type Manifest ¶
Manifest stores bundle metadata It is written as a json file at the root level of the bundle
type SourceFilter ¶
func NewFilter ¶
func NewFilter(allowList []string, denyList []string) SourceFilter
Click to show internal directories.
Click to hide internal directories.