The main entry point for cisco-kube-client
The client module is exported to the end-user.
- See:
Example
// Import the client module
var Client = require('cisco-kube-client')
// Define client configuration options
var options = {
host: 'http://localhost:8080'
, version: 'v1'
, auth: {
user: 'JohnDoe'
, pass: 'password123'
}
};
// Initialize client
var client = Client(options);
// Use client to list Kubernetes namespaces
client.namespaces.get().then(function (ns) {
console.log(ns);
}).catch(function (err) {
console.log(err);
});