Documentation ¶
Index ¶
- Variables
- func AddAll(gistTmpId string) error
- func CatFileBatch(user string, gist string, revision string, truncate bool) ([]*catFileBatch, error)
- func CloneTmp(user string, gist string, gistTmpId string, email string, remove bool) error
- func CommitRepository(gistTmpId string, authorName string, authorEmail string) error
- func CommitToBare(t *testing.T, user string, gist string, files map[string]string)
- func CountCommits(user string, gist string) (string, error)
- func CreateDotGitFiles(user string, gist string) error
- func DeleteRepository(user string, gist string) error
- func ForkClone(userSrc string, gistSrc string, userDst string, gistDst string) error
- func GcRepos() error
- func GetFileContent(user string, gist string, revision string, filename string, truncate bool) (string, bool, error)
- func GetFileSize(user string, gist string, revision string, filename string) (uint64, error)
- func GetFilesOfRepository(user string, gist string, revision string) ([]string, error)
- func GetGitVersion() (string, error)
- func HasNoCommits(user string, gist string) (bool, error)
- func InitRepository(user string, gist string) error
- func LastHashOfCommit(t *testing.T, user string, gist string) string
- func Push(gistTmpId string) error
- func RPC(user string, gist string, service string) ([]byte, error)
- func RepositoryPath(user string, gist string) string
- func RepositoryUrl(ctx echo.Context, user string, gist string) string
- func SetFileContent(gistTmpId string, filename string, content string) error
- func SetupTest(t *testing.T)
- func TeardownTest(t *testing.T)
- func TmpRepositoriesPath() string
- func TmpRepositoryPath(gistId string) string
- func UpdateServerInfo(user string, gist string) error
- type Commit
- type CsvFile
- type File
- type RevisionNotFoundError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ReposDirectory = "repos"
)
Functions ¶
func CatFileBatch ¶ added in v1.6.0
func CommitRepository ¶
func CommitToBare ¶ added in v1.7.0
func CreateDotGitFiles ¶ added in v1.6.0
func DeleteRepository ¶
func GetFileContent ¶
func GetFileSize ¶ added in v1.6.0
func GetFilesOfRepository ¶
func GetGitVersion ¶
func InitRepository ¶
func LastHashOfCommit ¶ added in v1.7.0
func RepositoryPath ¶
func RepositoryUrl ¶ added in v1.5.0
func TeardownTest ¶ added in v1.7.0
func TmpRepositoriesPath ¶
func TmpRepositoriesPath() string
func TmpRepositoryPath ¶
func UpdateServerInfo ¶
Types ¶
type Commit ¶
type RevisionNotFoundError ¶ added in v1.6.0
type RevisionNotFoundError struct{}
func (*RevisionNotFoundError) Error ¶ added in v1.6.0
func (m *RevisionNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.