knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject knox git commit: KNOX-1290 - Create gateway definition for Log Search - version 0.5.0 (Olivér Szabó via lmccay)
Date Tue, 22 May 2018 20:08:01 GMT
Repository: knox
Updated Branches:
  refs/heads/master adee21356 -> 43ab7bdf0


KNOX-1290 - Create gateway definition for Log Search - version 0.5.0 (Olivér Szabó via lmccay)


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/43ab7bdf
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/43ab7bdf
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/43ab7bdf

Branch: refs/heads/master
Commit: 43ab7bdf01a1e8b0ec4f3cb47539e049d7f02b94
Parents: adee213
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Tue May 22 16:07:53 2018 -0400
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Tue May 22 16:07:53 2018 -0400

----------------------------------------------------------------------
 .../services/logsearch/0.5.0/rewrite.xml        | 32 +++++++++++++++
 .../services/logsearch/0.5.0/service.xml        | 41 ++++++++++++++++++++
 2 files changed, 73 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/43ab7bdf/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/rewrite.xml
b/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/rewrite.xml
new file mode 100644
index 0000000..6dfe76d
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/rewrite.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<rules>
+
+  <rule dir="IN" name="LOGSEARCH/logsearch/inbound/root" pattern="*://*:*/**/logsearch/">
+    <rewrite template="{$serviceUrl[LOGSEARCH]}/"/>
+  </rule>
+
+  <rule dir="IN" name="LOGSEARCH/logsearch/inbound" pattern="*://*:*/**/logsearch/{**}?{**}">
+    <rewrite template="{$serviceUrl[LOGSEARCH]}/{**}?{**}"/>
+  </rule>
+
+  <rule dir="OUT" name="LOGSEARCH/logsearch/outbound/basepath" pattern="/">
+    <rewrite template='{$frontend[path]}/logsearch/'/>
+  </rule>
+
+</rules>

http://git-wip-us.apache.org/repos/asf/knox/blob/43ab7bdf/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/service.xml
----------------------------------------------------------------------
diff --git a/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/service.xml
b/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/service.xml
new file mode 100644
index 0000000..6e27209
--- /dev/null
+++ b/gateway-service-definitions/src/main/resources/services/logsearch/0.5.0/service.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<service role="LOGSEARCH" name="logsearch" version="0.5.0">
+  
+  <routes>
+
+    <route path="/logsearch">
+      <rewrite apply="LOGSEARCH/logsearch/outbound" to="response.body"/>
+      <rewrite apply="LOGSEARCH/logsearch/inbound" to="request.body"/>
+    </route>
+
+    <route path="/logsearch/">
+      <rewrite apply="LOGSEARCH/logsearch/outbound" to="response.body"/>
+      <rewrite apply="LOGSEARCH/logsearch/inbound" to="request.body"/>
+    </route>
+
+    <route path="/logsearch/**?**">
+      <rewrite apply="LOGSEARCH/logsearch/outbound" to="response.body"/>
+      <rewrite apply="LOGSEARCH/logsearch/inbound" to="request.body"/>
+    </route>
+
+  </routes>
+
+  <dispatch classname="org.apache.knox.gateway.dispatch.PassAllHeadersDispatch"/>
+
+</service>


Mime
View raw message