cargo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package cargo implements a notice.Collector for direct non-development dependencies of cmd/unbounded-storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

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

Collector reads Cargo.toml and Cargo.lock locally and obtains license text from Cargo's populated registry source cache.

func New

func New(cargoHome ...string) *Collector

New constructs a Collector. An empty cargoHome uses CARGO_HOME or Cargo's standard $HOME/.cargo location.

func (*Collector) Collect

func (c *Collector) Collect(root string) ([]notice.Entry, error)

Collect implements notice.Collector.

func (*Collector) Name

func (c *Collector) Name() string

Name implements notice.Collector.

func (*Collector) Precheck

func (c *Collector) Precheck(root string) error

Precheck implements notice.Collector.

Jump to

Keyboard shortcuts

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