Documentation ¶
Index ¶
- type Client
- func (t *Client) AllBranches(path string) ([]string, []string, error)
- func (t *Client) AllTags(path string) ([]string, []string, error)
- func (t *Client) BasicAuth(username, password string) *Client
- func (t *Client) CheckoutBranch(path, branch string) error
- func (t *Client) CheckoutTag(path, tag string) error
- func (t *Client) Clone(url, path string) error
- func (t *Client) FetchAll(path string) error
- func (t *Client) LsRemoteBranches(path string) ([]string, []string, error)
- func (t *Client) Pull(path, branch string) error
- func (t *Client) TokenAuth(token string) *Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Auth transport.AuthMethod
}
func (*Client) AllBranches ¶
get all branches (short) e.g: fix/checkout-empty-repo master return(shortBranches, branchCommit, error)
func (*Client) AllTags ¶
get all tags e.g: v1.0.0 v2.0.0 v2.1.0 v2.1.1 v2.1.2 v2.1.3 return (tags, tagsCommits, err)
func (*Client) CheckoutBranch ¶
checkout branch
func (*Client) LsRemoteBranches ¶
List all remote branches e.g: refs/remotes/origin/fix/checkout-empty-repo refs/remotes/origin/master return(branches, branchCommit, error)
Click to show internal directories.
Click to hide internal directories.