Documentation
¶
Index ¶
- func AddFiles(c *gin.Context)
- func CloneRepository(c *gin.Context)
- func CommitChanges(c *gin.Context)
- func CreateBranch(c *gin.Context)
- func GetCommitHistory(c *gin.Context)
- func GetStatus(c *gin.Context)
- func ListBranches(c *gin.Context)
- func PullChanges(c *gin.Context)
- func PushChanges(c *gin.Context)
- type GitAddRequest
- type GitBranchRequest
- type GitCloneRequest
- type GitCommitRequest
- type GitCommitResponse
- type GitRepoRequest
- type ListBranchResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneRepository ¶
func CloneRepository(c *gin.Context)
func CommitChanges ¶
func CommitChanges(c *gin.Context)
func CreateBranch ¶
func CreateBranch(c *gin.Context)
func GetCommitHistory ¶
func GetCommitHistory(c *gin.Context)
func ListBranches ¶
func ListBranches(c *gin.Context)
func PullChanges ¶
func PullChanges(c *gin.Context)
func PushChanges ¶
func PushChanges(c *gin.Context)
Types ¶
type GitAddRequest ¶
type GitAddRequest struct {
Path string `json:"path" validate:"required"`
// files to add (use . for all files)
Files []string `json:"files" validate:"required"`
} // @name GitAddRequest
type GitBranchRequest ¶
type GitBranchRequest struct {
Path string `json:"path" validate:"required"`
Name string `json:"name" validate:"required"`
} // @name GitBranchRequest
type GitCloneRequest ¶
type GitCloneRequest struct {
URL string `json:"url" validate:"required"`
Path string `json:"path" validate:"required"`
Username *string `json:"username,omitempty" validate:"optional"`
Password *string `json:"password,omitempty" validate:"optional"`
Branch *string `json:"branch,omitempty" validate:"optional"`
CommitID *string `json:"commit_id,omitempty" validate:"optional"`
} // @name GitCloneRequest
type GitCommitRequest ¶
type GitCommitRequest struct {
Path string `json:"path" validate:"required"`
Message string `json:"message" validate:"required"`
Author string `json:"author" validate:"required"`
Email string `json:"email" validate:"required"`
} // @name GitCommitRequest
type GitCommitResponse ¶
type GitCommitResponse struct {
Hash string `json:"hash" validate:"required"`
} // @name GitCommitResponse
type GitRepoRequest ¶
type GitRepoRequest struct {
Path string `json:"path" validate:"required"`
Username *string `json:"username,omitempty" validate:"optional"`
Password *string `json:"password,omitempty" validate:"optional"`
} // @name GitRepoRequest
type ListBranchResponse ¶
type ListBranchResponse struct {
Branches []string `json:"branches" validate:"required"`
} // @name ListBranchResponse
Click to show internal directories.
Click to hide internal directories.