selectorcache

package
v0.0.70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package selectorcache materializes git refs into reusable source directories.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoRefKey added in v0.0.35

func RepoRefKey(repoURL string, ref string) string

Types

type Cache

type Cache struct {
	Root string
	// contains filtered or unexported fields
}

func Default

func Default() *Cache

func (*Cache) Resolve

func (c *Cache) Resolve(ctx context.Context, req ResolveRequest) (ResolveResult, error)

type ResolveRequest

type ResolveRequest struct {
	RepositoryURL string
	Ref           string
	PinnedCommit  string
}

type ResolveResult

type ResolveResult struct {
	RepositoryURL string
	RepoKey       string
	Ref           string
	Commit        string
	SourceDir     string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL