dependencies

package
v0.4.1-k8s Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	ImportPath string
	Comment    string `json:",omitempty"`
	Rev        string
}

type DepsBuilder

type DepsBuilder struct {
	Root          string
	Package       string
	LocalPackages []string
	SkipSubdirs   []string
	BlackList     []string
	// contains filtered or unexported fields
}

DepsBuilder provides a way to compute direct dependencies of a package

func (*DepsBuilder) GetFullDependencyGraph

func (b *DepsBuilder) GetFullDependencyGraph() (Graph, error)

func (*DepsBuilder) GetPackageDependencies

func (b *DepsBuilder) GetPackageDependencies() ([]string, error)

GetPackageDependencies gives back the list of direct dependencies for the current context

type Godeps

type Godeps struct {
	Comment      string `json:"_Comment"`
	ImportPath   string
	GoVersion    string
	GodepVersion string
	Packages     []string
	Deps         []Dependency
}

func (Godeps) DumpToFile

func (gd Godeps) DumpToFile(fname string) error

type Graph

type Graph map[string]Node

func (Graph) RecursiveTransitiveClosure

func (g Graph) RecursiveTransitiveClosure(node string) []string

func (Graph) TransitiveClosure

func (g Graph) TransitiveClosure(node string) []string

type Node

type Node struct {
	Imports     []string
	TestImports []string
}

Jump to

Keyboard shortcuts

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