mirror of
https://github.com/Velocidex/velociraptor.git
synced 2026-10-12 02:09:59 +00:00
This allows us to validate offline spec files and reject invalid files. Also added an upload to the Server.Utils.CreateCollector that contains the spec file for ease of use. Users now simply can download that spec file and use it on the CLI builder. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 lines
174 B
Go
9 lines
174 B
Go
package utils
|
|
|
|
import "net/http"
|
|
|
|
// Create a HTTPClient with superpowers to be used everywhere.
|
|
type HTTPClient interface {
|
|
Do(req *http.Request) (*http.Response, error)
|
|
}
|