WithNamespaceClient sets the namespace service using a namespaces client.
(namespaceService namespacesapi.NamespacesClient)
| 134 | |
| 135 | // WithNamespaceClient sets the namespace service using a namespaces client. |
| 136 | func WithNamespaceClient(namespaceService namespacesapi.NamespacesClient) ServicesOpt { |
| 137 | return func(s *services) { |
| 138 | s.namespaceStore = NewNamespaceStoreFromClient(namespaceService) |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | // WithNamespaceService sets the namespace service. |
| 143 | func WithNamespaceService(namespaceService namespaces.Store) ServicesOpt { |
no test coverage detected
searching dependent graphs…