Skip to content

Commit 8bbeeb8

Browse files
authored
Merge pull request ceph#55525 from zdover23/wip-doc-2024-02-11-radosgw-55524-rollback
doc/radosgw: undo 55524 Reviewed-by: Casey Bodley <[email protected]>
2 parents 6c52f1a + 284e99e commit 8bbeeb8

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

doc/radosgw/lua-scripting.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ Lua Scripting
88

99
This 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

5357
To 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

6064
To 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

6771
Package Management via CLI

0 commit comments

Comments
 (0)