file

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RetryDuration    = 5 * time.Second
	CannotReadErrMsg = "cannot read artifact from disk. Error: '%v'. Perhaps it resides in another repository?"
	WaitMsg          = "wait: '%v' before retrying"
)

Variables

This section is empty.

Functions

func CreateIfDoesNotExistInvalidOrEmpty

func CreateIfDoesNotExistInvalidOrEmpty(url, f string, body io.ReadCloser, invalid bool) error

func DownloadWithRetries

func DownloadWithRetries(url string, auth ...string) (*http.Response, error)

func EmptyFile

func EmptyFile(f string) (emptyFile bool)

func Exists

func Exists(f string) (int64, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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