conan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEmptyOrNull

func IsEmptyOrNull(str string) bool

func Name

func Name() string

func PkgType

func PkgType() model.PkgType

Types

type Collector

type Collector struct {
	collector.BaseCollector
}

func NewCollector

func NewCollector() *Collector

type ConanFileParser

type ConanFileParser struct{}

ConanFileParser is a parser for conanfile.txt file see: https://docs.conan.io/2/reference/conanfile_txt.html

func NewConanFileParser

func NewConanFileParser() *ConanFileParser

NewConanFileParser returns a new ConanFileParser

func (*ConanFileParser) Matcher

func (m *ConanFileParser) Matcher() collector.FileMatcher

func (*ConanFileParser) Parse

func (m *ConanFileParser) Parse(filePath string) ([]model.Package, error)

type ConanGraphParser

type ConanGraphParser struct{}

ConanGraphParser is a parser for output of executing 'conan graph info' command see: https://docs.conan.io/2/reference/commands/graph/info.html

func NewConanGraphParser

func NewConanGraphParser() *ConanGraphParser

func (*ConanGraphParser) Matcher

func (m *ConanGraphParser) Matcher() collector.FileMatcher

func (*ConanGraphParser) Parse

func (m *ConanGraphParser) Parse(filePath string) ([]model.Package, error)

type ConanLockParser

type ConanLockParser struct{}

ConanLockParser is a parser for conan.lock

func NewConanLockParser

func NewConanLockParser() *ConanLockParser

NewConanLockParser returns a new ConanLockParser

func (*ConanLockParser) Matcher

func (m *ConanLockParser) Matcher() collector.FileMatcher

func (*ConanLockParser) Parse

func (m *ConanLockParser) Parse(filePath string) ([]model.Package, error)

type Dependency

type Dependency struct {
	Ref string `json:"ref"`
}

type Graph

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

type Node

type Node struct {
	Name         string                `json:"name"`
	Version      string                `json:"version"`
	License      string                `json:"license"`
	Dependencies map[string]Dependency `json:"dependencies"`
}

type ParserFile

type ParserFile struct {
	Graph Graph `json:"graph"`
}

type Pkg

type Pkg struct {
	Ref     string `json:"ref"`
	License string `json:"license"`
}

type Result

type Result struct {
	Nodes []Pkg `json:"nodes"`
}

Jump to

Keyboard shortcuts

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