iso

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMinioDownloader

func NewMinioDownloader(opts ...MinioOpts) (*minioDownloader, error)

Types

type Downloader

type Downloader interface {
	Get(ctx context.Context, dst io.Writer) error
	Type() string
}

type HttpDownloader

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

func NewHttpDownloader

func NewHttpDownloader(imagePath string, imageSha256 string) *HttpDownloader

func (*HttpDownloader) Get

func (h *HttpDownloader) Get(ctx context.Context, dst io.Writer) error

func (*HttpDownloader) Type

func (h *HttpDownloader) Type() string

type Manager

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

func NewDownloaderManager

func NewDownloaderManager() *Manager

func (*Manager) Download

func (m *Manager) Download(ctx context.Context, dst io.WriteSeeker) error

func (*Manager) Register

func (m *Manager) Register(downloader Downloader) *Manager

type MinioOpts

type MinioOpts func(c *minioConfig)

func WithAccessKey

func WithAccessKey(accessKey string) MinioOpts

func WithBucket

func WithBucket(bucket string) MinioOpts

func WithEndpoint

func WithEndpoint(endpoint string) MinioOpts

func WithImage

func WithImage(imageName, imageSha256 string) MinioOpts

func WithSSL

func WithSSL(useSSL bool) MinioOpts

func WithSecretKey

func WithSecretKey(secretKey string) MinioOpts

Jump to

Keyboard shortcuts

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