Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grpc Deployment proto endpoint (#841)
* feat(grpc_deployment_endpoint): Add a grpc endpoint for deployment.
- Loading branch information
1 parent
d7e313c
commit 8acf7aa
Showing
15 changed files
with
144 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
/.gradle/ | ||
build/ | ||
build-gen/ | ||
*.iml | ||
*.ipr | ||
*.iws | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Nov 26 11:25:11 PST 2015 | ||
#Mon Dec 11 14:43:59 EST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apply plugin: 'java' | ||
apply plugin: 'com.google.protobuf' | ||
|
||
dependencies { | ||
compile 'io.grpc:grpc-all:1.8.0' | ||
compile 'com.google.protobuf:protobuf-java:3.0.0' | ||
compile 'com.google.guava:guava:23.5-jre' | ||
compile 'com.google.api.grpc:grpc-google-common-protos:1.0.5' | ||
} | ||
|
||
protobuf { | ||
protoc { | ||
artifact = 'com.google.protobuf:protoc:3.5.1-1' | ||
} | ||
plugins { | ||
grpc { | ||
artifact = "io.grpc:protoc-gen-grpc-java:1.9.0" | ||
} | ||
} | ||
|
||
generateProtoTasks { | ||
ofSourceSet('main').each { task -> | ||
task.builtins { | ||
java{ | ||
outputSubDir = 'java' | ||
} | ||
} | ||
task.plugins { | ||
grpc { | ||
outputSubDir = 'java' | ||
} | ||
} | ||
task.descriptorSetOptions.includeImports = true | ||
} | ||
} | ||
generatedFilesBaseDir = "${projectDir}/build-gen/proto" | ||
} | ||
|
||
idea { | ||
module { | ||
sourceDirs += file("${projectDir}/build-gen/proto/main/java") | ||
} | ||
} | ||
|
||
clean { | ||
delete "${projectDir}/build-gen" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
syntax = "proto3"; | ||
|
||
import "google/longrunning/operations.proto"; | ||
|
||
package spinnaker.halyard; | ||
|
||
option java_package = "com.netflix.spinnaker.halyard.proto"; | ||
option java_multiple_files = true; | ||
|
||
service Deployments { | ||
// A Service for instructing Halyard to begin a deployment with the provided | ||
// config. | ||
rpc DeployConfig(DeployConfigRequest) returns (google.longrunning.Operation) { | ||
} | ||
} | ||
|
||
message DeployConfigRequest { | ||
string name = 1; | ||
bytes config = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters