mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
37 lines
889 B
Go
37 lines
889 B
Go
package vcs
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type GitOptions struct {
|
|
checkout []GitCheckoutOption
|
|
}
|
|
|
|
type GitRef struct {
|
|
Type string `json:"type"`
|
|
Name string `json:"name"`
|
|
FullName string `json:"full_name"`
|
|
Hash string `json:"hash"`
|
|
Timestamp time.Time `json:"timestamp"`
|
|
}
|
|
|
|
type GitLog struct {
|
|
Hash string `json:"hash"`
|
|
Msg string `json:"msg"`
|
|
AuthorName string `json:"author_name"`
|
|
AuthorEmail string `json:"author_email"`
|
|
Timestamp time.Time `json:"timestamp"`
|
|
Refs []GitRef `json:"refs"`
|
|
}
|
|
|
|
type GitFileStatus struct {
|
|
Path string `json:"path"`
|
|
Name string `json:"name"`
|
|
IsDir bool `json:"is_dir"`
|
|
Staging string `json:"staging"`
|
|
Worktree string `json:"worktree"`
|
|
Extra string `json:"extra"`
|
|
Children []GitFileStatus `json:"children"`
|
|
}
|