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

Method GetFile

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

GetFile downloads the give URL into the given path. The URL must reference a single file. If possible, the Getter should check if the remote end contains the same file and no-op this operation.

(context.Context, *Request)

Source from the content-addressed store, hash-verified

39 // reference a single file. If possible, the Getter should check if
40 // the remote end contains the same file and no-op this operation.
41 GetFile(context.Context, *Request) error
42
43 // Mode returns the mode based on the given URL. This is used to
44 // allow clients to let the getters decide which mode to use.

Callers 10

TestHgGetter_GetFileFunction · 0.65
TestHttpGetter_fileFunction · 0.65
TestGitGetter_GetFileFunction · 0.65
TestSmb_GetterGetFileFunction · 0.65
TestFileGetter_GetFileFunction · 0.65
GetFileMethod · 0.65
getMethod · 0.65
GetFileMethod · 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 7

TestHgGetter_GetFileFunction · 0.52
TestHttpGetter_fileFunction · 0.52
TestGitGetter_GetFileFunction · 0.52
TestSmb_GetterGetFileFunction · 0.52
TestFileGetter_GetFileFunction · 0.52