Documentation
¶
Overview ¶
Package gitreview implements the explicit local Git review workflow.
Index ¶
- Variables
- type BranchResult
- type CommitInput
- type CommitResult
- type CreateBranchInput
- type Manager
- func (m *Manager) Commit(ctx context.Context, input CommitInput) (CommitResult, error)
- func (m *Manager) CreateBranch(ctx context.Context, input CreateBranchInput) (BranchResult, error)
- func (m *Manager) Prepare(ctx context.Context, input PrepareInput) (PrepareResult, error)
- func (m *Manager) Status(ctx context.Context) (Status, error)
- type PrepareInput
- type PrepareResult
- type Status
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotGitRepository = errors.New("not a git repository") ErrBranchExists = errors.New("branch already exists") ErrInvalidManagedFile = errors.New("file is not a declared managed file") ErrNoManagedFiles = errors.New("managed file list is required") ErrIdempotencyConflict = errors.New("idempotency key conflicts with a different request") ErrIdempotencyKeyRequired = errors.New("idempotency key is required") )
Functions ¶
This section is empty.
Types ¶
type BranchResult ¶
type CommitInput ¶
type CommitResult ¶
type CreateBranchInput ¶
type CreateBranchInput struct{ Branch, IdempotencyKey string }
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) Commit ¶
func (m *Manager) Commit(ctx context.Context, input CommitInput) (CommitResult, error)
func (*Manager) CreateBranch ¶
func (m *Manager) CreateBranch(ctx context.Context, input CreateBranchInput) (BranchResult, error)
func (*Manager) Prepare ¶
func (m *Manager) Prepare(ctx context.Context, input PrepareInput) (PrepareResult, error)
type PrepareInput ¶
type PrepareResult ¶
Click to show internal directories.
Click to hide internal directories.