open-nomad/client/allocrunner/taskrunner/getter
Seth Hoenig bb8a5816a0 jobspec: add support for headers in artifact stanza
This PR adds the ability to set HTTP headers when downloading
an artifact from an `http` or `https` resource.

The implementation in `go-getter` is such that a new `HTTPGetter`
must be created for each artifact that sets headers (as opposed
to conveniently setting headers per-request). This PR maintains
the memoization of the default Getter objects, creating new ones
only for artifacts where headers are set.

Closes #9306
2020-11-13 12:03:54 -06:00
..
test-fixtures
getter.go jobspec: add support for headers in artifact stanza 2020-11-13 12:03:54 -06:00
getter_test.go jobspec: add support for headers in artifact stanza 2020-11-13 12:03:54 -06:00