dep

package
v0.0.0-...-cfb1625 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dep implements dependency crawling for tythe.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dep

type Dep struct {
	ID

	// Conf is the Tythe config for the dependency, or nil if there is none.
	Conf *conf.Config `json:"config"`
}

Dep describes a dependency (direct or indirect) of a root package.

type ID

type ID struct {
	// Type is the type of dependency.
	Type Type `json:"type"`

	// Name is a human-readable name for the dependency.
	Name string `json:"name"`
}

ID is a unique identifier for a dependency.

func (ID) IsEmpty

func (id ID) IsEmpty() bool

func (ID) String

func (id ID) String() string

type Type

type Type int

Type represents a dependency "type". For example, Go or npm.

const (
	// None represents no dependency type.
	None Type = iota

	// Go represents a golang dependency.
	Go

	// NPM represents a npm dependency.
	NPM
)

func (Type) String

func (t Type) String() string

Directories

Path Synopsis
Package crawl implements the core of the dependency crawler.
Package crawl implements the core of the dependency crawler.
Package golang implements the Go-specific parts of dependency crawling.
Package golang implements the Go-specific parts of dependency crawling.
Package npm implements the npm-specific bits of dependency crawling.
Package npm implements the npm-specific bits of dependency crawling.

Jump to

Keyboard shortcuts

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