Documentation
¶
Index ¶
- Constants
- Variables
- func InArray(val interface{}, array interface{}) (exists bool, index int)
- type Codec
- type CommandX
- type CommandXParams
- type ConnPool
- type File
- type GitX
- func (g *GitX) Checkout(name string, params GitXParams) (err error)
- func (g *GitX) CleanBranch(params GitXParams) (err error)
- func (g *GitX) Clone(params GitXParams) (r *git.Repository, err error)
- func (g *GitX) CloneOptions(params GitXParams) (opt git.CloneOptions, err error)
- func (g *GitX) CreateBranch(params GitXParams) (branchShortName, branchName string, err error)
- func (g *GitX) CreateBranchName(params GitXParams) (name string, err error)
- func (g *GitX) Fetch(params GitXParams) (r *git.Repository, err error)
- func (g *GitX) FetchOptions(params GitXParams) (opt git.FetchOptions, err error)
- func (g *GitX) GetAuth(params GitXParams) (auth transport.AuthMethod, err error)
- func (g *GitX) GetHash(params GitXParams) (hash string, hashObj plumbing.Hash, r *git.Repository, ref *plumbing.Reference, ...)
- func (g *GitX) IsHTTP(params GitXParams) bool
- func (g *GitX) IsNeedAuth(params GitXParams) bool
- func (g *GitX) LastCommitId(params GitXParams) (hash string, err error)
- func (g *GitX) Publish(params GitXParams) (commitId string, err error)
- func (g *GitX) Validate(params GitXParams) error
- type GitXParams
- type Str
Constants ¶
View Source
const Command_ExecType_Asy = 3 // 异步执行
View Source
const Command_ExecType_SyncErrorAccess = 2 // 同步执行,遇到错误继续
View Source
const Command_ExecType_SyncErrorStop = 1 // 同步执行,遇到错误停止
Variables ¶
View Source
var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")
Functions ¶
Types ¶
type CommandXParams ¶
type ConnPool ¶
type ConnPool interface { Get() (conn interface{}, err error) Put(conn interface{}) ReleaseAll() Len() (length int) }
ConnPool to use
type GitX ¶
type GitX struct{}
func (*GitX) CloneOptions ¶
func (g *GitX) CloneOptions(params GitXParams) (opt git.CloneOptions, err error)
获取克隆参数
func (*GitX) CreateBranch ¶
func (g *GitX) CreateBranch(params GitXParams) (branchShortName, branchName string, err error)
创建分支
func (*GitX) CreateBranchName ¶
func (g *GitX) CreateBranchName(params GitXParams) (name string, err error)
创建分支名称
func (*GitX) FetchOptions ¶
func (g *GitX) FetchOptions(params GitXParams) (opt git.FetchOptions, err error)
获取拉取参数
func (*GitX) GetAuth ¶
func (g *GitX) GetAuth(params GitXParams) (auth transport.AuthMethod, err error)
获取 auth 信息
func (*GitX) GetHash ¶
func (g *GitX) GetHash(params GitXParams) (hash string, hashObj plumbing.Hash, r *git.Repository, ref *plumbing.Reference, err error)
获取 hash
func (*GitX) LastCommitId ¶
func (g *GitX) LastCommitId(params GitXParams) (hash string, err error)
获取最近一次提交的 commit_id
type GitXParams ¶
Click to show internal directories.
Click to hide internal directories.