Help us shape the future of Go! Take the 2026 Go Developer Survey

blob

package
v0.40.10 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blob

type Blob interface {
	Open() (io.ReadCloser, error)
}

func NewBlob

func NewBlob(path string) Blob

type Downloader

type Downloader interface {
	Download(ctx context.Context, pathOrURI string) (Blob, error)
}

func NewDownloader

func NewDownloader(logger Logger, baseCacheDir string, opts ...DownloaderOption) Downloader

type DownloaderOption added in v0.34.0

type DownloaderOption func(d *downloader)

func WithClient added in v0.34.0

func WithClient(client *http.Client) DownloaderOption

type Logger

type Logger interface {
	Debugf(fmt string, v ...interface{})
	Infof(fmt string, v ...interface{})
	Writer() io.Writer
}

Jump to

Keyboard shortcuts

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