git

package
v0.28.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 2 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 = fmt.Errorf("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