ref

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetermineGitHubRefType

func DetermineGitHubRefType(owner string, repo string, unknownRef string) (*PossiblyStableTag, *Branch, bool, error)

DetermineGitHubRefType will use the GitHub API to determine if a passed ref is a commit, branch or tag

func IsSHAInRepo

func IsSHAInRepo(owner string, repo string, commitSHA string) (bool, error)

func RefToParts

func RefToParts(ref string) (string, string, string, string, error)

RefToParts takes a uses reference and splits into owner, repo, path and ref

Types

type Branch

type Branch struct {
	BranchName string
	CommitSHA  string
}

type PossiblyStableTag

type PossiblyStableTag struct {
	TagName   string
	CommitSHA string
}

Jump to

Keyboard shortcuts

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