rpcbind

package
v0.0.0-...-4e11fec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

RPC Interface for Quickfs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FacadeFrom

func FacadeFrom(c *rpc.Client) quickfs.Facade2

Wraps a RPC client into a QuickFS facade

func FacadeTo

func FacadeTo(f quickfs.Facade2, s *rpc.Server) error

Adds a QuickFS facade to an RPC service. Only one per rpc.Server can be added.

Types

type ALookup

type ALookup struct {
	Id  []byte
	Err Errcon
}

type AReadAt

type AReadAt struct {
	Data []byte
	Err  Errcon
}

type AReaddir

type AReaddir struct {
	Names []string
	Err   Errcon
}

type AStat

type AStat struct {
	Sb  quickfs.Statbuf
	Err Errcon
}

type AWriteAt

type AWriteAt struct {
	Size int
	Err  Errcon
}

type Errcon

type Errcon struct {
	Msg string
	Bad bool
}

func (*Errcon) From

func (e *Errcon) From(r error) error

func (*Errcon) To

func (e *Errcon) To() error

type QChtimes

type QChtimes struct {
	Id   []byte
	A, M time.Time
}

type QLookup

type QLookup struct {
	Id   []byte
	Name string
}
type QMovelink struct {
	Oid, Nid     []byte
	Oname, Nname string
}

type QReadAt

type QReadAt struct {
	Id   []byte
	Size int
	Off  int64
}

type QReaddir

type QReaddir struct {
	Id []byte
}

type QStat

type QStat struct {
	Id []byte
}

type QTruncate

type QTruncate struct {
	Id   []byte
	Size int64
}

type QWriteAt

type QWriteAt struct {
	Id   []byte
	Data []byte
	Off  int64
}

type QuickfsClient

type QuickfsClient struct {
	Client *rpc.Client
}

func (*QuickfsClient) Chtimes

func (c *QuickfsClient) Chtimes(id *uuid.UUID, atime time.Time, mtime time.Time) error

func (*QuickfsClient) HL_Delete

func (c *QuickfsClient) HL_Delete(id *uuid.UUID, name string) error

func (*QuickfsClient) HL_Mkdir

func (c *QuickfsClient) HL_Mkdir(id *uuid.UUID, name string) (*uuid.UUID, error)

func (*QuickfsClient) HL_Mkfile

func (c *QuickfsClient) HL_Mkfile(id *uuid.UUID, name string) (*uuid.UUID, error)
func (c *QuickfsClient) HL_Movelink(oid *uuid.UUID, oname string, nid *uuid.UUID, nname string) error

func (*QuickfsClient) HL_ReadAt

func (c *QuickfsClient) HL_ReadAt(id *uuid.UUID, b []byte, off int64) ([]byte, error)

func (*QuickfsClient) HL_ReadAt2

func (c *QuickfsClient) HL_ReadAt2(id *uuid.UUID, size int, off int64) ([]byte, error)

func (*QuickfsClient) HL_Stat

func (c *QuickfsClient) HL_Stat(id *uuid.UUID, sb *quickfs.Statbuf) error

func (*QuickfsClient) Lookup

func (c *QuickfsClient) Lookup(id *uuid.UUID, name string) (*uuid.UUID, error)

func (*QuickfsClient) Readdirnames

func (c *QuickfsClient) Readdirnames(id *uuid.UUID) ([]string, error)

func (*QuickfsClient) Truncate

func (c *QuickfsClient) Truncate(id *uuid.UUID, size int64) error

func (*QuickfsClient) WriteAt

func (c *QuickfsClient) WriteAt(id *uuid.UUID, b []byte, off int64) (int, error)

type QuickfsFacade

type QuickfsFacade struct {
	Facade quickfs.Facade2
}

func (*QuickfsFacade) Chtimes

func (f *QuickfsFacade) Chtimes(q *QChtimes, a *Errcon) error

func (*QuickfsFacade) HLDelete

func (f *QuickfsFacade) HLDelete(q *QLookup, a *Errcon) error

func (*QuickfsFacade) HLMkdir

func (f *QuickfsFacade) HLMkdir(q *QLookup, a *ALookup) error

func (*QuickfsFacade) HLMkfile

func (f *QuickfsFacade) HLMkfile(q *QLookup, a *ALookup) error
func (f *QuickfsFacade) HLMovelink(q *QMovelink, a *Errcon) error

func (*QuickfsFacade) HLReadAt

func (f *QuickfsFacade) HLReadAt(q *QReadAt, a *AReadAt) error

func (*QuickfsFacade) HLStat

func (f *QuickfsFacade) HLStat(q *QStat, a *AStat) error

func (*QuickfsFacade) Lookup

func (f *QuickfsFacade) Lookup(q *QLookup, a *ALookup) error

func (*QuickfsFacade) Readdir

func (f *QuickfsFacade) Readdir(q *QReaddir, a *AReaddir) error

func (*QuickfsFacade) Truncate

func (f *QuickfsFacade) Truncate(q *QTruncate, a *Errcon) error

func (*QuickfsFacade) WriteAt

func (f *QuickfsFacade) WriteAt(q *QWriteAt, a *AWriteAt) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL