Git Product home page Git Product logo

go-nfs-client's Introduction

Pure-Go NFSv4 client

This library is a pure-Go client for NFSv4 (NFSv3 is NOT supported at all). It's mostly designed and tested for AWS EFS, but will work fine with Linux's nfs4-server or userspace-based Ganesha. It's fully synchronous, does nothing behind your back and fully supports context.Context-based cancellation and deadlines.

It's also a fairly minimal library with lots of limitations:

  1. No support for locking.
  2. No support for reconnection and session resumption.
  3. Minimalistic API.
  4. No support for ACLs or extended attributes.
  5. No support for any authentication methods.

Usage example

See cmd/main/runtests.go for the usage examples.

Regenerating the XDR bindings

If you need to regenerate the XDR bindings, then there's some manual work involved.

First use:

go run github.com/xdrpp/goxdr/cmd/goxdr -B -enum-comments -p internal internal/nfs4.x > internal/nfs4.go
go run github.com/xdrpp/goxdr/cmd/goxdr -b -enum-comments -p internal internal/rpc.x > internal/rpc.go

After this, manually do the following:

  1. Rename _u to _U.
  2. Rename xdrProc_NFSPROC4_COMPOUND to XdrProc_NFSPROC4_COMPOUND
  3. Rename xdrProc_NFSPROC4_NULL to XdrProc_NFSPROC4_NULL
  4. Change all the methods like XDR_Offset4(v *Offset4) XdrType_Offset4 to return pointers (not values).

go-nfs-client's People

Contributors

cyberax avatar polyrabbit avatar

Watchers

 avatar

Forkers

c00w

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.