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

Method Mode

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

Mode returns the mode based on the given URL. This is used to allow clients to let the getters decide which mode to use.

(context.Context, *url.URL)

Source from the content-addressed store, hash-verified

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.
45 Mode(context.Context, *url.URL) (Mode, error)
46
47 // Detect detects whether the Request.Src matches a known pattern to
48 // turn it into a proper URL, and also transforms and update Request.Src

Callers 15

untarFunction · 0.65
copyFileFunction · 0.65
DetectMethod · 0.65
DecompressMethod · 0.65
TestSmb_GetterModeFunction · 0.65
TestFileGetterFunction · 0.65
TestFileGetter_GetFileFunction · 0.65
TestFileGetter_Mode_fileFunction · 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

TestSmb_GetterModeFunction · 0.52
TestFileGetterFunction · 0.52
TestFileGetter_GetFileFunction · 0.52
TestFileGetter_Mode_fileFunction · 0.52
TestFileGetter_Mode_dirFunction · 0.52
TestGetter_Mode_dirFunction · 0.52
TestGetter_Mode_fileFunction · 0.52
TestGetter_Mode_notfoundFunction · 0.52