blob

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFileNames

func FetchFileNames(ctx context.Context, bucket *blob.Bucket, config FetchConfigs, globPattern, bucketPath string) ([]string, error)

downloads file to local paths todo :: return blob handler as iterator

Types

type BlobHandler

type BlobHandler struct {
	FileNames  []string
	LocalPaths []string
	// contains filtered or unexported fields
}

func (*BlobHandler) DownloadAll

func (b *BlobHandler) DownloadAll(ctx context.Context) error

object path is relative to bucket

func (*BlobHandler) DownloadObject

func (b *BlobHandler) DownloadObject(ctx context.Context, objpath string) (string, error)

object path is relative to bucket

type FetchConfigs

type FetchConfigs struct {
	GlobMaxTotalSize      int64
	GlobMaxObjectsMatched int
	GlobMaxObjectsListed  int64
	GlobPageSize          int
}

Jump to

Keyboard shortcuts

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