resolver

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2018 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package resolver provides Go resolvers.

Index

Constants

View Source
const (
	Dep      = Type("dep")
	Gdm      = Type("gdm")
	Glide    = Type("glide")
	Godep    = Type("godep")
	Govendor = Type("govendor")
	Vndr     = Type("vndr")
)

Lockfile resolvers.

Variables

View Source
var (
	ErrResolverNotFound = errors.New("unrecognized Go resolver")
)

Errors from lockfile resolvers.

Functions

This section is empty.

Types

type Resolver

type Resolver interface {
	Resolve(importpath string) (pkg.Import, error)
}

A Resolver provides a single method for resolving the revision of a Go package.

func FromLockfile

func FromLockfile(tool Type, dir string) (Resolver, error)

FromLockfile constructs a resolver from a lockfile and its directory.

type Type

type Type string

Type is an enumeration of Resolver types. This helps clarify return signatures for functions that return many strings.

Jump to

Keyboard shortcuts

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