mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-08-23 18:08:17 +00:00
* 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>
15 lines
359 B
Go
15 lines
359 B
Go
package cache
|
|
|
|
import "time"
|
|
|
|
type CacheProvider struct {
|
|
GCS GCSCacheConfiguration `mapstructucre:"gcs" yaml:"gcs,omitempty"`
|
|
Azure AzureCacheConfiguration `mapstructucre:"azure" yaml:"azure,omitempty"`
|
|
S3 S3CacheConfiguration `mapstructucre:"s3" yaml:"s3,omitempty"`
|
|
}
|
|
|
|
type CacheObjectDetails struct {
|
|
Name string
|
|
UpdatedAt time.Time
|
|
}
|