git

package
v0.0.0-...-040e825 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Gitserver = server.DefaultServer // where all the repos will be stored
)

Functions

func CreateRepo

func CreateRepo(path string) (*git.Repository, error)

in the git root location

func GetReadme

func GetReadme(ownerName, repoName string) (string, error)

get the content of the root README.md of given repo

func GetRepoDir

func GetRepoDir(ownername, reponame, path string) ([]map[string]interface{}, error)

Get the files and directories present at given path, pass "" when expecting something locates at the root directory.

func GetRepoFile

func GetRepoFile(ownerName, repoName, entryPath string) (string, error)

func RenameRepo

func RenameRepo(oldName, newName, owner string) error

rename the folder of a certain repo by given path

Types

This section is empty.

Jump to

Keyboard shortcuts

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