reader

package
v0.30.11 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathTrimPrefix added in v0.25.0

func PathTrimPrefix(path, prefix string) (string, bool)

func PathsMatch added in v0.25.0

func PathsMatch(a, b string) bool

Types

type Bundle

type Bundle struct {
	Fs     afero.Fs
	Path   string
	Prefix string
	// contains filtered or unexported fields
}

func NewBundle

func NewBundle(fs afero.Fs, path, prefix string) (*Bundle, error)

func (*Bundle) GetErrorIndex

func (b *Bundle) GetErrorIndex() []collecttypes.Result

func (*Bundle) GetIndex

func (b *Bundle) GetIndex() []collecttypes.Result

func (*Bundle) NewScanner added in v0.25.0

func (b *Bundle) NewScanner() (Scanner, error)

type BundleReader

type BundleReader interface {
	GetIndex() []collecttypes.Result
	GetErrorIndex() []collecttypes.Result
	NewScanner() (Scanner, error)
}

type BundleScanner added in v0.25.0

type BundleScanner struct {
	Prefix string
	// contains filtered or unexported fields
}

func (*BundleScanner) Close added in v0.25.0

func (s *BundleScanner) Close() error

func (*BundleScanner) Err added in v0.25.0

func (s *BundleScanner) Err() error

func (*BundleScanner) Next added in v0.25.0

func (s *BundleScanner) Next() (*ScannerFile, error)

type MultiBundle added in v0.25.0

type MultiBundle struct {
	Fs   afero.Fs
	Path string
	// contains filtered or unexported fields
}

func (*MultiBundle) GetBundles added in v0.25.0

func (b *MultiBundle) GetBundles() map[string]BundleReader

type MultiBundleReader added in v0.25.0

type MultiBundleReader interface {
	GetBundles() map[string]BundleReader
}

func NewMultiBundle added in v0.25.0

func NewMultiBundle(fs afero.Fs, path string) (MultiBundleReader, error)

type Piper added in v0.25.0

type Piper struct {
	Name string
	W    *io.PipeWriter
}

type Scanner added in v0.25.0

type Scanner interface {
	Next() (*ScannerFile, error)
	Close() error
	Err() error
}

type ScannerFile added in v0.25.0

type ScannerFile struct {
	Name   string
	Reader io.Reader
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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