Versions in this module Expand all Collapse all v0 v0.2.0 Mar 28, 2024 v0.1.0 Mar 27, 2024 Changes in this version + func AddRemoteCache(cacheInfo CacheProvider) error + func RemoveRemoteCache() error + type AzureCache struct + func (s *AzureCache) Configure(cacheInfo CacheProvider) error + func (s *AzureCache) DisableCache() + func (s *AzureCache) Exists(key string) bool + func (s *AzureCache) GetName() string + func (s *AzureCache) IsCacheDisabled() bool + func (s *AzureCache) List() ([]CacheObjectDetails, error) + func (s *AzureCache) Load(key string) (string, error) + func (s *AzureCache) Remove(key string) error + func (s *AzureCache) Store(key string, data string) error + type AzureCacheConfiguration struct + ContainerName string + StorageAccount string + type CacheObjectDetails struct + Name string + UpdatedAt time.Time + type CacheProvider struct + Azure AzureCacheConfiguration + GCS GCSCacheConfiguration + S3 S3CacheConfiguration + func NewCacheProvider(cacheType, bucketname, region, storageAccount, containerName, projectId string) (CacheProvider, error) + func ParseCacheConfiguration() (CacheProvider, error) + type FileBasedCache struct + func (*FileBasedCache) Exists(key string) bool + func (*FileBasedCache) List() ([]CacheObjectDetails, error) + func (*FileBasedCache) Load(key string) (string, error) + func (*FileBasedCache) Remove(key string) error + func (*FileBasedCache) Store(key string, data string) error + func (f *FileBasedCache) Configure(cacheInfo CacheProvider) error + func (f *FileBasedCache) IsCacheDisabled() bool + func (s *FileBasedCache) DisableCache() + func (s *FileBasedCache) GetName() string + type GCSCache struct + func (s *GCSCache) Configure(cacheInfo CacheProvider) error + func (s *GCSCache) DisableCache() + func (s *GCSCache) Exists(key string) bool + func (s *GCSCache) GetName() string + func (s *GCSCache) IsCacheDisabled() bool + func (s *GCSCache) List() ([]CacheObjectDetails, error) + func (s *GCSCache) Load(key string) (string, error) + func (s *GCSCache) Remove(key string) error + func (s *GCSCache) Store(key string, data string) error + type GCSCacheConfiguration struct + BucketName string + ProjectId string + Region string + type ICache interface + Configure func(cacheInfo CacheProvider) error + DisableCache func() + Exists func(key string) bool + GetName func() string + IsCacheDisabled func() bool + List func() ([]CacheObjectDetails, error) + Load func(key string) (string, error) + Remove func(key string) error + Store func(key string, data string) error + func GetCacheConfiguration() (ICache, error) + func New(cacheType string) ICache + type S3Cache struct + func (s *S3Cache) Configure(cacheInfo CacheProvider) error + func (s *S3Cache) DisableCache() + func (s *S3Cache) Exists(key string) bool + func (s *S3Cache) GetName() string + func (s *S3Cache) IsCacheDisabled() bool + func (s *S3Cache) List() ([]CacheObjectDetails, error) + func (s *S3Cache) Load(key string) (string, error) + func (s *S3Cache) Remove(key string) error + func (s *S3Cache) Store(key string, data string) error + type S3CacheConfiguration struct + BucketName string + Region string