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

Interface Storage

storage.go:8–15  ·  view source on GitHub ↗

Storage is an interface that knows how to lookup downloaded directories as well as download and update directories from their sources into the proper location.

Source from the content-addressed store, hash-verified

6// as well as download and update directories from their sources into the
7// proper location.
8type Storage interface {
9 // Dir returns the directory on local disk where the directory source
10 // can be loaded from.
11 Dir(string) (string, bool, error)
12
13 // Get will download and optionally update the given directory.
14 Get(context.Context, string, string, bool) error
15}

Callers 8

smbclientGetFileMethod · 0.65
DecompressMethod · 0.65
untarFunction · 0.65
DecompressMethod · 0.65
TestGetFileFunction · 0.65
TestGetFile_archiveFunction · 0.65

Implementers 1

FolderStoragefolder_storage.go

Calls

no outgoing calls

Tested by

no test coverage detected