enumerator

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

func Glob(pattern string) ([]string, error)

func GlobS3

func GlobS3(path string) (prefix string, pattern string)

func HasMeta

func HasMeta(path string) bool

Types

type FileEnumerator

type FileEnumerator struct {
	// contains filtered or unexported fields
}

func NewFileEnumerator

func NewFileEnumerator(config config.SupplierConfig) *FileEnumerator

func (*FileEnumerator) Enumerate

func (s *FileEnumerator) Enumerate() ([]string, error)

func (*FileEnumerator) Origin

func (s *FileEnumerator) Origin() string

type FileEnumeratorConfig

type FileEnumeratorConfig struct {
	Bucket *string
	Prefix *string
}

type S3Enumerator

type S3Enumerator struct {
	// contains filtered or unexported fields
}

func NewS3Enumerator

func NewS3Enumerator(config config.SupplierConfig) *S3Enumerator

func (*S3Enumerator) Enumerate

func (s *S3Enumerator) Enumerate() ([]string, error)

func (*S3Enumerator) Origin

func (s *S3Enumerator) Origin() string

type StateEnumerator

type StateEnumerator interface {
	Origin() string
	Enumerate() ([]string, error)
}

func GetEnumerator

func GetEnumerator(config config.SupplierConfig) StateEnumerator

Jump to

Keyboard shortcuts

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