iso

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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