Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LastCommitCache ¶ added in v1.12.0
LastCommitCache represents a cache to store last commit
func NewLastCommitCache ¶ added in v1.12.0
func NewLastCommitCache(repoPath string, gitRepo *git.Repository, ttl int64) *LastCommitCache
NewLastCommitCache creates a new last commit cache for repo
func (LastCommitCache) Get ¶ added in v1.12.0
func (c LastCommitCache) Get(ref, entryPath string) (*object.Commit, error)
Get get the last commit information by commit id and entry path
func (LastCommitCache) Put ¶ added in v1.12.0
func (c LastCommitCache) Put(ref, entryPath, commitID string) error
Put put the last commit id with commit and entry path
Click to show internal directories.
Click to hide internal directories.