Documentation ¶
Index ¶
- type CachedManager
- func (_m *CachedManager) CacheClient(ctx context.Context) cache.Cache
- func (_m *CachedManager) CountCache(ctx context.Context) (int64, error)
- func (_m *CachedManager) Delete(ctx context.Context, digest string) error
- func (_m *CachedManager) DeleteCache(ctx context.Context, key string) error
- func (_m *CachedManager) FlushAll(ctx context.Context) error
- func (_m *CachedManager) Get(ctx context.Context, digest string) ([]byte, error)
- func (_m *CachedManager) ResourceType(ctx context.Context) string
- func (_m *CachedManager) Save(ctx context.Context, digest string, manifest []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedManager ¶
CachedManager is an autogenerated mock type for the CachedManager type
func NewCachedManager ¶
func NewCachedManager(t interface { mock.TestingT Cleanup(func()) }) *CachedManager
NewCachedManager creates a new instance of CachedManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*CachedManager) CacheClient ¶
func (_m *CachedManager) CacheClient(ctx context.Context) cache.Cache
CacheClient provides a mock function with given fields: ctx
func (*CachedManager) CountCache ¶
func (_m *CachedManager) CountCache(ctx context.Context) (int64, error)
CountCache provides a mock function with given fields: ctx
func (*CachedManager) Delete ¶
func (_m *CachedManager) Delete(ctx context.Context, digest string) error
Delete provides a mock function with given fields: ctx, digest
func (*CachedManager) DeleteCache ¶
func (_m *CachedManager) DeleteCache(ctx context.Context, key string) error
DeleteCache provides a mock function with given fields: ctx, key
func (*CachedManager) FlushAll ¶
func (_m *CachedManager) FlushAll(ctx context.Context) error
FlushAll provides a mock function with given fields: ctx
func (*CachedManager) ResourceType ¶
func (_m *CachedManager) ResourceType(ctx context.Context) string
ResourceType provides a mock function with given fields: ctx