modulereflect

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LockFile

type LockFile interface {
	Read(moduleName string) (models.LockFileInfo, error)
}

ModuleReflect helper for gettings information about modules

type Mod

type Mod interface {
	Get(ctx context.Context, module models.Module) error
}

ModuleReflect helper for gettings information about modules

type ModuleReflect

type ModuleReflect struct {
	// contains filtered or unexported fields
}

ModuleReflect helper for gettings information about modules

func New

func New(mod Mod, storage Storage, lockFile LockFile) *ModuleReflect

func (*ModuleReflect) GetModulePath

func (h *ModuleReflect) GetModulePath(ctx context.Context, requestedDependency string) (string, error)

GetModulePath return full path on fs for requestedDependency or install it

type Storage

type Storage interface {
	IsModuleInstalled(module models.Module) (bool, error)
	GetInstallDir(moduleName string, revisionVersion string) string
}

ModuleReflect helper for gettings information about modules

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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