enumerator

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: Apache-2.0 Imports: 19 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 AzureRMEnumerator added in v0.21.0

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

func NewAzureRMEnumerator added in v0.21.0

func NewAzureRMEnumerator(config config.SupplierConfig, opts options.AzureRMBackendOptions) (*AzureRMEnumerator, error)

func (*AzureRMEnumerator) Enumerate added in v0.21.0

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

func (*AzureRMEnumerator) Origin added in v0.21.0

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 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