deps

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DepKey

func DepKey(_type depsdev.DepType, name string, version string) string

func ToLicense

func ToLicense(rootdir string, deps []Dep) depot.LicenseStructure

Types

type Cache

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

func NewCache

func NewCache(file string) (*Cache, error)

func (*Cache) Get

func (c *Cache) Get(key string) (Dep, bool)

func (*Cache) Put

func (c *Cache) Put(dep Dep)

func (*Cache) Save

func (c *Cache) Save() error

type Dep

type Dep struct {
	Context  string          `json:"-"`
	Type     depsdev.DepType `json:"t"`
	Name     string          `json:"n"`
	Version  string          `json:"v"`
	Indirect bool            `json:"-"`
	License  []string        `json:"l"`
}

func (Dep) Key

func (d Dep) Key() string

type Processor

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

func New

func New(cache *Cache) *Processor

func (*Processor) From

func (pro *Processor) From(file string, _type depsdev.DepType) ([]Dep, error)

func (*Processor) FromCargo

func (pro *Processor) FromCargo(lockFilePath string) (deps []Dep, err error)

func (*Processor) FromFile

func (pro *Processor) FromFile(path string) ([]Dep, error)

func (*Processor) FromGO

func (pro *Processor) FromGO(path string) (deps []Dep, err error)

func (*Processor) FromMaven

func (pro *Processor) FromMaven(path string) (deps []Dep, err error)

func (*Processor) FromNPM

func (pro *Processor) FromNPM(path string) (deps []Dep, err error)

func (*Processor) FromPypi added in v0.0.7

func (pro *Processor) FromPypi(path string) (deps []Dep, err error)

func (*Processor) LicensesOf

func (pro *Processor) LicensesOf(depType depsdev.DepType, name string, version string) ([]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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