Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(ctx context.Context, src Registry, f formula.PlatformFormula) (io.ReadCloser, error)
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.
Click to show internal directories.
Click to hide internal directories.