lock

package
v0.0.0-...-1de9a37 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() types.Parser

Types

type Dependencies

type Dependencies map[string]Dependency

type Dependency

type Dependency struct {
	Type         string `json:"type"`
	Resolved     string `json:"resolved"`
	StartLine    int
	EndLine      int
	Dependencies map[string]string `json:"dependencies,omitempty"`
}

func (*Dependency) UnmarshalJSONWithMetadata

func (t *Dependency) UnmarshalJSONWithMetadata(node jfather.Node) error

UnmarshalJSONWithMetadata needed to detect start and end lines of deps

type LockFile

type LockFile struct {
	Version int                     `json:"version"`
	Targets map[string]Dependencies `json:"dependencies"`
}

type Parser

type Parser struct{}

func (*Parser) Parse

func (p *Parser) Parse(r dio.ReadSeekerAt) ([]types.Library, []types.Dependency, error)

Jump to

Keyboard shortcuts

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