Documentation ¶
Index ¶
- func New(directory string, namer file.Namer, options ...file.CollectionOption) (file.Collection, error)
- func WithArchive(directory string) file.CollectionOption
- func WithArchiveTarGZ(directory string) file.CollectionOption
- func WithArchiveZIP(directory string) file.CollectionOption
- func WithCheckDirectory(directoryPath string) file.CollectionOption
- func WithContext(ctx context.Context) file.CollectionOption
- func WithFileCount(counter prometheus.Gauge, directory string) file.CollectionOption
- type Context
- type Files
- type TarGZ
- type ZIP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(directory string, namer file.Namer, options ...file.CollectionOption) (file.Collection, error)
func WithArchive ¶
func WithArchive(directory string) file.CollectionOption
func WithArchiveTarGZ ¶
func WithArchiveTarGZ(directory string) file.CollectionOption
func WithArchiveZIP ¶
func WithArchiveZIP(directory string) file.CollectionOption
func WithCheckDirectory ¶
func WithCheckDirectory(directoryPath string) file.CollectionOption
func WithContext ¶
func WithContext(ctx context.Context) file.CollectionOption
func WithFileCount ¶
func WithFileCount(counter prometheus.Gauge, directory string) file.CollectionOption
Types ¶
type Context ¶
type Context struct { file.Collection // contains filtered or unexported fields }
func NewContext ¶
func NewContext(collection file.Collection, ctx context.Context) *Context
type TarGZ ¶
type TarGZ struct { file.Collection // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.