binary

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	fs.FileSystem
}

File represents a simplest possible Downloader implementation where the sources are just copied from local directory.

func (*File) Download

func (f *File) Download(config *api.Config) (*git.SourceInfo, error)

Download download sources from a http link into the working directory. Caller guarantees that config.Source.IsLocal() is true.

type WriteCounter

type WriteCounter struct {
	Total uint64
	Size  uint64
}

write cycle.

func (WriteCounter) PrintProgress

func (wc WriteCounter) PrintProgress()

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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