repos

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoTagsAvailable = errors.New("no tags available")

Functions

func LatestGithubReleaseTag

func LatestGithubReleaseTag(lister GithubTagLister, owner, repo string) (*semver.Version, error)

LatestGithubReleaseTag returns the latest release tag for a given repo.

Types

type GithubTagLister

type GithubTagLister interface {
	ListTags(ctx context.Context, owner, repo string) ([]string, error)
}

type GithubTagListerFunc

type GithubTagListerFunc func(ctx context.Context, owner, repo string) ([]string, error)

func (GithubTagListerFunc) ListTags

func (f GithubTagListerFunc) ListTags(ctx context.Context, owner, repo string) ([]string, error)

Jump to

Keyboard shortcuts

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