gitutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(rawURL string) (u *url.URL, err error)

ParseURL parse raw url

func SplitPath added in v0.3.2

func SplitPath(repoPath string) (group, name string, err error)

SplitPath split path to group and name.

Types

type SSHConfig

type SSHConfig map[string]string

SSHConfig map

type SSHConfigReader

type SSHConfigReader struct {
	Files []string
}

SSHConfigReader struct

func (*SSHConfigReader) Read

func (r *SSHConfigReader) Read() SSHConfig

Read config from files

type URLParser

type URLParser struct {
	SSHConfig SSHConfig
}

URLParser struct

func (*URLParser) Parse

func (p *URLParser) Parse(rawURL string) (u *url.URL, err error)

Parse parse raw url

Jump to

Keyboard shortcuts

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