conan

package
v0.51.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

func NewParser() types.Parser

Types

type GraphLock

type GraphLock struct {
	Nodes map[string]Node `json:"nodes"`
}

type LockFile

type LockFile struct {
	GraphLock GraphLock `json:"graph_lock"`
	Requires  Requires  `json:"requires"`
}

type Node

type Node struct {
	Ref       string   `json:"ref"`
	Requires  []string `json:"requires"`
	StartLine int
	EndLine   int
}

func (*Node) UnmarshalJSONWithMetadata

func (n *Node) UnmarshalJSONWithMetadata(node jfather.Node) error

UnmarshalJSONWithMetadata needed to detect start and end lines of deps

type Parser

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

func (*Parser) Parse

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

type Require added in v0.51.0

type Require struct {
	Dependency string
	StartLine  int
	EndLine    int
}

func (*Require) UnmarshalJSONWithMetadata added in v0.51.0

func (r *Require) UnmarshalJSONWithMetadata(node jfather.Node) error

type Requires added in v0.51.0

type Requires []Require

Jump to

Keyboard shortcuts

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