Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCachePath ¶
GetCachePath returns the cache file path for a given Gemfile.lock
func Write ¶
func Write(gemfileLockPath string, entry *CacheEntry) error
Write writes analysis result to cache
Types ¶
type CacheEntry ¶
type CacheEntry struct {
Result *gemfile.AnalysisResult `json:"result"`
GemfileLockMtime int64 `json:"gemfile_lock_mtime"`
CachedAt time.Time `json:"cached_at"`
RubyVersion string `json:"ruby_version"`
BundleVersion string `json:"bundle_version"`
FrameworkDetected string `json:"framework_detected"`
RailsVersion string `json:"rails_version"`
}
CacheEntry represents a cached analysis result with metadata
func Read ¶
func Read(gemfileLockPath string) (*CacheEntry, error)
Read reads cached analysis result if it exists and is valid
Click to show internal directories.
Click to hide internal directories.