Documentation ¶
Index ¶
- type Client
- func (c *Client) Clean() error
- func (c *Client) Clone() error
- func (c *Client) GetBranchName() string
- func (c *Client) GetDirectoryPath() string
- func (c *Client) GetGitParams() (url, ref string, cloneDepth int)
- func (c *Client) GetHeadRevision() (string, error)
- func (c *Client) GetName() string
- func (c *Client) GetPath() string
- func (c *Client) Pull() error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client manages client side of git
func (*Client) GetBranchName ¶
func (*Client) GetDirectoryPath ¶
GetDirectoryPath returns a directory path which project was cloned
func (*Client) GetGitParams ¶
GetGitParams returns params of git client
func (*Client) GetHeadRevision ¶
GetHeadRevision returns a revision of HEAD commit
type Option ¶
type Option func(client *Client)
func WithCloneDepth ¶
func WithCloneTimeout ¶
func WithPullTimeout ¶
func WithPushTimeout ¶
func WithReferenceName ¶
Click to show internal directories.
Click to hide internal directories.