MCPcopy
hub / github.com/hashicorp/go-getter / Get

Method Get

get.go:36–36  ·  view source on GitHub ↗

Get downloads the given URL into the given directory. This always assumes that we're updating and gets the latest version that it can. The directory may already exist (if we're updating). If it is in a format that isn't understood, an error should be returned. Get shouldn't simply nuke the director

(context.Context, *Request)

Source from the content-addressed store, hash-verified

34 // format that isn't understood, an error should be returned. Get shouldn't
35 // simply nuke the directory.
36 Get(context.Context, *Request) error
37
38 // GetFile downloads the give URL into the given path. The URL must
39 // reference a single file. If possible, the Getter should check if

Callers 15

TestGetFile_checksumURLFunction · 0.65
TestGetFile_checksumSkipFunction · 0.65
TestGetFile_inplaceFunction · 0.65
TestHgGetterFunction · 0.65
TestHgGetter_branchFunction · 0.65
TestGet_progressFunction · 0.65
GetMethod · 0.65
TestHttpGetter_headerFunction · 0.65
TestHttpGetter_metaFunction · 0.65

Implementers 9

SmbClientGetterget_smbclient.go
HgGetterget_hg.go
FileGetterget_file.go
GitGetterget_git.go
SmbMountGetterget_smb_mount.go
HttpGetterget_http.go
MockGetterget_mock.go
Gettergcs/get_gcs.go
Getters3/get_s3.go

Calls

no outgoing calls

Tested by 15

TestGetFile_checksumURLFunction · 0.52
TestGetFile_checksumSkipFunction · 0.52
TestGetFile_inplaceFunction · 0.52
TestHgGetterFunction · 0.52
TestHgGetter_branchFunction · 0.52
TestGet_progressFunction · 0.52
TestHttpGetter_headerFunction · 0.52
TestHttpGetter_metaFunction · 0.52
TestHttpGetter_noneFunction · 0.52