Discover calls the DiscoverPrivate gRPC endpoint to get artifact graph data
(ctx context.Context, digest, kind string)
| 34 | |
| 35 | // Discover calls the DiscoverPrivate gRPC endpoint to get artifact graph data |
| 36 | func (s *DiscoverService) Discover(ctx context.Context, digest, kind string) (*v1.ReferrerServiceDiscoverPrivateResponse, error) { |
| 37 | if s.conn == nil { |
| 38 | return nil, nil |
| 39 | } |
| 40 | |
| 41 | client := v1.NewReferrerServiceClient(s.conn) |
| 42 | return client.DiscoverPrivate(ctx, &v1.ReferrerServiceDiscoverPrivateRequest{ |
| 43 | Digest: digest, |
| 44 | Kind: kind, |
| 45 | }) |
| 46 | } |
no test coverage detected