Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CacheTTL is how long cached version info is considered valid CacheTTL = 48 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheEntry ¶
type CacheEntry struct {
LatestVersion string `json:"latest_version"`
CheckedAt time.Time `json:"checked_at"`
}
CacheEntry represents a cached version check result
func (*CacheEntry) IsExpired ¶
func (c *CacheEntry) IsExpired() bool
IsExpired returns whether the cache entry has exceeded its TTL
type UpdateInfo ¶
UpdateInfo contains information about available updates
func CheckForUpdate ¶
CheckForUpdate checks if a new version of tflint is available It returns UpdateInfo indicating if an update is available and the latest version string
Click to show internal directories.
Click to hide internal directories.