repo

package
v0.0.0-...-a8c0c31 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitURL

func IsGitURL(rawURL string) bool

IsGitURL returns true if the url is a valid giturl.

func Name

func Name(repoURL string) string

Name returns the namespace of git url.

Types

type Repository

type Repository struct {
	URL      string
	Repo     *git.Repository
	Path     string
	Branches []string
	Branch   string
	Files    []string
	Tree     gotree.Tree
}

Repository represents a repository.

func NewRepository

func NewRepository(url string) Repository

NewRepository returns a new repository struct.

Jump to

Keyboard shortcuts

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