Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultL1ContractsLocator = &Locator{ Tag: standard.DefaultL1ContractsTag, }
View Source
var DefaultL2ContractsLocator = &Locator{ Tag: standard.DefaultL2ContractsTag, }
View Source
var ErrUnsupportedArtifactsScheme = errors.New("unsupported artifacts URL scheme")
Functions ¶
Types ¶
type CachingDownloader ¶ added in v1.11.0
type CachingDownloader struct {
// contains filtered or unexported fields
}
func (*CachingDownloader) Download ¶ added in v1.11.0
func (d *CachingDownloader) Download(ctx context.Context, url string, progress DownloadProgressor) (string, error)
type DownloadProgressor ¶
type DownloadProgressor func(current, total int64)
func BarProgressor ¶ added in v1.11.0
func BarProgressor() DownloadProgressor
func LogProgressor ¶
func LogProgressor(lgr log.Logger) DownloadProgressor
func NoopProgressor ¶ added in v1.11.0
func NoopProgressor() DownloadProgressor
type Downloader ¶ added in v1.11.0
type HTTPDownloader ¶ added in v1.11.0
type HTTPDownloader struct{}
func (*HTTPDownloader) Download ¶ added in v1.11.0
func (d *HTTPDownloader) Download(ctx context.Context, url string, progress DownloadProgressor) (string, error)
type Locator ¶
func MustNewFileLocator ¶ added in v1.11.0
func MustNewLocatorFromTag ¶ added in v1.10.0
func MustNewLocatorFromURL ¶ added in v1.11.0
func NewFileLocator ¶ added in v1.11.0
func NewLocatorFromTag ¶ added in v1.10.0
func NewLocatorFromURL ¶ added in v1.11.0
func (*Locator) MarshalText ¶
func (*Locator) UnmarshalText ¶
type TarballExtractor ¶ added in v1.11.0
type TarballExtractor struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.