Documentation
¶
Index ¶
- func WriteSourceRepoURLs(path, repoRoot string) error
- func WriteSourceRepoURLsContext(ctx context.Context, path, repoRoot string) error
- type Expander
- func (e *Expander) Cleanup()
- func (e *Expander) Close() error
- func (e *Expander) Expand(ctx context.Context, r *render.Render) (*expander.ExpandResult, error)
- func (e *Expander) ResolvePath(namespace, name string) (string, bool)
- func (e *Expander) SetLocalOnly()
- func (e *Expander) WithSourceRoot(path string) *Expander
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteSourceRepoURLs ¶
WriteSourceRepoURLs writes source-repo aliases for a materialized tree. This lets archived git revision snapshots resolve self-referential GitRepository URLs.
Types ¶
type Expander ¶
type Expander struct {
// contains filtered or unexported fields
}
Expander discovers GitRepository resources, clones external repos to temp directories, and makes their paths available for the expansion loop.
func NewExpander ¶
NewExpander creates a GitRepository expander. Close must be called when done to remove cloned repositories.
func NewLocalExpander ¶
NewLocalExpander resolves only local sources, without allocating a clone directory.
func (*Expander) ResolvePath ¶
ResolvePath returns the local filesystem path for a GitRepository source. Returns ("", false) if the repository hasn't been cloned.
func (*Expander) SetLocalOnly ¶
func (e *Expander) SetLocalOnly()
SetLocalOnly disables cloning and scopes local sources to the current root.
func (*Expander) WithSourceRoot ¶
WithSourceRoot returns a copy of the expander scoped to one source root. External clones remain shared, while local path aliases are per invocation.