Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
op.ProviderBase
// contains filtered or unexported fields
}
Provider provides git actions.
+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 the cloned path and a Tombstone for compensation.
Parameters:
- url: Git repository URL to clone
- path: Local directory path for the clone
func (*Provider) CompensateClone ¶
CompensateClone removes the cloned directory.
type Resource ¶
type Resource struct {
op.ResourceBase
URL string
ClonePath string
Ref string
}
Resource represents a cloned git repository.
type Tombstone ¶
type Tombstone struct {
op.TombstoneBase
ClonedPath string
}
Tombstone holds git-specific compensation state.
Click to show internal directories.
Click to hide internal directories.