Add assertions for types implementing interfaces (#5893)

This commit is contained in:
Philippe Martin
2022-07-01 10:12:24 +02:00
committed by GitHub
parent 2217725b0b
commit 062160280f
75 changed files with 178 additions and 5 deletions

View File

@@ -11,6 +11,8 @@ type kubernetesClient struct {
client kclient.ClientInterface
}
var _ Client = (*kubernetesClient)(nil)
func NewClient(client kclient.ClientInterface) Client {
return kubernetesClient{
client: client,