How to use user

This document is detailed about how to use user node, the installation guide is in another document. Use LFS command to operate upload and download functions.

Introduction

This command creates, uploads, downloads, and views a collection of containers and files for the user.

Usage

./mefs-user lfs

COMMANDS:
   createBucket    create bucket
   listBuckets     list buckets
   headBucket      head bucket info
   putObject       put object
   headObject      head object
   getObject       get object
   listObjects     list objects
   delObject       delete object
   downloadObject  download object using rpc
   showStorage     show storage info
   getPros         get pros of bucket
   help, h         Shows a list of commands or help for one command

Subcommands

Introduction

This command creates buckets

Usage

Options

Example

Bucket name: test, storage policy: erasure code, number of data blocks: 10, number of check blocks 5

Introduction

This command is used to view the status of all buckets

Usage

Introduction

This command is used to view all the information of the specified bucket, the following is an example (test is the bucket name)

Usage

Introduction

This command specifies the file for upload

Usage

USAGE: mefs-user lfs putObject [command options] [arguments...]

OPTIONS: --bucket value, --bn value use bucket name --object value, --on value file name after upload --path value upload file path --etag value select verification method (default: md5) --enc value Select encryption method (default: aes) --help, -h View help

Introduction

This command is used to view the specified file status

Usage

Example

Introduction

Download the file to the specified path

Usage

Example

Introduction

View all file information of a specified bucket

Usage

Example

Introductioin

delete specified file

Usage

Example

Introduction

Download objects using rpc

Usage

Example

Introduction

Display the storage information of the node

Example

Introduction

View the bucket user list

Example

Last updated

Was this helpful?