Add implements assertion for cache
This commit is contained in:
		
							
								
								
									
										2
									
								
								pkg/client/cache/store.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								pkg/client/cache/store.go
									
									
									
									
										vendored
									
									
								
							| @@ -116,6 +116,8 @@ type cache struct { | |||||||
| 	keyFunc KeyFunc | 	keyFunc KeyFunc | ||||||
| } | } | ||||||
|  |  | ||||||
|  | var _ Store = &cache{} | ||||||
|  |  | ||||||
| // Add inserts an item into the cache. | // Add inserts an item into the cache. | ||||||
| func (c *cache) Add(obj interface{}) error { | func (c *cache) Add(obj interface{}) error { | ||||||
| 	key, err := c.keyFunc(obj) | 	key, err := c.keyFunc(obj) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Paul Morie
					Paul Morie