Remove is not allowed for the default context and fails
(name string)
| 125 | |
| 126 | // Remove is not allowed for the default context and fails |
| 127 | func (s *ContextStoreWithDefault) Remove(name string) error { |
| 128 | if name == DefaultContextName { |
| 129 | return invalidParameter(errors.New("default context cannot be removed")) |
| 130 | } |
| 131 | return s.Store.Remove(name) |
| 132 | } |
| 133 | |
| 134 | // GetMetadata implements store.Store's GetMetadata |
| 135 | func (s *ContextStoreWithDefault) GetMetadata(name string) (store.Metadata, error) { |
nothing calls this directly
no test coverage detected