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

Function WithGRPCConn

pkg/policies/engine/engine.go:112–116  ·  view source on GitHub ↗

WithGRPCConn sets the gRPC connection for builtin functions like discover

(conn *grpc.ClientConn)

Source from the content-addressed store, hash-verified

110
111// WithGRPCConn sets the gRPC connection for builtin functions like discover
112func WithGRPCConn(conn *grpc.ClientConn) Option {
113 return func(opts *Options) {
114 opts.ControlPlaneConnection = conn
115 }
116}
117
118// WithProjectContext sets the project name and version that this engine
119// instance is evaluating policies for. The rego engine exposes them on the

Callers 1

executeScriptMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected