-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
package getter | ||
|
||
// Storage is an interface that knows how to lookup downloaded modules | ||
// as well as download and update modules from their sources into the | ||
// 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. | ||
type Storage interface { | ||
// Dir returns the directory on local disk where the modulue source | ||
// Dir returns the directory on local disk where the directory source | ||
// can be loaded from. | ||
Dir(string) (string, bool, error) | ||
|
||
// Get will download and optionally update the given module. | ||
// Get will download and optionally update the given directory. | ||
Get(string, string, bool) error | ||
} |