forge

package
v1.5.4 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTarget

func IsTarget(value string) bool

func SetVerbose

func SetVerbose(enabled bool, writer io.Writer)

func VerboseEnabledForTest

func VerboseEnabledForTest() bool

Types

type Finder

type Finder struct {
	Target Target
	Tag    string
	Getter HTTPGetter
}

func (Finder) Find

func (f Finder) Find() ([]string, error)

type HTTPGetter

type HTTPGetter interface {
	Get(url string) (*http.Response, error)
}

type LatestInfo

type LatestInfo struct {
	Tag string
}

func LatestVersion

func LatestVersion(target Target, getter HTTPGetter) (LatestInfo, error)

type Provider

type Provider string
const (
	ProviderGitLab  Provider = "gitlab"
	ProviderGitea   Provider = "gitea"
	ProviderForgejo Provider = "forgejo"
)

type Target

type Target struct {
	Provider   Provider
	Host       string
	Namespace  string
	Project    string
	Normalized string
}

func ParseTarget

func ParseTarget(value string) (Target, error)

Jump to

Keyboard shortcuts

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