govendor

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 8 Imported by: 4

Documentation

Overview

Package govendor provides tools for working with govendor.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UsedIn

func UsedIn(dirname string) (bool, error)

UsedIn checks whether govendor is used correctly within a project folder.

Types

type Lockfile

type Lockfile struct {
	Comment string
	Ignore  string
	Package []Package
	// contains filtered or unexported fields
}

Lockfile contains the contents of a govendor lockfile.

func FromFile

func FromFile(filename string) (Lockfile, error)

FromFile reads a raw Lockfile from a vendor/vendor.json file.

func New

func New(dirname string) (Lockfile, error)

func (Lockfile) Resolve

func (l Lockfile) Resolve(importpath string) (pkg.Import, error)

type Package

type Package struct {
	Path         string
	ChecksumSHA1 string
	Revision     string
	RevisionTime time.Time
	Version      string
	VersionExact string
}

A Package is a single imported package within a govendor project.

Jump to

Keyboard shortcuts

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