deps

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package deps provides commands for managing external dependencies required by data sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheckCommand

func NewCheckCommand() *cobra.Command

NewCheckCommand creates the deps check subcommand.

func NewCommand

func NewCommand() *cobra.Command

NewCommand creates the deps command.

Types

type CheckResults

type CheckResults struct {
	Sources           []SourceDepStatus `json:"sources" yaml:"sources"`
	TotalDeps         int               `json:"total_deps" yaml:"total_deps"`
	AvailableDeps     int               `json:"available_deps" yaml:"available_deps"`
	MissingDeps       int               `json:"missing_deps" yaml:"missing_deps"`
	SourcesWithNoDeps int               `json:"sources_with_no_deps" yaml:"sources_with_no_deps"`
}

CheckResults aggregates all statuses.

type DependencyDetail

type DependencyDetail struct {
	Dependency sources.Dependency       `json:"dependency" yaml:"dependency"`
	Status     sources.DependencyStatus `json:"status" yaml:"status"`
}

DependencyDetail combines dependency definition with status.

type SourceDepStatus

type SourceDepStatus struct {
	SourceID     sources.ID         `json:"source_id" yaml:"source_id"`
	SourceName   string             `json:"source_name" yaml:"source_name"`
	IsOptional   bool               `json:"is_optional" yaml:"is_optional"`
	Dependencies []DependencyDetail `json:"dependencies" yaml:"dependencies"`
}

SourceDepStatus holds dependency status for one source.

Jump to

Keyboard shortcuts

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