github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/pkg/actions/lua/formats/formats.go (about)

     1  package formats
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/Shopify/go-lua"
     7  )
     8  
     9  func Open(l *lua.State, ctx context.Context, lakeFSAddr string) {
    10  	open := func(l *lua.State) int {
    11  		lua.NewLibrary(l, []lua.RegistryFunction{
    12  			{Name: "delta_client", Function: newDelta(ctx, lakeFSAddr)},
    13  		})
    14  		return 1
    15  	}
    16  	lua.Require(l, "formats", open, false)
    17  	l.Pop(1)
    18  }