repocache

package
v2.20.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheEntry

type CacheEntry struct {
	// contains filtered or unexported fields
}

func (*CacheEntry) GetClonedDir

func (e *CacheEntry) GetClonedDir(ref string) (string, git.CheckoutInfo, error)

func (*CacheEntry) GetRepoInfo

func (e *CacheEntry) GetRepoInfo() RepoInfo

func (*CacheEntry) Update

func (e *CacheEntry) Update() error

type GitRepoCache

type GitRepoCache struct {
	// contains filtered or unexported fields
}

func NewGitRepoCache

func NewGitRepoCache(ctx context.Context, sshPool *ssh_pool.SshPool, authProviders *auth.GitAuthProviders, repoOverrides []RepoOverride, updateInterval time.Duration) *GitRepoCache

func (*GitRepoCache) Clear

func (rp *GitRepoCache) Clear()

func (*GitRepoCache) GetEntry

func (rp *GitRepoCache) GetEntry(url types.GitUrl) (*CacheEntry, error)

type RepoInfo

type RepoInfo struct {
	Url        types.GitUrl      `json:"url"`
	RemoteRefs map[string]string `json:"remoteRefs"`
	DefaultRef string            `json:"defaultRef"`
}

type RepoOverride

type RepoOverride struct {
	RepoKey  types.GitRepoKey
	Ref      string
	Override string
	IsGroup  bool
}

Jump to

Keyboard shortcuts

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