mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-09-07 09:36:44 +00:00
14 lines
441 B
Go
14 lines
441 B
Go
![]() |
package getter
|
||
|
|
||
|
// 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 directory source
|
||
|
// can be loaded from.
|
||
|
Dir(string) (string, bool, error)
|
||
|
|
||
|
// Get will download and optionally update the given directory.
|
||
|
Get(string, string, bool) error
|
||
|
}
|