WithGRPCConn sets the gRPC connection for builtin functions like discover
(conn *grpc.ClientConn)
| 110 | |
| 111 | // WithGRPCConn sets the gRPC connection for builtin functions like discover |
| 112 | func 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 |