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 ExternalRef ¶
type Library ¶
type Library struct {
ID string `json:",omitempty"`
Name string
Version string
Dev bool `json:",omitempty"`
Relationship Relationship `json:",omitempty"`
License string `json:",omitempty"`
ExternalReferences []ExternalRef `json:",omitempty"`
Locations Locations `json:",omitempty"`
FilePath string `json:",omitempty"` // Required to show nested jars
}
type Parser ¶
type Parser interface {
// Parse parses the dependency file
Parse(r xio.ReadSeekerAt) ([]Library, []Dependency, error)
}
type Relationship ¶ added in v0.51.0
type Relationship int
const ( RelationshipUnknown Relationship = iota RelationshipRoot RelationshipDirect RelationshipIndirect )
func (Relationship) MarshalJSON ¶ added in v0.51.0
func (r Relationship) MarshalJSON() ([]byte, error)
func (Relationship) String ¶ added in v0.51.0
func (r Relationship) String() string
func (*Relationship) UnmarshalJSON ¶ added in v0.51.0
func (r *Relationship) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.