Comments (17)
from grafeas.
grpc is in progress. Sorry for the delay - I think its probably worth waiting for. I'm hoping to have the issues worked out by end of week or early next week.
from grafeas.
@chen-keinan and @vbatts I mentioned this to both of you privately - Can you review give feedback here?
Thanks!
from grafeas.
+1 for GRPC!
from grafeas.
I'm in favor for GRPC, it's much flexible, faster and simplifies the programming paradigm.
from grafeas.
+1 for GRPC
from grafeas.
Introduced proto - need to update ref impl to use proto and generate files as well.
from grafeas.
@R2wenD2 how is your protoc
installed your build host?
On master (2ff2bea) I'm getting:
[vbatts@getdown] {master *} ~/src/github.com/grafeas/grafeas$ make build
go get -u -v github.com/golang/protobuf/protoc-gen-go
github.com/golang/protobuf (download)
protoc \
-I. \
-I ./vendor/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I ./vendor/github.com/googleapis/googleapis \
--go_out=. \
v1alpha1/proto/grafeas.proto && \
touch .protoc_middleman_go
google/protobuf/empty.proto: File not found.
google/protobuf/descriptor.proto: File not found.
google/api/annotations.proto: Import "google/protobuf/descriptor.proto" was not found or had errors.
google/api/annotations.proto:28:8: "google.protobuf.MethodOptions" is not defined.
google/protobuf/timestamp.proto: File not found.
google/protobuf/any.proto: File not found.
google/rpc/status.proto: Import "google/protobuf/any.proto" was not found or had errors.
google/rpc/status.proto:91:12: "google.protobuf.Any" is not defined.
google/longrunning/operations.proto: Import "google/api/annotations.proto" was not found or had errors.
google/longrunning/operations.proto: Import "google/protobuf/any.proto" was not found or had errors.
google/longrunning/operations.proto: Import "google/protobuf/empty.proto" was not found or had errors.
google/longrunning/operations.proto: Import "google/rpc/status.proto" was not found or had errors.
google/longrunning/operations.proto:92:3: "google.protobuf.Any" is not defined.
google/longrunning/operations.proto:104:5: "google.rpc.Status" is not defined.
google/longrunning/operations.proto:114:5: "google.protobuf.Any" is not defined.
google/longrunning/operations.proto:61:56: "google.protobuf.Empty" is not defined.
google/longrunning/operations.proto:75:56: "google.protobuf.Empty" is not defined.
google/devtools/source/v1/source_context.proto: Import "google/api/annotations.proto" was not found or had errors.
v1alpha1/proto/grafeas.proto: Import "google/protobuf/empty.proto" was not found or had errors.
v1alpha1/proto/grafeas.proto: Import "google/api/annotations.proto" was not found or had errors.
v1alpha1/proto/grafeas.proto: Import "google/protobuf/timestamp.proto" was not found or had errors.
v1alpha1/proto/grafeas.proto: Import "google/longrunning/operations.proto" was not found or had errors.
v1alpha1/proto/grafeas.proto: Import "google/devtools/source/v1/source_context.proto" was not found or had errors.
v1alpha1/proto/grafeas.proto:176:14: "google.longrunning.Operation" is not defined.
v1alpha1/proto/grafeas.proto:185:5: "google.longrunning.Operation" is not defined.
v1alpha1/proto/grafeas.proto:195:5: "google.longrunning.Operation" is not defined.
v1alpha1/proto/grafeas.proto:201:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:203:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:473:9: "google.longrunning.Operation" is not defined.
v1alpha1/proto/grafeas.proto:564:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:568:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:572:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:622:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:625:5: "google.protobuf.Timestamp" is not defined.
v1alpha1/proto/grafeas.proto:801:5: "google.devtools.source.v1.ExtendedSourceContext" is not defined.
v1alpha1/proto/grafeas.proto:807:14: "google.devtools.source.v1.ExtendedSourceContext" is not defined.
v1alpha1/proto/grafeas.proto:1014:14: "google.protobuf.Empty" is not defined.
v1alpha1/proto/grafeas.proto:1058:48: "google.protobuf.Empty" is not defined.
v1alpha1/proto/grafeas.proto:1090:14: "google.longrunning.Operation" is not defined.
v1alpha1/proto/grafeas.proto:1101:14: "google.longrunning.Operation" is not defined.
make: *** [Makefile:25: .protoc_middleman_go] Error 1
[vbatts@getdown] {master *} ~/src/github.com/grafeas/grafeas$ protoc --version
libprotoc 3.2.0
from grafeas.
oh. bugger. the fedora protobuf package doesn't have them, but they're in the -devel subpackage. Sorry for noise. :-|
from grafeas.
I opened #64 to clean things up a bit. Though I'm looking at the go source is the compiler is not passing through comments.
Looks like kubernetes is using https://github.com/gogo/protobuf which does seem to pass through the comments, allowing for more consumable golang source. Thoughts?
from grafeas.
I'm fine with using gogo/probuf in place of the other generated files.
from grafeas.
from grafeas.
https://github.com/grpc-ecosystem/grpc-gateway seems to be a popular enough grpc REST bridge
from grafeas.
What's the status of this? I was planning to implement project listing (#74) but I'm not sure if I should complete the implementation using the swagger generator or if I should wait until the gprc infrastructure is in place. Suggestions and thoughts?
from grafeas.
@vbatts I'm going to get grpc-gateway setup before closing this issue.
from grafeas.
@R2wenD2 right on
from grafeas.
looks like we're just about here, for this issue. Now even with a swagger representation of the protobuf JSON bridge. Should we delete ./v1alpha1/grafeas.json
and close this issue?
from grafeas.
Related Issues (20)
- Running GET cURL for a valid occurrence ID but from the wrong project HOT 1
- json: cannot unmarshal object when trying to create in toto occurrence HOT 4
- [Question]: Getting started with Grafeas HOT 3
- [Question] process to contribute a new storage implementation HOT 2
- Diagram in the readme is unviewable in GH dark mode
- Update Note and Occurrence Protos to support SBOM (SPDX) data HOT 1
- Can't get any notes using python client HOT 1
- [Getting Started] SOS When I visit the grafeas-server, it shows 500
- Support git as one of the producers when sending data to Grafeas HOT 1
- Add support for CWE field in vulnerability proto message HOT 7
- Updating repeated fields is broken due to grpc-gateway bug HOT 1
- Unable to create any occurrence except kind: DEPLOYMENT with postgres backend HOT 1
- Release v0.2.1 HOT 1
- Use Grafeas v1 API HOT 1
- Note ID can be created with / in the id, but not queried HOT 1
- Security Policy violation Binary Artifacts HOT 2
- Enable Grafeas to store and retrieve Vex information
- Support SLSA v1.0 provenance format HOT 1
- possible SQL injection?
- New release for grafeas? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grafeas.