types

package
v0.0.0-...-423cd04 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 1 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependencies

type Dependencies []Dependency

func (Dependencies) Len

func (deps Dependencies) Len() int

func (Dependencies) Less

func (deps Dependencies) Less(i, j int) bool

func (Dependencies) Swap

func (deps Dependencies) Swap(i, j int)

type Dependency

type Dependency struct {
	ID        string
	DependsOn []string
}

type ExternalRef

type ExternalRef struct {
	Type RefType
	URL  string
}

type Libraries

type Libraries []Library

func (Libraries) Len

func (libs Libraries) Len() int

func (Libraries) Less

func (libs Libraries) Less(i, j int) bool

func (Libraries) Swap

func (libs Libraries) Swap(i, j int)

type Library

type Library struct {
	ID                 string `json:",omitempty"`
	Name               string
	Version            string
	Dev                bool
	Indirect           bool          `json:",omitempty"`
	License            string        `json:",omitempty"`
	ExternalReferences []ExternalRef `json:",omitempty"`
	Locations          Locations     `json:",omitempty"`
	FilePath           string        `json:",omitempty"` // Required to show nested jars
}

type Location

type Location struct {
	StartLine int `json:",omitempty"`
	EndLine   int `json:",omitempty"`
}

Location in lock file

type Locations

type Locations []Location

func (Locations) Len

func (locs Locations) Len() int

func (Locations) Less

func (locs Locations) Less(i, j int) bool

func (Locations) Swap

func (locs Locations) Swap(i, j int)

type Parser

type Parser interface {
	// Parse parses the dependency file
	Parse(r dio.ReadSeekerAt) ([]Library, []Dependency, error)
}

type RefType

type RefType string
const (
	RefWebsite      RefType = "website"
	RefLicense      RefType = "license"
	RefVCS          RefType = "vcs"
	RefIssueTracker RefType = "issue-tracker"
	RefOther        RefType = "other"
)

Jump to

Keyboard shortcuts

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