downloader

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader interface {
	Download(name string, version string) (string, error)
}

Downloader to use to fetch services from catalog

func New

func New(opt Options) Downloader

New creates new Downloader

type MockDownloader

type MockDownloader struct {
	mock.Mock
}

MockDownloader is an autogenerated mock type for the Downloader type

func (*MockDownloader) Download

func (_m *MockDownloader) Download(name string, version string) (string, error)

Download provides a mock function with given fields: name, version

type Options

type Options struct {
	Store  string
	Logger logger.Logger
}

Options to create new Downloader

Jump to

Keyboard shortcuts

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