getter

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2018 License: MPL-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArtifact

func GetArtifact(taskEnv EnvReplacer, artifact *structs.TaskArtifact, taskDir string) error

GetArtifact downloads an artifact into the specified task directory.

Types

type EnvReplacer added in v0.6.0

type EnvReplacer interface {
	ReplaceEnv(string) string
}

EnvReplacer is an interface which can interpolate environment variables and is usually satisfied by env.TaskEnv.

type GetError added in v0.5.6

type GetError struct {
	URL string
	Err error
	// contains filtered or unexported fields
}

GetError wraps the underlying artifact fetching error with the URL. It implements the RecoverableError interface.

func (*GetError) Error added in v0.5.6

func (g *GetError) Error() string

func (*GetError) IsRecoverable added in v0.5.6

func (g *GetError) IsRecoverable() bool

Jump to

Keyboard shortcuts

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