downloader

package
v0.0.0-...-28397d1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Ak       string
	Sk       string
	Endpoint string
	Location string
	Secure   bool
}

type Downloader

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

func New

func New(c Config) (*Downloader, error)

func (*Downloader) Download

func (d *Downloader) Download(ctx context.Context, bucket, object string) ([]byte, error)

func (*Downloader) DownloadImage

func (d *Downloader) DownloadImage(ctx context.Context, bucket, object string) (image.Image, error)

func (*Downloader) DownloadReadCloser

func (d *Downloader) DownloadReadCloser(ctx context.Context, bucket, object string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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