enumerator

package
v0.0.0-...-3750d73 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Glob

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

func HasMeta

func HasMeta(path string) bool

HasMeta reports whether path contains any of the magic characters

Types

type AzureRMEnumerator

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

func (*AzureRMEnumerator) Enumerate

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

func (*AzureRMEnumerator) Origin

func (s *AzureRMEnumerator) Origin() string

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 GSEnumerator

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

func NewGSEnumerator

func NewGSEnumerator(config config.SupplierConfig) (*GSEnumerator, error)

func (*GSEnumerator) Enumerate

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

func (*GSEnumerator) Origin

func (s *GSEnumerator) Origin() 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, opts *backend.Options) (StateEnumerator, error)

Jump to

Keyboard shortcuts

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