tarball

package
v6.4.3-0...-c351b0c Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(source Source) (path string, found bool)
	Path(source Source) (path string)
	Save(sourcePath string, source Source) error
}

func NewCache

func NewCache(basePath string, fs boshsys.FileSystem, logger boshlog.Logger) Cache

type Provider

type Provider interface {
	Get(Source, biui.Stage) (path string, err error)
}

func NewProvider

func NewProvider(
	cache Cache,
	fs boshsys.FileSystem,
	httpClient *httpclient.HTTPClient,
	downloadAttempts int,
	delayTimeout time.Duration,
	logger boshlog.Logger,
) Provider

type Source

type Source interface {
	GetURL() string
	GetSHA1() string
	Description() string
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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