ovn-kubernetes/libovsdb

Don't export `client.Cache()`

Open

#181 opened on Jun 28, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Go (164 forks)auto 404
buggood first issue

Repository metrics

Stars
 (211 stars)
PR merge metrics
 (PR metrics pending)

Description

Since the client.Get and client.List API do most of the same thing. This ensures we don't accidentally expose something dangerous (e.g client.Cache().Purge()) to users. We'd need to ensure that we could still easily write tests without direct cache access though.

Contributor guide