git

package
v0.29.4-rc.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProtocolSSH   = Protocol("ssh")
	ProtocolHTTPS = Protocol("https")
)
View Source
const (
	GithubSSHRepoPrefix   = "git@github.com:sighupio"
	GithubHTTPSRepoPrefix = "https://github.com/sighupio"
)

Variables

View Source
var ErrUnsupportedGitProtocol = errors.New("unsupported git protocol")

Functions

func CleanupRepoURL

func CleanupRepoURL(repo string) string

func RepoPrefixByProtocol

func RepoPrefixByProtocol(protocol Protocol) (string, error)

func StripPrefix

func StripPrefix(repo string) string

func StripSuffix

func StripSuffix(repo string) string

Types

type Protocol

type Protocol string

func NewProtocol

func NewProtocol(protocol string) (Protocol, error)

Jump to

Keyboard shortcuts

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