Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 1.38 KB

README.md

File metadata and controls

63 lines (49 loc) · 1.38 KB

Bluenoise is an open source tool for high performance object storage and management of artifacts SBOM and vulnerabilities scanning

Instructions

  1. Run the Server: Start the server by running the following command in your project directory.
cd cmd\server
go run main.go
cd frontend
npm run start-legacy
  1. Create a Bucket: Use curl or a similar tool to create a bucket.
curl -X POST "http://localhost:8080/create-bucket?bucket=mybucket"
  1. Upload a File: Use curl or a similar tool to upload a file to the bucket.
curl -F "file=@/path/to/your/file" "http://localhost:8080/upload?bucket=mybucket"
  1. Download a File: Use curl or a web browser to download a file from the bucket.
curl -O "http://localhost:8080/download?bucket=mybucket&filename=yourfile"
  1. List Files in a Bucket: Use curl or a web browser to list all files in the bucket.
curl "http://localhost:8080/list?bucket=mybucket"
  1. To add / update / delete custom metadata, send a POST request to /update-metadata with the following JSON body:
{
    "id": "file-id",
    "custom_metadata": {
        "newKey": "newValue"
    },
    "action": "add"
}
{
    "id": "file-id",
    "custom_metadata": {
        "keyToDelete": ""
    },
    "action": "delete"
}
curl "http://localhost:8080/update-metadata"