Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version information (set at build time) Version = "dev" CommitSHA = "unknown" BuildDate = "unknown" )
Functions ¶
Types ¶
type JSONCommitBrief ¶
type JSONFileChange ¶
type JSONLogEntry ¶
type JSONLogEntry struct {
ID string `json:"id"`
ShortID string `json:"short_id"`
ParentID *string `json:"parent_id,omitempty"`
Message string `json:"message"`
AuthorName string `json:"author_name"`
AuthorEmail string `json:"author_email"`
Timestamp string `json:"timestamp"`
}
JSONLogEntry represents a commit in JSON format
type JSONRepoStats ¶
type JSONStats ¶
type JSONStats struct {
Repository JSONRepoStats `json:"repository"`
Storage JSONStorageStats `json:"storage"`
Xpatch *JSONXpatchStats `json:"xpatch,omitempty"`
}
JSONStats represents stats output in JSON format
type JSONStatus ¶
type JSONStatus struct {
Branch string `json:"branch"`
Head *JSONCommitBrief `json:"head,omitempty"`
Staged []JSONFileChange `json:"staged"`
Unstaged []JSONFileChange `json:"unstaged"`
Untracked []string `json:"untracked"`
Conflicts []string `json:"conflicts,omitempty"`
}
JSONStatus represents status output in JSON format
type JSONStorageStats ¶
type JSONStorageStats struct {
CommitsTableBytes int64 `json:"commits_table_bytes"`
PathsTableBytes int64 `json:"paths_table_bytes"`
FileRefsTableBytes int64 `json:"file_refs_table_bytes"`
ContentTableBytes int64 `json:"content_table_bytes"`
IndexesBytes int64 `json:"indexes_bytes"`
TotalBytes int64 `json:"total_bytes"`
CompressionRatio float64 `json:"compression_ratio,omitempty"`
SpaceSavedPercent float64 `json:"space_saved_percent,omitempty"`
}
type JSONXpatchStats ¶
type JSONXpatchStats struct {
Commits *JSONXpatchTableStats `json:"commits,omitempty"`
Content *JSONXpatchTableStats `json:"content,omitempty"`
}
type JSONXpatchTableStats ¶
type JSONXpatchTableStats struct {
TotalRows int64 `json:"total_rows"`
TotalGroups int64 `json:"total_groups"`
KeyframeCount int64 `json:"keyframe_count"`
DeltaCount int64 `json:"delta_count"`
RawSizeBytes int64 `json:"raw_size_bytes"`
CompressedBytes int64 `json:"compressed_bytes"`
CompressionRatio float64 `json:"compression_ratio"`
AvgChainLength float64 `json:"avg_chain_length"`
CacheHitPercent float64 `json:"cache_hit_percent"`
}
Click to show internal directories.
Click to hide internal directories.