Matthis
fa4a0757b8
feat: add configuration api route ( #459 )
...
* feat: add configuration api route
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
* feat: rename cache methods
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
---------
Signed-off-by: Matthis Holleville <matthish29@gmail.com >
2023-05-25 10:42:49 +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