Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
+devlore:access=both
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.
Click to show internal directories.
Click to hide internal directories.