registry
registry copied to clipboard
The Registry API allows teams to track and manage machine-readable descriptions of APIs.
From @seaneganx: It's possible the registry tool could have race conditions that can't be solved on the server side. For example, if a command has multiple tasks reading and writing...
Should we do this? (If the consensus is "yes", let's relabel this as an enhancement) My VSCode configuration shows warnings from staticcheck but we don't get them from our existing...
cmd/registry/cmd/rpc/generated/create-api-deployment.go:77:3: this value of in is never used (SA4006) cmd/registry/cmd/rpc/generated/create-api-spec.go:73:3: this value of in is never used (SA4006) cmd/registry/cmd/rpc/generated/create-api-version.go:69:3: this value of in is never used (SA4006) cmd/registry/cmd/rpc/generated/create-api.go:73:3: this value...
https://staticcheck.io/docs/checks#ST1005 Error strings should not be capitalized (unless beginning with proper nouns or acronyms) or end with punctuation, since they are usually printed following other context. That is, use `fmt.Errorf("something...
cmd/registry/cmd/rpc/generated/create-project.go:44:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/list-projects.go:44:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/migrate-database.go:50:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/replace-artifact.go:42:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/update-api-deployment.go:70:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/update-api-spec.go:66:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/update-api-version.go:62:3: empty branch (SA9003) cmd/registry/cmd/rpc/generated/update-api.go:66:3: empty...
cmd/registry/cmd/rpc/generated/apg.go:11:2: "github.com/golang/protobuf/jsonpb" is deprecated: Use the "google.golang.org/protobuf/encoding/protojson" package instead. (SA1019) cmd/registry/cmd/rpc/generated/apg.go:12:2: "github.com/golang/protobuf/proto" is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019) cmd/registry/cmd/rpc/generated/create-api-deployment.go:10:2: "github.com/golang/protobuf/jsonpb" is deprecated: Use the "google.golang.org/protobuf/encoding/protojson" package instead. (SA1019)...
cmd/registry/cmd/rpc/generated/create-instance.go:156:4: should use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) (but don't forget the newline) (S1038) cmd/registry/cmd/rpc/generated/create-instance.go:158:4: should use fmt.Printf instead of fmt.Println(fmt.Sprintf(...)) (but don't forget the newline) (S1038) cmd/registry/cmd/rpc/generated/delete-instance.go:118:4: should use fmt.Printf...
cmd/registry/cmd/compute/score.go:78:4: redundant return statement (S1023) cmd/registry/cmd/compute/scorecard.go:77:4: redundant return statement (S1023)
cmd/registry/cmd/rpc/generated/apg.go:37:6: func main is unused (U1000)
(details to follow... review `kubectl get` and `kubectl describe` and consider providing similar functions in the `registry` tool)