code

package
v0.0.0-...-f36af3d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package code Git 实现库 文档地址:https://pkg.go.dev/github.com/go-git/go-git/v5

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code struct {
	GitPath  string
	CodePath string
	Auth     *http.BasicAuth
	// contains filtered or unexported fields
}

Code Code

func PrepareCode

func PrepareCode(gitPath, gitUsername, gitPassword string) (mycode *Code, err error)

PrepareCode PrepareCode

func (*Code) AddFile

func (c *Code) AddFile(fileSubPath string, name string, content string) (err error)

AddFile 增加文件

func (*Code) Init

func (c *Code) Init() (err error)

Init 拉取 Git 代码,存入临时文件夹

func (*Code) Remove

func (c *Code) Remove()

Remove 移除临时文件夹

func (*Code) Submit

func (c *Code) Submit(msg string) (err error)

Submit 提交 Git 仓库

Jump to

Keyboard shortcuts

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