Help us shape the future of Go! Take the 2026 Go Developer Survey

getter

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: MPL-2.0 Imports: 8 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArtifact

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

GetArtifact downloads an artifact into the specified task directory.

Types

type EnvReplacer

type EnvReplacer interface {
	ReplaceEnv(string) string
	ClientPath(string, bool) (string, bool)
}

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

type GetError

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

func (g *GetError) Error() string

func (*GetError) IsRecoverable

func (g *GetError) IsRecoverable() bool

Jump to

Keyboard shortcuts

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