mod

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildList

type BuildList map[VersionedModule]bool

func ConstructBuildList

func ConstructBuildList(g BuildListGraph, root VersionedModule) (BuildList, error)

func (BuildList) ToSlice

func (s BuildList) ToSlice() []VersionedModule

type BuildListGraph

type BuildListGraph interface {
	GetDependencies(vmod VersionedModule) ([]VersionedModule, error)
}

type ModuleFile

type ModuleFile struct {
	Name string
}

type NativePackageReader

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

func NewNativePackageReader

func NewNativePackageReader(path string) *NativePackageReader

func (*NativePackageReader) ListUnits

func (r *NativePackageReader) ListUnits() ([]string, error)

func (*NativePackageReader) Path

func (r *NativePackageReader) Path() string

func (*NativePackageReader) ReadUnit

func (r *NativePackageReader) ReadUnit(unit string) ([]byte, error)

type PackageReader

type PackageReader interface {
	Path() string
	ListUnits() ([]string, error)
	ReadUnit(unit string) ([]byte, error)
}

type Requirement

type Requirement struct {
	ModuleID string
	Version  Version
}

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func (Version) Compare

func (v Version) Compare(v2 Version) int

type VersionedModule

type VersionedModule struct {
	ModuleID string
	Version  Version
}

Jump to

Keyboard shortcuts

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