Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SubCommand is the first argument to the clone of the nomad // agent process for downloading artifacts. SubCommand = "artifact-isolation" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶ added in v1.5.0
Error is a RecoverableError used to include the URL along with the underlying fetching error.
func (*Error) IsRecoverable ¶ added in v1.5.0
type Sandbox ¶ added in v1.5.0
type Sandbox struct {
// contains filtered or unexported fields
}
A Sandbox is used to download artifacts.
func New ¶ added in v1.5.0
func New(ac *config.ArtifactConfig, logger hclog.Logger) *Sandbox
New creates a Sandbox with the given ArtifactConfig.
func TestSandbox ¶ added in v1.5.0
TestSandbox creates a real artifact downloader configured via the default artifact config. It is good enough for tests so no mock implementation exists.
func (*Sandbox) Get ¶ added in v1.5.0
func (s *Sandbox) Get(env interfaces.EnvReplacer, artifact *structs.TaskArtifact) error
Click to show internal directories.
Click to hide internal directories.