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: git resource identifying the local repository
- ref: Branch, tag, or commit to check out
func (*Provider) Clone ¶
func (p *Provider) Clone(url netprov.Resource, destination file.Resource) (Resource, Tombstone, error)
Clone clones a repository from url into destination. Returns the cloned git.Resource and a Tombstone for compensation.
Parameters:
- url: network resource identifying the git repository
- destination: file resource identifying the local clone directory
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.