cf-copilot 0.0.5 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cf-copilot.rb +4 -4
- data/lib/copilot/protos/cloud_controller_pb.rb +2 -0
- data/lib/copilot/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e5363ba1e276afa1d3d469e940969c0ae15e47a
|
4
|
+
data.tar.gz: 0ae0557e277e3dedbabdea12a8b43e8e2a01ca2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7975e956815280c9f20b3ca1ceb35701661ebee96d1931f2950f00e2d100c9518d96c6d96832c55b5efd7e347b5f94c0ca842a8b7664930f81b039d8409c33b
|
7
|
+
data.tar.gz: 604a4ba9201c801c2016a057f4d42166779f89073ec36e8fdd4dd8fc035658ca4515bffa5d9fc482de715207ae8ce0a723a5125a45273b548bce33f3e24703b4
|
data/lib/cf-copilot.rb
CHANGED
@@ -40,16 +40,16 @@ module Cloudfoundry
|
|
40
40
|
raise Cloudfoundry::Copilot::Client::PilotError, "#{e.details} - #{e.metadata}"
|
41
41
|
end
|
42
42
|
|
43
|
-
def map_route(capi_process_guid:, route_guid:)
|
44
|
-
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid)
|
43
|
+
def map_route(capi_process_guid:, route_guid:, route_weight:)
|
44
|
+
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight)
|
45
45
|
request = Api::MapRouteRequest.new(route_mapping: route_mapping)
|
46
46
|
service.map_route(request)
|
47
47
|
rescue GRPC::BadStatus => e
|
48
48
|
raise Cloudfoundry::Copilot::Client::PilotError, "#{e.details} - #{e.metadata}"
|
49
49
|
end
|
50
50
|
|
51
|
-
def unmap_route(capi_process_guid:, route_guid:)
|
52
|
-
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid)
|
51
|
+
def unmap_route(capi_process_guid:, route_guid:, route_weight:)
|
52
|
+
route_mapping = Api::RouteMapping.new(capi_process_guid: capi_process_guid, route_guid: route_guid, route_weight: route_weight)
|
53
53
|
request = Api::UnmapRouteRequest.new(route_mapping: route_mapping)
|
54
54
|
service.unmap_route(request)
|
55
55
|
rescue GRPC::BadStatus => e
|
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
27
27
|
optional :guid, :string, 1
|
28
28
|
optional :host, :string, 2
|
29
29
|
optional :path, :string, 3
|
30
|
+
optional :internal, :bool, 4
|
30
31
|
end
|
31
32
|
add_message "api.UpsertRouteRequest" do
|
32
33
|
optional :route, :message, 1, "api.Route"
|
@@ -41,6 +42,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
41
42
|
add_message "api.RouteMapping" do
|
42
43
|
optional :capi_process_guid, :string, 1
|
43
44
|
optional :route_guid, :string, 2
|
45
|
+
optional :route_weight, :int32, 3
|
44
46
|
end
|
45
47
|
add_message "api.MapRouteRequest" do
|
46
48
|
optional :route_mapping, :message, 1, "api.RouteMapping"
|
data/lib/copilot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cf-copilot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cloud Foundry Routing Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.5.1
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Ruby client for copilot (a CF istio data transformer).
|