@@ -8,6 +8,11 @@ Lua Scripting
88
99This feature allows users to assign execution context to Lua scripts. The supported contexts are:
1010
11+ - ``prerequest `` which will execute a script before each operation is performed
12+ - ``postrequest `` which will execute after each operation is performed
13+ - ``background `` which will execute within a specified time interval
14+ - ``getdata `` which will execute on objects' data when objects are downloaded
15+ - ``putdata `` which will execute on objects' data when objects are uploaded
1116 - ``preRequest `` which will execute a script before each operation is performed
1217 - ``postRequest `` which will execute after each operation is performed
1318
@@ -39,29 +44,28 @@ To upload a script:
3944
4045
4146::
42-
43- # radosgw-admin script put --infile={lua-file-path} --context={preRequest|postRequest} [--tenant={tenant-name}]
44-
4547
46- * When uploading a script into a cluster deployed with cephadm, use the following command:
48+ # radosgw-admin script put --infile={lua-file-path} --context={prerequest|postrequest|background|getdata|putdata} [--tenant={tenant-name}]
49+
50+ * When uploading a script with the ``background `` context, a tenant name should not be specified.
4751
4852::
4953
50- # cephadm shell radosgw-admin script put --infile=/rootfs/{lua-file-path} --context={prerequest|postrequest} [--tenant={tenant-name}]
54+ # cephadm shell radosgw-admin script put --infile=/rootfs/{lua-file-path} --context={prerequest|postrequest|background|getdata|putdata } [--tenant={tenant-name}]
5155
5256
5357To print the content of the script to standard output:
5458
5559::
5660
57- # radosgw-admin script get --context={preRequest|postRequest} [--tenant={tenant-name}]
61+ # radosgw-admin script get --context={preRequest|postRequest|background|getdata|putdata } [--tenant={tenant-name}]
5862
5963
6064To remove the script:
6165
6266::
6367
64- # radosgw-admin script rm --context={preRequest|postRequest} [--tenant={tenant-name}]
68+ # radosgw-admin script rm --context={preRequest|postRequest|background|getdata|putdata } [--tenant={tenant-name}]
6569
6670
6771Package Management via CLI
0 commit comments