Documentation ¶
Index ¶
- type AuthMethod
- type Client
- func (c *Client) Add(filePath string) error
- func (c *Client) AddClientAsSubmodule(name string, subc Client) error
- func (c *Client) Checkout(name string, force bool) error
- func (c *Client) Clean() error
- func (c *Client) Commit(message string) error
- func (c *Client) CommitFiles(files map[string][]byte, message string) error
- func (c *Client) CreateBranch(dst string, recreate bool) error
- func (c *Client) Fetch() error
- func (c *Client) GetHash(base string, referRemote bool) (string, error)
- func (c *Client) GetLatestTagReference(referRemote bool) (*plumbing.Reference, error)
- func (c *Client) GetRevisionReferenceName(name string) (plumbing.ReferenceName, error)
- func (c *Client) Info() (Info, error)
- func (c *Client) Initialized() bool
- func (c *Client) InitializedWithRemote() bool
- func (c *Client) IsClean() (bool, error)
- func (c *Client) MirrorBranch(src, dst string) error
- func (c *Client) Pull(branch string) error
- func (c *Client) PullAll() error
- func (c *Client) Push() error
- func (c *Client) ReadFiles(paths, ignoreFile, ignoreDir []string, absolutePath bool) (map[string][]byte, error)
- func (c *Client) ReplaceToAuthURL(url *urlutil.URL, auth *AuthMethod) error
- func (c *Client) SubmoduleAdd(name, url, revision string, auth *AuthMethod) error
- func (c *Client) SubmoduleSyncUpToDate(message string) error
- func (c *Client) SubmoduleUpdate(remote bool) error
- func (c *Client) SubmoduleUpdateAuth(path, url string, auth *AuthMethod) error
- type ClientOpt
- type Info
- type Mock
- type MockCommit
- type MockOpt
- type SubmoduleOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethod ¶ added in v0.21.0
type AuthMethod struct { AuthMethod transport.AuthMethod // contains filtered or unexported fields }
func GetAuth ¶ added in v0.11.0
func GetAuth(username, password, sshKeyPath string) (AuthMethod, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddClientAsSubmodule ¶ added in v0.9.0
func (*Client) Checkout ¶
Checkout is the function switchng another refs. When force is true, create and switch new branch if named branch is not defined.
func (*Client) CommitFiles ¶
func (*Client) CreateBranch ¶ added in v0.12.0
func (*Client) GetLatestTagReference ¶ added in v0.6.0
func (*Client) GetRevisionReferenceName ¶ added in v0.21.3
func (c *Client) GetRevisionReferenceName(name string) (plumbing.ReferenceName, error)
func (*Client) Initialized ¶ added in v0.3.0
func (*Client) InitializedWithRemote ¶ added in v0.3.0
func (*Client) MirrorBranch ¶ added in v0.16.0
func (*Client) ReplaceToAuthURL ¶ added in v0.36.0
func (c *Client) ReplaceToAuthURL(url *urlutil.URL, auth *AuthMethod) error
func (*Client) SubmoduleAdd ¶
func (c *Client) SubmoduleAdd(name, url, revision string, auth *AuthMethod) error
func (*Client) SubmoduleSyncUpToDate ¶ added in v0.8.0
func (*Client) SubmoduleUpdate ¶
func (*Client) SubmoduleUpdateAuth ¶ added in v0.36.0
func (c *Client) SubmoduleUpdateAuth(path, url string, auth *AuthMethod) error
type Mock ¶ added in v0.19.0
func (*Mock) RandomCommitLocal ¶ added in v0.33.0
func (*Mock) RandomCommitRemote ¶ added in v0.33.0
func (*Mock) RemoteClientOpt ¶ added in v0.28.0
type MockCommit ¶ added in v0.19.0
type SubmoduleOpt ¶ added in v0.19.0
type SubmoduleOpt struct {
Path string
}
Click to show internal directories.
Click to hide internal directories.