git

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFiles

func AddFiles(c *gin.Context)

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 GetStatus

func GetStatus(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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL