download

package
v0.96.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup added in v0.80.0

func Cleanup(directory string)

Cleanup removes previous downloaded artifacts

func GetDirName added in v0.87.0

func GetDirName(suiteName string, cfg config.ArtifactDownload) (string, error)

GetDirName returns a target folder that's based on a combination of suiteName and the configured artifact download folder. The suiteName is sanitized by undergoing character replacements that are safe to be used as a directory name. If the determined target directory already exists, a running number is added as a suffix.

func ShouldDownloadArtifact

func ShouldDownloadArtifact(jobID string, passed, timedOut, async bool, cfg config.ArtifactDownload) bool

ShouldDownloadArtifact returns true if it should download artifacts, otherwise false

Types

type ArtifactDownloader

type ArtifactDownloader interface {
	DownloadArtifact(jobID, suiteName string) []string
}

ArtifactDownloader defines download functions and returns downloaded file list

Jump to

Keyboard shortcuts

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