Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

node-red-contrib-aliyun-oss

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-aliyun-oss

A Node-RED node to upload stuff to Alibaba Cloud OSS.

latest
Source
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

Alibaba Cloud OSS for Node-RED

关于

用于将文件上传到阿里云 OSS 的 Node-RED 节点

用法

安装

~/.node-red 目录下执行 npm install node-red-contrib-aliyun-oss

配置

可以通过 Aliyun OSS Upload 类型节点配置面板中添加一个 OSS Store,配置信息包括:bucketregionaccessKeyIdaccessKeySecretendpoint。也可以接受上游节点传的 msg.payload(优先级更高),结构示意如下:

// msg.payload
{
  "storeConfig": {
    "endpoint": "<bucket endpoint>",
    "accessKeyId": "<bucket access key ID>",
    "accessKeySecret": "<bucket access key secret>",
    "bucket": "<bucket name>"
  },
  "uploadConfig": {
    "files": "/home/user/my-awesome-file.tgz", // 也可以是包含文件或者目录的数组
    "baseDir": "/my-awesome-dir" // 可选,用于指定 Bucket 的上传位置
  }
}

上传结果会在 msg.payload 中提供,供下游节点消费。

About

A storage node to upload stuff to Alibaba Cloud OSS.

Usage

Install

Run npm install node-red-contrib-aliyun-oss in ~/.node-red directory.

Configure

You can setup a store configuration via Aliyun OSS Upload node. The configuration should include bucket, accessKeyId, accessKeySecret, endpoint. You can also pass the configuration via upstream msg.payload (higher priority), the structure is described as below:

// msg.payload
{
  "storeConfig": {
    "endpoint": "<bucket endpoint>",
    "accessKeyId": "<bucket access key ID>",
    "accessKeySecret": "<bucket access key secret>",
    "bucket": "<bucket name>"
  },
  "uploadConfig": {
    "files": "/home/user/my-awesome-file.tgz", // can also be an array containing files or dirs, or both
    "baseDir": "/my-awesome-dir" // optional bucket dir to put your files in, if not provided, the files will be uploaded to the root of the bucket
  }
}

Upload results will be provided in msg.payload for downstream nodes to consume.

License

License: MIT

Keywords

node-red

FAQs

Package last updated on 16 Nov 2022

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