Skip to content

Commit

Permalink
Combined Porch Commit
Browse files Browse the repository at this point in the history
Fix few file headers (kptdev#2707)

Define a FunctionEvaluator gRPC Interface (kptdev#2700)

* Add install-protoc.sh script
* Define a FunctionEvaluator interface
* Create an empty server implementation
  • Loading branch information
martinmaly committed Feb 18, 2022
1 parent 6dd18ab commit f74b956
Show file tree
Hide file tree
Showing 11 changed files with 812 additions and 0 deletions.
14 changes: 14 additions & 0 deletions porch/api/porch/fuzzer/fuzzer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package fuzzer

import (
Expand Down
14 changes: 14 additions & 0 deletions porch/api/porch/install/roundtrip_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package install

import (
Expand Down
25 changes: 25 additions & 0 deletions porch/func/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

COMPILED_PROTO=evaluator/evaluator_grpc.pb.go evaluator/evaluator.pb.go

all: $(COMPILED_PROTO)

$(COMPILED_PROTO): evaluator/evaluator.proto
protoc \
-I /usr/local/include/google/protobuf \
-I ./evaluator \
--go_out=./evaluator --go_opt=paths=source_relative \
--go-grpc_out=./evaluator --go-grpc_opt=paths=source_relative \
./evaluator/evaluator.proto
Loading

0 comments on commit f74b956

Please sign in to comment.