Versions in this module Expand all Collapse all v0 v0.1.0 Oct 21, 2024 Changes in this version + var Command = &cobra.Command + var ErrMountpointExists = errors.New("non-empty mountpoint already exists") + var ErrVolumeExists = errors.New("volume already exists") + var ErrVolumeNotFound = errors.New("volume not found") + type CapabilitiesResponse struct + Capabilities Capability + type Capability struct + Scope string + type CreateRequest struct + Name string + Options map[string]string + type Driver struct + func NewDriver(ctx context.Context, root string, mntOpt *mountlib.Options, ...) (*Driver, error) + func (drv *Driver) Create(req *CreateRequest) error + func (drv *Driver) Exit() + func (drv *Driver) Get(req *GetRequest) (*GetResponse, error) + func (drv *Driver) List() (*ListResponse, error) + func (drv *Driver) Mount(req *MountRequest) (*MountResponse, error) + func (drv *Driver) Path(req *PathRequest) (*PathResponse, error) + func (drv *Driver) Remove(req *RemoveRequest) error + func (drv *Driver) Unmount(req *UnmountRequest) error + type ErrorResponse struct + Err string + type GetRequest struct + Name string + type GetResponse struct + Volume *VolInfo + type ListResponse struct + Volumes []*VolInfo + type MountRequest struct + ID string + Name string + type MountResponse struct + Mountpoint string + type PathRequest struct + Name string + type PathResponse struct + Mountpoint string + type RemoveRequest struct + Name string + type Server http.Server + func NewServer(drv *Driver) *Server + func (s *Server) ServeTCP(addr, specDir string, tlsConfig *tls.Config, noSpec bool) error + func (s *Server) ServeUnix(path string, gid int) error + func (s *Server) Shutdown(ctx context.Context) error + type UnmountRequest struct + ID string + Name string + type VolInfo struct + CreatedAt string + Mountpoint string + Name string + Status map[string]interface{} + type VolOpts map[string]string + type Volume struct + CreatedAt time.Time + Fs string + MountPoint string + Mounts []string + Name string + Options VolOpts + Path string + Type string