Documentation
¶
Index ¶
- type Storage
- func (s *Storage) CreateCacheDir(name string) (string, error)
- func (s *Storage) CreateCacheDownloadDir(module models.Module) (string, error)
- func (s *Storage) GetDownloadArchivePath(cacheDownloadPath string, revision models.Revision) string
- func (s *Storage) Install(archivePath string, moduleConfig models.ModuleConfig) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements workflows with directories
func (*Storage) CreateCacheDir ¶
CacheDir create and return path to cache dir. cache dir contains repository cache for repository with proto files. cmd/go/internal/modfetch/codehost/codehost.go: 228 - create workdir
func (*Storage) CreateCacheDownloadDir ¶
CacheDownload create and return path to downloaded cache. Like $GOPATH/pkg/mod/cache/download
func (*Storage) GetDownloadArchivePath ¶
GetDownloadArchivePath returns full path to download archive (include extension)
Click to show internal directories.
Click to hide internal directories.