gopkg

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const LockName = "Gopkg.lock"

LockName is the lock file name used by dep.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

type Lock struct {
	SolveMeta SolveMeta `toml:"solve-meta"`
	Projects  []Project `toml:"projects"`
}

Lock represents the raw lock file structure of dep.

func ReadLock

func ReadLock(r io.Reader) (*Lock, error)

ReadLock parses data read as a lock file.

type Project

type Project struct {
	Name      string   `toml:"name"`
	Branch    string   `toml:"branch,omitempty"`
	Revision  string   `toml:"revision"`
	Version   string   `toml:"version,omitempty"`
	Source    string   `toml:"source,omitempty"`
	Packages  []string `toml:"packages"`
	PruneOpts string   `toml:"pruneopts"`
	Digest    string   `toml:"digest"`
}

Project represents a single project as seen in the dep lock file.

type SolveMeta

type SolveMeta struct {
	AnalyzerName    string   `toml:"analyzer-name"`
	AnalyzerVersion int      `toml:"analyzer-version"`
	SolverName      string   `toml:"solver-name"`
	SolverVersion   int      `toml:"solver-version"`
	InputImports    []string `toml:"input-imports"`
}

SolveMeta holds metadata about the solving process that created the lock that is not specific to any individual project.

Jump to

Keyboard shortcuts

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