CreateOrUpdate is not allowed for the default context and fails
(meta store.Metadata)
| 117 | |
| 118 | // CreateOrUpdate is not allowed for the default context and fails |
| 119 | func (s *ContextStoreWithDefault) CreateOrUpdate(meta store.Metadata) error { |
| 120 | if meta.Name == DefaultContextName { |
| 121 | return invalidParameter(errors.New("default context cannot be created nor updated")) |
| 122 | } |
| 123 | return s.Store.CreateOrUpdate(meta) |
| 124 | } |
| 125 | |
| 126 | // Remove is not allowed for the default context and fails |
| 127 | func (s *ContextStoreWithDefault) Remove(name string) error { |
nothing calls this directly
no test coverage detected