An S3 object storage client implementation written in HSL
Follow the instructions in our manual to add our package repository and then run the below command.
apt-get install halon-extras-s3
yum install halon-extras-s3
These functions needs to be imported from the extras://s3 module path.
Params
- endpoint
string- the endpoint (including https://) - secretkey
string- the secretkey - accesskey
string- the accesskey - bucket
string- the bucket - name
string- the name - fp
File- the mail file - options
array- an options array- http-background
array- http-background options- id
string- the http-background id
- id
- http-background
Returns
The s3_put functions returns the result of the http_background call.
Example (EOD)
import { s3_put } from "extras://s3";
echo s3_put(
$endpoint,
$secretkey,
$accesskey,
$bucket,
"hello.txt",
File::String("Hello World")
);
Params
- endpoint
string- the endpoint (including https://) - secretkey
string- the secretkey - accesskey
string- the accesskey - bucket
string- the bucket - name
string- the name - options
array- an options array- http-background
array- http-background options- id
string- the http-background id
- id
- http-background
Returns
The s3_get functions returns the result of the http_background call.
Example (EOD)
import { s3_get } from "extras://s3";
echo s3_get(
$endpoint,
$secretkey,
$accesskey,
$bucket,
"hello.txt"
);
Params
- endpoint
string- the endpoint (including https://) - secretkey
string- the secretkey - accesskey
string- the accesskey - bucket
string- the bucket - name
string- the name - options
array- an options array- http-background
array- http-background options- id
string- the http-background id
- id
- http-background
Returns
The s3_delete functions returns the result of the http_background call.
Example (EOD)
import { s3_delete } from "extras://s3";
echo s3_delete(
$endpoint,
$secretkey,
$accesskey,
$bucket,
"hello.txt"
);