Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *execution.ActionRegistry)
Register registers all git actions with the given registry.
Types ¶
type Checkout ¶
type Checkout struct{ Impl *Provider }
Checkout — Checkout checks out a ref in the given repository directory.
type Clone ¶
type Clone struct{ Impl *Provider }
Clone — Clone clones a repository from url into path. Returns compensation state with the cloned path.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides git actions.
Compensable Forward methods return (string, map[string]any, error): the resource path, the compensation receipt, and an error. The map is opaque to the executor, meaningful only to the corresponding Compensate* Backward method.
func (*Provider) Checkout ¶
Checkout checks out a ref in the given repository directory.
Parameters:
- repo: Local path to the git repository
- ref: Branch, tag, or commit to check out
func (*Provider) Clone ¶
Clone clones a repository from url into path. Returns compensation state with the cloned path.
Parameters:
- url: Git repository URL to clone
- path: Local directory path for the clone
func (*Provider) CompensateClone ¶
CompensateClone removes the cloned directory.