bucket

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractEncoding

func ExtractEncoding(encoding string, filename string) processor.EncodingType

func FromFile

func FromFile(file string) processor.EncodingType

Types

type Bucket

type Bucket interface {
	ListFiles(ctx context.Context, bucket string, token *string, max int32) ([]string, *string, error)
	DownloadFile(ctx context.Context, bucket string, item string) ([]byte, error)
	GetEncoding(ctx context.Context, bucket string, item string) (string, error)
}

func GetDefaultBucket

func GetDefaultBucket(url string, region string) Bucket

type BucketBuilder

type BucketBuilder struct {
}

func (*BucketBuilder) GetBucket

func (bd *BucketBuilder) GetBucket(url string, region string) Bucket

type BuildBucket

type BuildBucket interface {
	GetDownloader(url string, region string) Bucket
}

Jump to

Keyboard shortcuts

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