Documentation
¶
Index ¶
- Constants
- Variables
- type MockRepo
- func (m *MockRepo) Clone(_ context.Context, path, repo string, isBare bool, progress terminal.Spinner) error
- func (m *MockRepo) CommitObject(h plumbing.Hash) (*object.Commit, error)
- func (m *MockRepo) Head() (*plumbing.Reference, error)
- func (m *MockRepo) Open(path string) error
- func (m *MockRepo) Pull(_ context.Context, worktree *git.Worktree) error
- func (m *MockRepo) Reset(opts *git.ResetOptions) error
- func (m *MockRepo) Worktree() (*git.Worktree, error)
- type Repository
Constants ¶
View Source
const ( // DefaultRemoteName will provide default origin. DefaultRemoteName = git.DefaultRemoteName )
Variables ¶
View Source
var ( // ErrPackageNotAvailable is an error for handling incorrect package ErrPackageNotAvailable = errors.New("package is not available. Supported packages can be found here: https://techdocs.akamai.com/home/page/products-tools-a-z") )
Functions ¶
This section is empty.
Types ¶
type MockRepo ¶
MockRepo impl of Repository interface
func (*MockRepo) Clone ¶
func (m *MockRepo) Clone(_ context.Context, path, repo string, isBare bool, progress terminal.Spinner) error
Clone mock
func (*MockRepo) CommitObject ¶
CommitObject mock
type Repository ¶
type Repository interface {
Open(path string) error
Clone(ctx context.Context, path, repo string, isBare bool, progress terminal.Spinner) error
Pull(ctx context.Context, worktree *git.Worktree) error
Head() (*plumbing.Reference, error)
Worktree() (*git.Worktree, error)
CommitObject(h plumbing.Hash) (*object.Commit, error)
Reset(opts *git.ResetOptions) error
}
Repository interface.
func NewRepository ¶
func NewRepository() Repository
NewRepository will initialize new git integrations instance.
Click to show internal directories.
Click to hide internal directories.