bottle

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

Fetch fetches a Bottle from the BottleRegistry.

func FetchAll

func FetchAll(ctx context.Context, src Registry, formulae []formula.PlatformFormula) ([]io.ReadCloser, error)

FetchAll fetches Bottles from the BottleRegistry.

Types

type ConcurrentRegistry

type ConcurrentRegistry interface {
	Registry
	FetchBottles(ctx context.Context, flist []formula.PlatformFormula) ([]io.ReadCloser, error)
}

ConcurrentRegistry is a source of Bottles that supports concurrent fetching.

type Registry

type Registry interface {
	// FetchBottle fetches a Bottle from the remote location
	FetchBottle(ctx context.Context, f formula.PlatformFormula) (io.ReadCloser, error)
}

Registry is a source of Bottles.

Jump to

Keyboard shortcuts

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