14 lines
420 B
Go
14 lines
420 B
Go
package module
|
|
|
|
// Storage is an interface that knows how to lookup downloaded modules
|
|
// as well as download and update modules from their sources into the
|
|
// proper location.
|
|
type Storage interface {
|
|
// Dir returns the directory on local disk where the modulue source
|
|
// can be loaded from.
|
|
Dir(string) (string, bool, error)
|
|
|
|
// Get will download and optionally update the given module.
|
|
Get(string, bool) error
|
|
}
|