Skip to content

Commit

Permalink
commit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Isan-Rivkin committed Sep 26, 2023
1 parent b2a4e50 commit d2b180c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/howto/hooks/lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ For more examples and configuration samples, check out the [examples/hooks/](htt
The Lua runtime embedded in lakeFS is limited for security reasons. The provided APIs are shown below.
### `array(table)`

Helper function to mark a table object as an array for the runtime by setting `_is_array: true` metatable field.

### `aws/s3.get_object(bucket, key)`

Returns the body (as a Lua string) of the requested object and a boolean value that is true if the requested object exists
Expand Down
2 changes: 2 additions & 0 deletions pkg/actions/lua/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/treeverse/lakefs/pkg/actions/lua/storage/gcloud"
"github.com/treeverse/lakefs/pkg/actions/lua/strings"
"github.com/treeverse/lakefs/pkg/actions/lua/time"
"github.com/treeverse/lakefs/pkg/actions/lua/util"
"github.com/treeverse/lakefs/pkg/actions/lua/uuid"
)

Expand All @@ -29,6 +30,7 @@ import (
func Open(l *lua.State, ctx context.Context, cfg OpenSafeConfig) {
regexp.Open(l)
strings.Open(l)
util.Open(l)
json.Open(l)
yaml.Open(l)
time.Open(l)
Expand Down

0 comments on commit d2b180c

Please sign in to comment.