Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mod ¶
type Mod struct {
// contains filtered or unexported fields
}
Mod implement package manager's commands
func New ¶
func New(storage Storage, moduleConfig ModuleConfig) *Mod
type ModuleConfig ¶
type ModuleConfig interface {
ReadFromRepo(ctx context.Context, repo repository.Repo, revision models.Revision) (models.ModuleConfig, error)
}
ModuleConfig should implement adapter for reading module configs
type Storage ¶
type Storage interface {
CreateCacheDir(name string) (string, error)
CreateCacheDownloadDir(module models.Module) (string, error)
GetDownloadArchivePath(cacheDownloadPath string, revision models.Revision) string
Install(archivePath string, moduleConfig models.ModuleConfig) error
}
Storage should implement workflow with storage adapter
Click to show internal directories.
Click to hide internal directories.