git

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefType added in v0.3.0

type RefType int
const (
	DefaultBranchRef RefType = iota
	ReleaseBranchRef
	ReleaseRef
)

func (RefType) String added in v0.3.0

func (rt RefType) String() string

type Repo

type Repo struct {
	Ref           string
	DefaultBranch string
	Tags          []string
	Branches      []string
}

func GetRepo

func GetRepo(ref, url string) (*Repo, error)

func (*Repo) BestRefFor

func (r *Repo) BestRefFor(this semver.Version) (string, RefType)

BestRefFor Returns module@ref, isRelease

Source Files

Jump to

Keyboard shortcuts

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