Versions in this module Expand all Collapse all v0 v0.8.2 Apr 4, 2018 Changes in this version + type Codec struct + func NewCodec() *Codec + func (c *Codec) DecodePack(read io.Reader) (string, error) + func (c *Codec) EncodePack(message []byte) ([]byte, error) v0.8.1 Mar 30, 2018 Changes in this version + const Command_ExecType_Asy + const Command_ExecType_SyncErrorAccess + const Command_ExecType_SyncErrorStop + var StdChars = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") + func InArray(val interface{}, array interface{}) (exists bool, index int) + type CommandX struct + func NewCommandX() *CommandX + func (c *CommandX) Exec(commandXParams CommandXParams) (err error) + type CommandXParams struct + Command string + CommandExecTimeout int + CommandExecType int + Path string + type ConnPool interface + Get func() (conn interface{}, err error) + Len func() (length int) + Put func(conn interface{}) + ReleaseAll func() + type File struct + func NewFile() *File + func (f *File) GetFileContents(filePath string) (content string, err error) + func (f *File) PathIsEmpty(path string) bool + func (f *File) PathIsExists(path string) (bool, error) + type GitX struct + func NewGitX() *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 struct + Branch string + DirUser string + Password string + Path string + SshKey string + SshKeySalt string + Url string + Username string + type Str struct + func NewStr() *Str + func (str *Str) NewLenChars(length int, chars []byte) string