Documentation ¶
Index ¶
- type GitCommandDriver
- func (g *GitCommandDriver) Clone(ctx context.Context, org, repo string) (string, error)
- func (g *GitCommandDriver) CommitAll(ctx context.Context, dirPath, commitMsg string) error
- func (g *GitCommandDriver) HealthCheck() (err error)
- func (g *GitCommandDriver) Push(ctx context.Context, dirPath string) error
- func (g *GitCommandDriver) Remove(ctx context.Context, dir string) error
- func (g *GitCommandDriver) SwitchNewBranch(ctx context.Context, dirPath, branch string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitCommandDriver ¶
type GitCommandDriver struct {
// contains filtered or unexported fields
}
func NewGitCommandDriver ¶
func NewGitCommandDriver(l *logrus.Logger, user, email, token string) *GitCommandDriver
func (*GitCommandDriver) CommitAll ¶
func (g *GitCommandDriver) CommitAll(ctx context.Context, dirPath, commitMsg string) error
func (*GitCommandDriver) HealthCheck ¶
func (g *GitCommandDriver) HealthCheck() (err error)
func (*GitCommandDriver) Push ¶
func (g *GitCommandDriver) Push(ctx context.Context, dirPath string) error
func (*GitCommandDriver) Remove ¶
func (g *GitCommandDriver) Remove(ctx context.Context, dir string) error
func (*GitCommandDriver) SwitchNewBranch ¶
func (g *GitCommandDriver) SwitchNewBranch(ctx context.Context, dirPath, branch string) error
Click to show internal directories.
Click to hide internal directories.