{"_id":"@npm-wharf/auto-kubernetes-client","_rev":"44-0fb9978265ec4304b0cb078206bc6a25","name":"@npm-wharf/auto-kubernetes-client","dist-tags":{"latest":"0.6.1"},"versions":{"0.6.1":{"name":"@npm-wharf/auto-kubernetes-client","version":"0.6.1","keywords":["kubernetes"],"author":{"name":"Collaborne B.V.","email":"opensource@collaborne.com"},"license":"Apache-2.0","_id":"@npm-wharf/auto-kubernetes-client@0.6.1","maintainers":[{"name":"aearly","email":"alexander.early@gmail.com"},{"name":"bcoe","email":"ben@npmjs.com"},{"name":"buzuli","email":"joeledwards@gmail.com"},{"name":"arobson","email":"asrobson@gmail.com"}],"homepage":"https://github.com/Collaborne/auto-kubernetes-client#readme","bugs":{"url":"https://github.com/Collaborne/auto-kubernetes-client/issues"},"dist":{"shasum":"4262c32ac3e1cae92a64a94cbd3d9978922e2675","tarball":"https://registry.npmjs.org/@npm-wharf/auto-kubernetes-client/-/auto-kubernetes-client-0.6.1.tgz","fileCount":8,"integrity":"sha512-FGruQ6D4MEBEGytJ1ny/uE2oZvx9o58TcW8c/Z71fX3WxRHr4mVxNahdZWrOQZzSmoVa4XZzVvFxa77m0tbNNg==","signatures":[{"sig":"MEUCIGon74XUAK4Uwv7llfBxH47HbRapR3SpZySTD2GYA3QhAiEA3vgZtmNtkamwKJdTqEBxg+NbZUD5y8uFi5vjMxLbUnU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcMAtKCRA9TVsSAnZWagAAGFsP/Rx2aXSJo7ejHZUT+0e/\n4mBbJ2XHTOj1QA1cHN3UcjJFXYETzdao5MSHEQKh+jCMVW9Hpur1zKwueXQ6\nTQl4GOdKSd6+M3mnshKkoKPde9uFw60zVdAbkrjKCeDRSxA56RY5zWYfT+O5\n8dtDwEE6sVRiOlgxJDDP2JFw1SE+4IcghgKqVoOxiZ0I2NnnmVNciAjZO1FP\nj5d+aqgjXYC3vcZe6zUVOd1UIUiJcpbpjyPh/gqyLv0lgqQv//x6WYL8WpUr\n10PjUeHDfxUhWYUMDmgIR9Anmlm/jtwrAugJBck86QhjKunkS2FHfM1msszv\neAJlKbzviQP6dzxrNGAWufpw7athUeOtCOG1QE7xnG7dv42JemTgqG3iWV1O\nY3jlUT+96FNzBj5yMEI3W4IQmA0R7hd2+UDM/KdzdrS7xYNHjkZ1AbHBLHow\nDa0u5tTbXyjOqqLXPmDx5hbF3XxHSY65cefCdmoOLcQnMo5kOxpHxT+0KKS9\nNMdqHZFMtNjmhSsEK5Rz2NyL0cjRL7oCCqAmVdf5c8TW1UkpEufAqEl16Sqo\nJrv3aGHfZMdSfeuxApduWcRI9jor3ROp4qVdnts4k/fzrZvgL6OvVFbAnfiA\nBAICWRLTp1nJgr0LM7d5OnfjI7dR7+LLR9bl8uYuSh8er0RKY8cO2+NB7OEx\nYr+U\r\n=xQNr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"src/index.js","engines":{"node":">=7.0.0"},"gitHead":"e4c690937369af9de73539d44c80efc6a0b33a16","scripts":{"lint":"eslint src examples","test":"echo 'No tests yet'","install":"check-node-version --package","prepublish":"npm run lint"},"_npmUser":{"name":"arobson","email":"asrobson@gmail.com"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","repository":{"url":"git+https://github.com/Collaborne/auto-kubernetes-client.git","type":"git"},"_npmVersion":"6.3.0","description":"NodeJS Kubernetes Client with automatic API discovery","directories":{},"_nodeVersion":"10.7.0","dependencies":{"flatmap":"0.0.3","request":"^2.81.0","through2":"^2.0.3","deepmerge":"^3.0.0","check-node-version":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^5.0.0","eslint-config-collaborne":"^1.1.1"},"_npmOperationalInternal":{"tmp":"tmp/auto-kubernetes-client_0.6.1_1546652489697_0.1458797904650344","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-01-05T01:41:29.556Z","modified":"2026-08-10T21:20:58.525Z","0.6.1":"2019-01-05T01:41:29.849Z"},"bugs":{"url":"https://github.com/Collaborne/auto-kubernetes-client/issues"},"author":{"name":"Collaborne B.V.","email":"opensource@collaborne.com"},"license":"Apache-2.0","homepage":"https://github.com/Collaborne/auto-kubernetes-client#readme","keywords":["kubernetes"],"repository":{"url":"git+https://github.com/Collaborne/auto-kubernetes-client.git","type":"git"},"description":"NodeJS Kubernetes Client with automatic API discovery","maintainers":[{"email":"bpoluri@microsoft.com","name":"poluri"},{"email":"dhei@github.com","name":"dhei"},{"email":"shmam@github.com","name":"shmam"},{"email":"tayvon@github.com","name":"tayvongh"},{"email":"karenjli@github.com","name":"karenjli"}],"readme":"# auto-kubernetes-client [![Build Status](https://travis-ci.org/Collaborne/auto-kubernetes-client.svg?branch=master)](https://travis-ci.org/Collaborne/auto-kubernetes-client) [![Greenkeeper badge](https://badges.greenkeeper.io/Collaborne/auto-kubernetes-client.svg)](https://greenkeeper.io/)\n\nNodeJS Kubernetes Client with automatic API discovery.\n\nSee this [blog post](https://medium.com/collaborne-engineering/keep-pace-with-kubernetes-nodejs-client-b87a8b175b7b) for further information.\n\n## Installation\n\n```sh\nnpm install --save auto-kubernetes-client\n```\n\n## Usage\n\n1. Create a configuration object\n\n   ```js\n   const config = {\n       url: 'https://k8s.example.com',\n       ca: 'PEM encoded CA certificate',\n       cert: 'PEM encoded client certificate',\n       key: 'PEM encoded client key'\n   }\n   ```\n\n2. Create the client and connect to the API server\n\n   ```js\n   const AutoK8sClient = require('auto-kubernetes-client');\n   AutoK8sClient(config, function(err, client) {\n       if (err) {\n           throw new Error(`Error when connecting: ${err.message}`);\n       }\n\n       // Use client\n   });\n   ```\n\n3. Invoke methods\n\n   The client exposes resources available to the authenticated user using a fairly regular API.\n\n   - API groups need to be selected using the `group(name[, version])` method. The \"core\" API is available\n     directly on the `client` instance.\n   - Non-namespaced resources are available directly on the API instance (core/group), for namespaced-resources\n     one must explicitly select the namespace using the `ns(name)` method.\n   - Resource collections are available by their name in plural, for example `client.ns('default').pods` represents\n     the \"pods\" resource collection.\n     Resource collections offer resource methods `list`, `watch`, and `deletecollection`, as well as `create` to create a new resource.\n   - Single (non-collection) resources are available by their singular name, for example `client.ns('default').pod('pod1')`\n     represents the \"pod\" resources for the \"pod1\" pod.\n     Single resources offer resource methods `get`, `create`, `update`, `patch` and `delete`.\n   - Resource methods typically have the signature `method([qs])`, where `qs` is a hash for additional query parameters,\n     and return a promise for the parsed response entity.\n   - The `watch` resource method has the signature `watch([resourceVersion[, qs]])`, and returns an object stream for the observed changes.\n     Each object has a `type` field ('ADDED', 'DELETED', 'MODIFIED', 'ERROR'), and the actual object that was modified.\n   - By default the client interprets 'Status' responses from the server with a 'Failure' status as error responses, and translates\n     them into actual promise rejections. This can be disabled by using '.options({ rawResponse: true}).resourceMethod(...)' on the resource collection\n     or resource.\n\n## Examples\n\n| Example | Description\n|---------|------------\n|[examples/list-pods](./examples/list-pods)|List all pods in the cluster\n|[examples/watch-pods](./examples/watch-pods)|Watch all pods in a specific namespace\n\n## License\n\n    This software is licensed under the Apache 2 license, quoted below.\n\n    Copyright 2017 Collaborne B.V. <http://github.com/Collaborne/>\n\n    Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n    use this file except in compliance with the License. You may obtain a copy of\n    the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n    License for the specific language governing permissions and limitations under\n    the License.\n","readmeFilename":"README.md"}