cnfut

command module
v0.0.0-...-1c4a6df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 5 Imported by: 0

README

CNFUT (Cloud Native File/Folder Upload Tool)

CircleCI codecov Sonarcloud Status SonarCloud Bugs SonarCloud Vulnerabilities GitHub go.mod Go version

qa34hj7wj9d4

CNFUT is a cloud native solution for copying files and directories between public clouds and file systems.

Supported systems are: S3, Google, Azure and Local

S3 supported systems
Google cloud storage
Azure Blob Storage
Local file copies

Deploy to kubernetes

necais/cnfut could be used for deployment in kubernetes. Instructions for sample deployment can be found here:

Usage


Copies file between two systems

  • URL

    /api/v1/

  • Method:

    POST

  • Data Params

    Parameter Explanation Type Default values Example Mandatory
    source Where is the source of data located(file, folder) String None /data/data3 Yes
    destination Where to copy the data(file or folder) String None /data/ Yes
    sourceType Source type: s3, google, azure, local String None local Yes
    destinationType Destination type: s3, google, azure, local String None s3 Yes
    Concurrent Should copy executed concurrently Boolean None true No
    Region Region of the resource(AWS Region) String us-east-1 us-east-1 No
    Bucket Bucket name in the cloud String None data No
    GoogleCredentialPath Credential file path for Google String None /home/necais No
    S3AccessKeyId S3 access key String None ieuwqhefbdsnbfs No
    S3SecretAccessKey S3 secret key String None fdsgdfbcvbchghf No
    Endpoint URL to endpoint String None https://cnfut.blob.core.windows.net No
  • Success Response:

    • Code: 202 Accepted
      Content: { status : Accepted }
  • Error Response:

    • Code: 400 Bad Request
      Content: { error : "Fields are not provided" }
  • Sample Call:

    {
    "source": "/data/data/data3",
    "destination": "data1",
    "sourceType": "local",
    "destinationType": "azure",
    "bucket": "cnfut-container",
    "endpoint": "https://cnfut.blob.core.windows.net"
    } 
    

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL