storage

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 New

func New(rootDir string) *Storage

func (*Storage) CreateCacheDir

func (s *Storage) CreateCacheDir(name string) (string, error)

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

func (s *Storage) CreateCacheDownloadDir(module models.Module) (string, error)

CacheDownload create and return path to downloaded cache. Like $GOPATH/pkg/mod/cache/download

func (*Storage) GetDownloadArchivePath

func (s *Storage) GetDownloadArchivePath(cacheDownloadPath string, revision models.Revision) string

GetDownloadArchivePath returns full path to download archive (include extension)

func (*Storage) Install

func (s *Storage) Install(archivePath string, moduleConfig models.ModuleConfig) error

Install package from archive

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL