Add way to invalidate cloud cache (#19800)

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Nick Misasi
2022-03-21 10:42:09 -04:00
коммит произвёл GitHub
родитель 29b78f84d7
Коммит d89e42881a
2 изменённых файлов: 15 добавлений и 0 удалений

Просмотреть файл

@@ -25,4 +25,5 @@ type CloudInterface interface {
// GetLicenseRenewalStatus checks on the portal whether it is possible to use token to renew a license
GetLicenseRenewalStatus(userID, token string) error
InvalidateCaches() error
}

Просмотреть файл

@@ -210,6 +210,20 @@ func (_m *CloudInterface) GetSubscription(userID string) (*model.Subscription, e
return r0, r1
}
// InvalidateCaches provides a mock function with given fields:
func (_m *CloudInterface) InvalidateCaches() error {
ret := _m.Called()
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
} else {
r0 = ret.Error(0)
}
return r0
}
// UpdateCloudCustomer provides a mock function with given fields: userID, customerInfo
func (_m *CloudInterface) UpdateCloudCustomer(userID string, customerInfo *model.CloudCustomerInfo) (*model.CloudCustomer, error) {
ret := _m.Called(userID, customerInfo)