Git Product home page Git Product logo

nrcao's Introduction

node-red-contrib-jdcloud

这是一个用于京东云OSS对象储存的Node-RED节点

安装

在你的Node-RED用户数据根目录运行下列代码

    npm install node-red-node-jdcloud

使用

创建储存桶

京东云储存桶创建节点,msg.bucket属性定义储存桶的名称。

  • 长度必须在3-63字符之间
  • 名称仅能由小写字母、数字、中划线(-)组成
  • 名称必须以小写字母或数字开头和结尾

创建成功后会输出msg.bucket定义创建成功的储存桶的名称,失败流将会终止

京东云监听

京东云OSS监听节点。监听储存桶内文件事件。默认是监听所有文件事件,但是你可以提供文件名和文件类型来限制监听的范围。事件消息由msg.payload属性中的完整文件名,msg.file中的文件名,msg.event中的事件类型组成。

京东云下载

京东云OSS输入节点。从京东云OSS存储桶下载内容。可以在节点储存桶属性或msg.bucket属性中指定存储桶名称。要下载的文件的名称来自节点目标文件名属性或msg.filename属性。下载的内容作为msg.payload属性发送。如果下载失败,则msg.error将包含一个错误对象。

京东云上传

京东云OSS输出节点。将内容上传到京东云OSS存储桶。可以在节点存储桶属性或msg.bucket属性中指定存储桶名称。 京东云OSS上的文件名来自节点目标文件名属性或msg.filename属性。内容来自节点的本地文件路径属性,msg.localFilename属性或msg.payload属性。

nrcao's People

Contributors

xgfjyw avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.