lockfile

package
v0.1.163 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lockfile

type Lockfile struct {
	Plugins []*Plugin `json:"plugins,omitempty"`
	// contains filtered or unexported fields
}

func LoadLockfile

func LoadLockfile(f string) (*Lockfile, error)

func LoadLockfileData

func LoadLockfileData(path string, data []byte) (*Lockfile, error)

func (*Lockfile) PluginByName

func (l *Lockfile) PluginByName(name string) *Plugin

func (*Lockfile) Validate

func (l *Lockfile) Validate() error

type Plugin

type Plugin struct {
	Name    string          `json:"name" valid:"required"`
	Version *semver.Version `json:"version" valid:"required"`
	Source  string          `json:"source" valid:"required"`
}

func (*Plugin) Matches

func (p *Plugin) Matches(name string, ver *semver.Version, source string) bool

func (*Plugin) Validate

func (p *Plugin) Validate() error

Jump to

Keyboard shortcuts

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