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 CommitChanges ¶
func CreateBranch ¶
func GetCommitHistory ¶
func ListBranches ¶
func PullChanges ¶
func PushChanges ¶
Types ¶
type GitAddRequest ¶
type 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 GitCommitResponse ¶
type GitCommitResponse struct { Hash string `json:"hash" validate:"required"` } // @name GitCommitResponse
type GitRepoRequest ¶
type ListBranchResponse ¶
type ListBranchResponse struct { Branches []string `json:"branches" validate:"required"` } // @name ListBranchResponse
Click to show internal directories.
Click to hide internal directories.