Documentation ¶
Overview ¶
package autodiscovery is an implementation of the VCS Autodiscovery RFC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forge ¶
type Forge struct { Summary string // overview of the project Dir string File string // file with pretty printing Line string // file with specific line hightlighted RawFile string }
Forge indicates the URLs pattern available in the software forge (with {ref}, {path} and {line} as placeholders).
func (Forge) RawFileURL ¶ added in v0.9.3
type VCS ¶
type VCS struct { // VCS Standard Tags Kind string // git, fossil, pijul... DefaultBranch string Clone []string // URLs for clones (unauthenticated first) Forge Forge }
VCS represents the Version Control System being used.
func Forgejo ¶ added in v0.9.0
Forgejo generates VCS for forgejo/gitea. For instance "https://codeberg.org/pfad.fr/vanitydoc" and defaultBranch "main".
func Github ¶
Github generates VCS for github. For instance "https://github.com/fluhus/godoc-tricks" and defaultBranch "main".
func Infer ¶ added in v0.16.0
Infer tries to infer the VCS from the clone url (not reliable, use at you own risks!)
func SourceHutGit ¶
SourceHutGit generates VCS for git.sr.ht. For instance "https://git.sr.ht/~username/repo" and defaultBranch "main".
func SourceHutHg ¶ added in v0.12.0
SourceHutHg generates VCS for hg.sr.ht. For instance "https://hg.sr.ht/~username/repo" and defaultBranch "tip".