New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aliyun-cs-client

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aliyun-cs-client

Aliyun container service client (node.js)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

aliyun-cs-client

Aliyun container service client (node.js)

Cluster

  • https://github.com/aliyun/aliyun-openapi-python-sdk
  • https://yq.aliyun.com/articles/5527?commentId=453

example

# coding=utf-8

from aliyunsdkcore import client
from aliyunsdkcs.request.v20151215 import DescribeClusterDetailRequest

clt = client.AcsClient({YOUR_AK}, {YOUR_SK}, 'cn-hangzhou')

def get_master_url():
    request = DescribeClusterDetailRequest.DescribeClusterDetailRequest()
    request.set_ClusterId({YOUR_CLUSTER_ID})
    return clt.do_action(request)

Application

  • info
  • start
  • stop
  • kill
  • delete
  • update
  • create

usage

  • clone the project
git clone https://github.com/thonatos/aliyun-cs-client
cd aliyun-cs-client
  • nodejs
touch app.js
  • app.js
const Cluster = require('./')

const hz = new Cluster({

  // you can get master url with the python script under example
  // or aliyun cs admin dashboard : 
  // tcp://{ID}.cs-cn-hangzhou.aliyun.com:15086
  // change it to : https://{ID}.cs-cn-hangzhou.aliyun.com:15086
  // then, download the ssl ca/key/cert ~

  master_url: '{YOUR_MASTER_URL}',
  ssl: {
    ca: fs.readFileSync(path.resolve(__dirname, '../cluster/hz/ca.pem')),
    cert: fs.readFileSync(path.resolve(__dirname, '../cluster/hz/cert.pem')),
    key: fs.readFileSync(path.resolve(__dirname, '../cluster/hz/key.pem'))
  }
})

Example dir structue

➔ tree -L 3
.
├── LICENSE
├── README.md
├── cluster
│   └── hz
│       ├── ca.pem
│       ├── cert.pem
│       └── key.pem
├── composer
│   ├── share.yml
│   └── www.yml
├── examples
│   ├── app.js
│   ├── cluster.py
│   └── test.yml
├── lib
│   └── index.js
└── node_modules

More

Keywords

FAQs

Package last updated on 10 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc