depman

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DependencyDirName = ".dep"
)
View Source
const (
	RAMLExt = ".raml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedDependencyInfo added in v0.17.0

type CachedDependencyInfo struct {
	Path      string
	Source    string
	Version   string
	Integrity string
	Index     ctipackage.Index
}

type DependencyManager added in v0.14.0

type DependencyManager interface {
	// Add new dependencies to index.lock
	Add(pkg *ctipackage.Package, depends map[string]string) error
	// Install dependencies from index.lock
	Install(pkg *ctipackage.Package) error
	// Download dependencies and their sub-dependencies
	Download(depends map[string]string) ([]CachedDependencyInfo, error)
}

func New added in v0.14.0

func New(options ...Option) (DependencyManager, error)

type Option added in v0.17.0

type Option func(*dependencyManager)

func WithPackagesCache added in v0.20.0

func WithPackagesCache(cacheDir string) Option

func WithStorage added in v0.21.0

func WithStorage(st storage.Storage) Option

type PackageIntegrityInfo added in v0.20.0

type PackageIntegrityInfo struct {
	Source  string `json:"Source"`
	Version string `json:"Version"`
	Hash    string `json:"Hash"`
}

func (*PackageIntegrityInfo) Read added in v0.20.0

func (inf *PackageIntegrityInfo) Read(dm *dependencyManager, pkgId string, version string) error

func (*PackageIntegrityInfo) Write added in v0.20.0

func (inf *PackageIntegrityInfo) Write(dm *dependencyManager, pkgId string, version string) error

type SourceIntegrityInfo added in v0.17.0

type SourceIntegrityInfo struct {
	Version string         `json:"Version"`
	Time    string         `json:"Time"`
	Origin  storage.Origin `json:"Origin"`
}

func (*SourceIntegrityInfo) Read added in v0.17.0

func (inf *SourceIntegrityInfo) Read(dm *dependencyManager, source string, version string) error

func (*SourceIntegrityInfo) Write added in v0.17.0

func (inf *SourceIntegrityInfo) Write(dm *dependencyManager, source string, version string) error

Jump to

Keyboard shortcuts

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