github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/pkg/actions/lua/storage/aws/aws.go (about) 1 package aws 2 3 import ( 4 "context" 5 6 "github.com/Shopify/go-lua" 7 ) 8 9 func Open(l *lua.State, ctx context.Context) { 10 open := func(l *lua.State) int { 11 lua.NewLibrary(l, []lua.RegistryFunction{ 12 {Name: "s3_client", Function: newS3Client(ctx)}, 13 {Name: "glue_client", Function: newGlueClient(ctx)}, 14 }) 15 return 1 16 } 17 lua.Require(l, "aws", open, false) 18 l.Pop(1) 19 }