nativeGit

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const Dir_RWX_RX_R = 0754

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoCache

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

func NewRepoCache

func NewRepoCache(
	tokenManager customScm.NonImpersonatedTokenManager,
	stopCh chan struct{},
	cachePath string,
	goScmHelper *genericScm.GoScmHelper,
	config *dashboardConfig.Config,
	clientHub *streaming.ClientHub,
) (*RepoCache, error)

func (*RepoCache) CleanupWrittenRepo

func (r *RepoCache) CleanupWrittenRepo(path string) error

func (*RepoCache) InstanceForRead

func (r *RepoCache) InstanceForRead(repoName string) (*git.Repository, error)

func (*RepoCache) InstanceForWrite

func (r *RepoCache) InstanceForWrite(repoName string) (*git.Repository, string, error)

func (*RepoCache) Invalidate

func (r *RepoCache) Invalidate(repoName string)

func (*RepoCache) Run

func (r *RepoCache) Run()

Jump to

Keyboard shortcuts

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