-
Notifications
You must be signed in to change notification settings - Fork 351
/
open.go
57 lines (53 loc) · 1.82 KB
/
open.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package lua
import (
"context"
"github.com/Shopify/go-lua"
"github.com/treeverse/lakefs/pkg/actions/lua/crypto/aes"
"github.com/treeverse/lakefs/pkg/actions/lua/crypto/hmac"
"github.com/treeverse/lakefs/pkg/actions/lua/crypto/sha256"
"github.com/treeverse/lakefs/pkg/actions/lua/databricks"
"github.com/treeverse/lakefs/pkg/actions/lua/encoding/base64"
"github.com/treeverse/lakefs/pkg/actions/lua/encoding/hex"
"github.com/treeverse/lakefs/pkg/actions/lua/encoding/json"
"github.com/treeverse/lakefs/pkg/actions/lua/encoding/parquet"
"github.com/treeverse/lakefs/pkg/actions/lua/encoding/yaml"
"github.com/treeverse/lakefs/pkg/actions/lua/formats"
"github.com/treeverse/lakefs/pkg/actions/lua/net/http"
"github.com/treeverse/lakefs/pkg/actions/lua/net/url"
"github.com/treeverse/lakefs/pkg/actions/lua/path"
"github.com/treeverse/lakefs/pkg/actions/lua/regexp"
"github.com/treeverse/lakefs/pkg/actions/lua/storage/aws"
"github.com/treeverse/lakefs/pkg/actions/lua/storage/azure"
"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"
)
// most classes here are taken from: https://github.com/Shopify/goluago
// See the original MIT license with copyright at ./LICENSE.md
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)
hmac.Open(l)
base64.Open(l)
uuid.Open(l)
hex.Open(l)
sha256.Open(l)
aes.Open(l)
parquet.Open(l)
path.Open(l)
aws.Open(l, ctx)
gcloud.Open(l, ctx)
azure.Open(l, ctx)
url.Open(l)
formats.Open(l, ctx, cfg.LakeFSAddr)
databricks.Open(l, ctx)
if cfg.NetHTTPEnabled {
http.Open(l)
}
}