Documentation
¶
Index ¶
- func ExampleUsage()
- type GitConfig
- type GitRepository
- type Repo
- func (g *Repo) AddRemote(ctx context.Context, name, url string) error
- func (g *Repo) Close() error
- func (g *Repo) Commit(ctx context.Context, message string) (string, error)
- func (g *Repo) Create(ctx context.Context, path string) error
- func (g *Repo) Diff(ctx context.Context, fileName string) (string, error)
- func (g *Repo) Open(path string) error
- func (g *Repo) Push(ctx context.Context, remoteName, branch string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitRepository ¶
type GitRepository interface {
CreateRepo(ctx context.Context, path string) error
Commit(ctx context.Context, message string) (string, error)
Diff(ctx context.Context, fileName string) (string, error)
AddRemote(ctx context.Context, name, url string) error
Push(ctx context.Context, remoteName, branch string) error
Close() error
}
Click to show internal directories.
Click to hide internal directories.