diff options
Diffstat (limited to 'vendor/github.com/hashicorp/go-getter/storage.go')
-rw-r--r-- | vendor/github.com/hashicorp/go-getter/storage.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/go-getter/storage.go b/vendor/github.com/hashicorp/go-getter/storage.go new file mode 100644 index 0000000..2bc6b9e --- /dev/null +++ b/vendor/github.com/hashicorp/go-getter/storage.go | |||
@@ -0,0 +1,13 @@ | |||
1 | package getter | ||
2 | |||
3 | // Storage is an interface that knows how to lookup downloaded directories | ||
4 | // as well as download and update directories from their sources into the | ||
5 | // proper location. | ||
6 | type Storage interface { | ||
7 | // Dir returns the directory on local disk where the directory source | ||
8 | // can be loaded from. | ||
9 | Dir(string) (string, bool, error) | ||
10 | |||
11 | // Get will download and optionally update the given directory. | ||
12 | Get(string, string, bool) error | ||
13 | } | ||