importers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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 Importer

type Importer interface {
	// Name of the importer.
	Name() string

	// Import the config found in the directory.
	Import(path string, pr gps.ProjectRoot) (*dep.Manifest, *dep.Lock, error)

	// HasDepMetadata checks if a directory contains config that the importer can handle.
	HasDepMetadata(dir string) bool
}

Importer handles importing configuration from other dependency managers into the dep configuration format.

func BuildAll

func BuildAll(logger *log.Logger, verbose bool, sm gps.SourceManager) []Importer

BuildAll returns a slice of all the importers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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