Skip to content

Commit

Permalink
api: Rename detector type to DType
Browse files Browse the repository at this point in the history
Rename detector type to DType because all reserved key words should be
avoided used as type name or variable name.
  • Loading branch information
KeyboardNerd committed Oct 8, 2018
1 parent a3e9b5b commit 69c0c84
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 125 deletions.
210 changes: 105 additions & 105 deletions api/v3/clairpb/clair.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions api/v3/clairpb/clair.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ message Vulnerability {
}

message Detector {
enum Type {
DETECTOR_TYPE_INVALID = 0;
DETECTOR_TYPE_NAMESPACE = 1;
DETECTOR_TYPE_FEATURE = 2;
enum DType {
DETECTOR_D_TYPE_INVALID = 0;
DETECTOR_D_TYPE_NAMESPACE = 1;
DETECTOR_D_TYPE_FEATURE = 2;
}
// The name of the detector.
string name = 1;
// The version of the detector.
string version = 2;
// The type of the detector.
Type type = 3;
DType dtype = 3;
}

message Namespace {
Expand Down

0 comments on commit 69c0c84

Please sign in to comment.