Skip to content

Commit

Permalink
Make IOReaderObserver complient to ObserverClient
Browse files Browse the repository at this point in the history
Adds a failing GetNamespaces option to IOReaderObserver so it fits the
ObserverClient interface again.

Signed-off-by: Maartje Eyskens <maartje.eyskens@isovalent.com>
  • Loading branch information
meyskens authored and michi-covalent committed Jun 21, 2023
1 parent 41cba43 commit 96d144f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/observe/io_reader_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ func (o *IOReaderObserver) ServerStatus(_ context.Context, _ *observerpb.ServerS
return nil, status.Errorf(codes.Unimplemented, "ServerStatus not implemented")
}

// GetNamespaces is not implemented, and will throw an error if used.
func (o *IOReaderObserver) GetNamespaces(_ context.Context, _ *observerpb.GetNamespacesRequest, _ ...grpc.CallOption) (*observerpb.GetNamespacesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "GetNamespaces not implemented")
}

// ioReaderClient implements Observer_GetFlowsClient.
type ioReaderClient struct {
grpc.ClientStream
Expand Down

0 comments on commit 96d144f

Please sign in to comment.