Help us shape the future of Go! Take the 2026 Go Developer Survey

gem

package
v1.41.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 18 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)

func DefaultGemrcPaths added in v1.37.0

func DefaultGemrcPaths() []string

DefaultGemrcPaths returns the gemrc file candidates this feature consults: ~/.gemrc, followed by any files listed in GEMRC. A later file's ':sources:' overrides an earlier one.

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.

type GemrcRegistryConfig added in v1.37.0

type GemrcRegistryConfig struct {
	ArtifactoryUrl string
	RepoName       string
	AuthUser       string
	AuthToken      string
}

GemrcRegistryConfig holds the Artifactory URL, repo name, and credentials parsed from a gemrc source entry.

func GetNativeGemRegistryConfig added in v1.37.0

func GetNativeGemRegistryConfig() (*GemrcRegistryConfig, error)

GetNativeGemRegistryConfig reads gemrc's ':sources:' list and returns the first Artifactory gems source found. This is the ~/.gemrc fallback consulted only when no ruby.yaml ('jf ruby-config') is present -- see setRepoFromGemrc in the curation package for the full priority.

type NotConfiguredError added in v1.37.0

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

func (*NotConfiguredError) Error added in v1.37.0

func (e *NotConfiguredError) Error() string

Jump to

Keyboard shortcuts

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