repository

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(s string) (coordinates.Module, error)

Parse will parse s as a module in string form.

Types

type Blob

type Blob []byte

A Blob is an in-memory zip archive, representative of a module that was extracted from a repository that was downloaded from upstream.

There might not be a go.mod file, but there should not be more than one.

func (Blob) ModFile

func (b Blob) ModFile() (string, bool, error)

type Redirect

type Redirect struct {
	Original     string `json:"original"`
	Substitution string `json:"substitution"`
}

type RevInfo

type RevInfo struct {
	Version string    `json:"version,omitempty"` // version string
	Name    string    `json:"name,omitempty"`    // complete ID in underlying repository
	Short   string    `json:"short,omitempty"`   // shortened ID, for use in pseudo-version
	Time    time.Time `json:"time,omitempty"`    // commit time
}

func (RevInfo) Bytes

func (ri RevInfo) Bytes() []byte

func (RevInfo) String

func (ri RevInfo) String() string

Jump to

Keyboard shortcuts

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