Documentation
¶
Index ¶
- type Errors
- type Git
- func (g *Git) AddRemote(remote *model.Remote) error
- func (g *Git) AddThenCommit(commitMsg string) error
- func (g *Git) ChangeOccured() (bool, error)
- func (g *Git) CheckoutBranch(name model.Branch) error
- func (g *Git) CreateBranch(name model.Branch) error
- func (g *Git) CreateRepo() error
- func (g *Git) GetBranchNames() ([]model.Branch, error)
- func (g *Git) GetRemoteDetails() (*model.Remote, error)
- func (g *Git) GetRepo() error
- func (g *Git) LoadRemote(remoteName string) error
- func (g *Git) Pull(remote *model.Remote, branch model.Branch, auth *config.Credentials, ...) error
- func (g *Git) Push(remote *model.Remote, branch model.Branch, auth *config.Credentials, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Errors ¶
type Errors struct { RemoteNotFound error RemoteNotLoaded error RemoteAlreadyExists error RepoAlreadyExists error RepoNotFound error PullFailed error AuthNotFound error InvalidAuthMethod error InvalidPassphrase error KeyNotSupported error AlreadyUpToDate error MergeFailed error RemoteBranchNotFound error }
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
func (*Git) AddThenCommit ¶
func (*Git) ChangeOccured ¶
func (*Git) CreateRepo ¶
func (*Git) LoadRemote ¶
Click to show internal directories.
Click to hide internal directories.