Skip to content

leopardslab/nodecloud-ali-plugin

Repository files navigation

nodecloud-ali-plugin

AliCloud plugin for nodecloud

🚀 Install

$ npm install nodecloud-ali-plugin

✌️ How to setup

Get your AliCloud access tokens here

Make sure you have .nc.config file in the project root and have nodecloud-core installed.

Content of .nc.config file is assumed as the following json structure. It is an array of supported providers.

  1. name : Provider name which nodecloud supports.
  2. tag : Name that you will use to load the given provider. It is for your reference in code. It can be anything that you may like.
  3. plugin : Library name which has to be installed before loading a provider.
  4. configPath: An object which contains all the necessary constants

Config file can contain array of objects for all providers and all will be loaded. Supported values for name : aws, azure, alicloud, digitalocean, google

const nodeCloudAliCloudPlugin = require('nodecloud-ali-plugin');

const providers = [
  {
    name: "alicloud",
    tag: "alicloud",
    plugin: nodeCloudAliCloudPlugin,
    configPath: {
      AccessKeyId: "YOUR ACCESS KEY ID HERE"
      AccessKeySecret: "YOUR ACCESS KEY SECRET HERE",
      BucketName: "YOUR BUCKET NAME HERE",
      BucketRegion: "YOUR BUCKET REGION HERE"
    }
  }
];
module.exports = providers;

💻 Development

$ git clone https://github.com/cloudlibz/nodecloud-ali-plugin
$ cd nodecloud-ali-plugin
$ npm link
$ cd .. && mkdir nodecloud-dev && cd nodecloud-dev
$ npm link nodecloud-ali-plugin
$ cd .. && git clone https://github.com/cloudliz/nodecloud
$ cd nodecloud
$ npm link
$ cd nodecloud-dev
$ npm link nodecloud

About

🔧 NodeCloud Ali Cloud plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published