Documentation
¶
Index ¶
- type Cache
- func (c *Cache) Clear() error
- func (c *Cache) Close() error
- func (c *Cache) CommitExists(hash string) (bool, error)
- func (c *Cache) GetAllPRs() (map[int]*github.PR, error)
- func (c *Cache) GetCommitSHAsForPR(prNumber int) ([]string, error)
- func (c *Cache) GetLastPRSync() (time.Time, error)
- func (c *Cache) GetLastProcessedTag() (string, error)
- func (c *Cache) GetPR(number int) (*github.PR, error)
- func (c *Cache) GetPRNumberBySHA(sha string) (int, bool)
- func (c *Cache) GetUnreleasedContentHash() (string, error)
- func (c *Cache) GetVersions() (map[string]*git.Version, error)
- func (c *Cache) IsPRMarkedAsNonExistent(prNumber int) bool
- func (c *Cache) MarkPRAsNonExistent(prNumber int) error
- func (c *Cache) SaveCommit(commit *git.Commit, version string) error
- func (c *Cache) SaveCommitPRMappings(prs []*github.PR) error
- func (c *Cache) SavePR(pr *github.PR) error
- func (c *Cache) SavePRBatch(prs []*github.PR) error
- func (c *Cache) SaveVersion(v *git.Version) error
- func (c *Cache) SetLastPRSync(timestamp time.Time) error
- func (c *Cache) SetLastProcessedTag(tag string) error
- func (c *Cache) SetUnreleasedContentHash(hash string) error
- func (c *Cache) UpdateVersionAISummary(versionName, aiSummary string) error
- func (c *Cache) VersionExists(version string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) CommitExists ¶ added in v1.4.264
CommitExists checks if a commit already exists in the cache
func (*Cache) GetCommitSHAsForPR ¶
GetCommitSHAsForPR returns all commit SHAs for a given PR number
func (*Cache) GetLastPRSync ¶
GetLastPRSync returns the timestamp of the last PR sync
func (*Cache) GetLastProcessedTag ¶
func (*Cache) GetPRNumberBySHA ¶
GetPRNumberBySHA returns the PR number for a given commit SHA
func (*Cache) GetUnreleasedContentHash ¶
GetUnreleasedContentHash returns the cached content hash for Unreleased
func (*Cache) IsPRMarkedAsNonExistent ¶
IsPRMarkedAsNonExistent checks if a PR is marked as non-existent
func (*Cache) MarkPRAsNonExistent ¶
MarkPRAsNonExistent marks a PR number as non-existent to avoid future fetches
func (*Cache) SaveCommitPRMappings ¶
SaveCommitPRMappings saves SHA→PR mappings for all commits in PRs
func (*Cache) SavePRBatch ¶
SavePRBatch saves multiple PRs in a single transaction for better performance
func (*Cache) SetLastPRSync ¶
SetLastPRSync updates the timestamp of the last PR sync
func (*Cache) SetLastProcessedTag ¶
func (*Cache) SetUnreleasedContentHash ¶
SetUnreleasedContentHash stores the content hash for Unreleased
func (*Cache) UpdateVersionAISummary ¶
UpdateVersionAISummary updates only the AI summary for a specific version