e071084ebe
govulncheck / govulncheck (push) Has been cancelled
Lint / golangci-lint (push) Has been cancelled
Run Tests / Unit Tests (push) Has been cancelled
Run Tests / Etcd Integration Tests (push) Has been cancelled
Harness (E2E) / Harnesses (mock LLM) (push) Has been cancelled
Harness (E2E) / Provider harnesses (live LLM conformance) (push) Has been cancelled
40 lines
702 B
Go
40 lines
702 B
Go
package store
|
|
|
|
type noopStore struct{}
|
|
|
|
func (n *noopStore) Init(opts ...Option) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noopStore) Options() Options {
|
|
return Options{}
|
|
}
|
|
|
|
func (n *noopStore) String() string {
|
|
return "noop"
|
|
}
|
|
|
|
func (n *noopStore) Read(key string, opts ...ReadOption) ([]*Record, error) {
|
|
return []*Record{}, nil
|
|
}
|
|
|
|
func (n *noopStore) Write(r *Record, opts ...WriteOption) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noopStore) Delete(key string, opts ...DeleteOption) error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noopStore) List(opts ...ListOption) ([]string, error) {
|
|
return []string{}, nil
|
|
}
|
|
|
|
func (n *noopStore) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func NewNoopStore(opts ...Option) Store {
|
|
return new(noopStore)
|
|
}
|