gem

package
v1.26.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDependencyTree

func BuildDependencyTree(params technologies.BuildInfoBomGeneratorParams) (dependencyTrees []*xrayUtils.GraphNode, uniqueDeps []string, err error)

Types

type GemDep

type GemDep struct {
	Ref    string `json:"ref"`
	Direct bool   `json:"direct"`
}

type GemGraph

type GemGraph struct {
	Nodes map[string]GemRef `json:"nodes"`
}

type GemGraphInput

type GemGraphInput struct {
	Graph GemGraph `json:"graph"`
}

GemGraphInput represents the top-level structure for unmarshalling the gem dependency graph.

type GemRef

type GemRef struct {
	Ref          string            `json:"ref"`
	Name         string            `json:"name"`
	Version      string            `json:"version"`
	Dependencies map[string]GemDep `json:"dependencies"`
	// contains filtered or unexported fields
}

func (*GemRef) Node

func (gr *GemRef) Node(children ...*xrayUtils.GraphNode) *xrayUtils.GraphNode

func (*GemRef) NodeName

func (gr *GemRef) NodeName() string

NodeName returns the reference string of the gem, used as its ID in the graph.

Jump to

Keyboard shortcuts

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