Skip to content

Commit

Permalink
Adds generated go client for oci-catalog that we'll use from syncer.
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Nelson <minelson@vmware.com>
  • Loading branch information
absoludity committed Aug 14, 2023
1 parent f928705 commit 8b66cff
Show file tree
Hide file tree
Showing 6 changed files with 772 additions and 13 deletions.
14 changes: 14 additions & 0 deletions cmd/oci-catalog/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2021-2023 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

---
version: v1beta1
plugins:
- name: go
out: gen
opt:
- module=github.com/vmware-tanzu/kubeapps/cmd/oci-catalog/gen
- name: go-grpc
out: gen
opt:
- module=github.com/vmware-tanzu/kubeapps/cmd/oci-catalog/gen
15 changes: 15 additions & 0 deletions cmd/oci-catalog/buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2023 the Kubeapps contributors.
# SPDX-License-Identifier: Apache-2.0

---
version: v1beta1
name: "buf.build/kubeapps/oci-catalog"
build:
roots:
- proto
lint:
use:
- DEFAULT
ignore_only:
RPC_RESPONSE_STANDARD_NAME:
- ocicatalog/v1alpha1/ocicatalog.proto
2 changes: 1 addition & 1 deletion cmd/oci-catalog/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use std::env;

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_build::compile_protos("proto/ocicatalog.proto")?;
tonic_build::compile_protos("proto/ocicatalog/v1alpha1/ocicatalog.proto")?;

// If the binary is built with the ENV var "OCI_CATALOG_VERSION",
// the value will be available at buildime. Otherwise, it becomes "devel"
Expand Down
Loading

0 comments on commit 8b66cff

Please sign in to comment.