a8a91ef38c
This commit introduces the `aio` package, which is a wrapper over Kenneth Reitz 'requests' library. It will be needed to 'watch' Kubernetes API endpoints. It also comes with command line utility to test connections and responses. For instance, run: python -m kuryr_kubernetes.aio.methods get http://localhost:8080 To see Kubernetes API root resource response. It may make sense to put it in a separated library or in kuryr-lib, but for now and for the sake of push other patches quick, it is better to be included here. Partial-Implements: blueprint kuryr-k8s-integration Change-Id: Iea64d7c7941351d6e0511cafde8914b86c457b1b Authored-By: Antoni Segura Puimedon Co-Authored-By: Jaume Devesa <devvesa@gmail.com> Signed-off-by: Jaume Devesa <devvesa@gmail.com>
19 lines
690 B
Python
19 lines
690 B
Python
# Licensed 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.
|
|
|
|
CONTENT_TYPE = 'CONTENT-TYPE'
|
|
CONTENT_LENGTH = 'CONTENT-LENGTH'
|
|
HOST = 'HOST'
|
|
TRANSFER_ENCODING = 'TRANSFER-ENCODING'
|
|
USER_AGENT = 'USER-AGENT'
|