Documentation ¶
Index ¶
- Variables
- func Clone(repo, workdirPath, path string, auth *AuthOpts, opts *CloneOpts, ...) (string, error)
- func Push(repo string, auth *AuthOpts, opts *PushOpts, output *OutputOpts) error
- func TagCreate(repo string, auth *AuthOpts, opts *TagOpts, output *OutputOpts) error
- func TagList(repo, workdirPath, dir string, auth *AuthOpts, output *OutputOpts) error
- type AuthOpts
- type CloneOpts
- type Info
- type OutputOpts
- type PushOpts
- type TagOpts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //LogFunc can be overrided LogFunc = log.Printf )
Functions ¶
func Clone ¶
func Clone(repo, workdirPath, path string, auth *AuthOpts, opts *CloneOpts, output *OutputOpts) (string, error)
Clone make a git clone
func Push ¶
func Push(repo string, auth *AuthOpts, opts *PushOpts, output *OutputOpts) error
Push make git push action
Types ¶
type CloneOpts ¶
type CloneOpts struct { Depth int SingleBranch bool Branch string Tag string Recursive bool Verbose bool Quiet bool CheckoutCommit string NoStrictHostKeyChecking bool ForceGetGitDescribe bool }
CloneOpts is a optional structs for git clone command
type Info ¶
type Info struct { GitDescribe string Hash string // git Hash Message string Author string AuthorEmail string Branch string }
Info contains some Information about a git repository
type OutputOpts ¶
OutputOpts is a optional structs for git clone command
Click to show internal directories.
Click to hide internal directories.