MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / NewDiscoverService

Function NewDiscoverService

pkg/policies/engine/builtins/discover.go:31–33  ·  view source on GitHub ↗

NewDiscoverService creates a new discover service

(conn *grpc.ClientConn)

Source from the content-addressed store, hash-verified

29
30// NewDiscoverService creates a new discover service
31func NewDiscoverService(conn *grpc.ClientConn) *DiscoverService {
32 return &DiscoverService{conn: conn}
33}
34
35// Discover calls the DiscoverPrivate gRPC endpoint to get artifact graph data
36func (s *DiscoverService) Discover(ctx context.Context, digest, kind string) (*v1.ReferrerServiceDiscoverPrivateResponse, error) {

Callers 2

getDiscoverRegoImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected