Matthis
12146bf356
feat: rework cache package - add gcs cache - add cache purge command ( #750 )
...
* feat: rework cache pkg
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: Completion of cache pkg rework. Added cache purge command.
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* doc: add purgin command note
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* fix: disable cache if noCache is set
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: improve GetCacheConfiguration lisibility & transform add method to addOrUpdate
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: transform server mode to work with new cache configuration
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* fix: use 'switch' instead 'if' to evaluate Cache from grpc
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: add mutually exclusive flags for command options
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* doc: update readme.md
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: return err on bucket creation failed
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: update dependencies
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
Signed-off-by: Matthis <matthish29@gmail.com >
2023-11-18 22:08:38 +01:00
Alex Jones
948dae5e28
feat: caching ( #439 )
...
* feat: added the ability to set a user default AI provider
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: added the ability to set a user default AI provider
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: s3 based caching
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* feat: s3 based caching
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* updated README.md
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* update README.md
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* updated README.md
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: region is a must have
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: clarified remove command
* updated remove.go
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
* chore: test fmt causing issues will open another pr
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
---------
Signed-off-by: Alex Jones <alexsimonjones@gmail.com >
2023-05-19 09:32:01 +01:00
Matthis
dee423519e
fix: use a cache file name with a fixed size. ( #350 )
...
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
2023-04-27 11:59:30 +02:00
Patrick Pichler
7eddb8f4a6
feat: use OS conform path for storing cached results
...
Instead of storing cached values in the config yaml, they are now stored
under these OS specific locations:
* Linux: `~/.cache/k8sgpt`
* MacOS: `~/Library/Caches`
* Windows: `%LocalAppData%\cache`
Additionally a `Cache` package and interface has been introduced.
Currently there are two implementations:
* Noop - Doesn't do anything
* FileBased - Stores data in files under the locations listed above
fixes #323
Signed-off-by: Patrick Pichler <git@patrickpichler.dev >
2023-04-24 19:07:54 +02:00