lockfile

package
v0.1.143 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 6 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 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