proto

package
v0.0.0-...-2ba06ff Latest Latest
Warning

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

Go to latest
Published: May 31, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

README

Rebuilding the grpc interface

Rebuilding the api requires a recent version of the google protobuf library as well as grpc-go. Once you've got protoc and grpc-go you can rebuild using:

protoc --go_out=plugins=grpc:. *.proto

Install info

Install grpc-go and golang protobuf implementation:

go get github.com/grpc/grpc-go
go get github.com/golang/protobuf/proto
go get github.com/golang/protobuf/protoc-gen-go

For OSX

To get a compatible version of protoc installed the easiest way is to use brew:

brew update && brew install protobuf --devel

For other os's

See - https://developers.google.com/protocol-buffers/ for install instructions.

  1. https://developers.google.com/protocol-buffers/docs/proto3#scalar
  2. http://www.grpc.io/docs/

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

formic_api.proto

It has these top-level messages:

DirEnt
DirEntries
Attr
SetAttrRequest
SetAttrResponse
GetAttrRequest
GetAttrResponse
ReadRequest
ReadResponse
WriteRequest
WriteResponse
MkDirRequest
MkDirResponse
CreateRequest
CreateResponse
RemoveRequest
RemoveResponse
LookupRequest
LookupResponse
ReadDirAllRequest
ReadDirAllResponse
SymlinkRequest
SymlinkResponse
ReadlinkRequest
ReadlinkResponse
GetxattrRequest
GetxattrResponse
SetxattrRequest
SetxattrResponse
ListxattrRequest
ListxattrResponse
RemovexattrRequest
RemovexattrResponse
RenameRequest
RenameResponse
StatfsRequest
StatfsResponse
InitFsRequest
InitFsResponse
InodeEntry
Tombstone
DirEntry
FileBlock
ModFS
CreateFSRequest
CreateFSResponse
ListFSRequest
ListFSResponse
ShowFSRequest
ShowFSResponse
DeleteFSRequest
DeleteFSResponse
UpdateFSRequest
UpdateFSResponse
GrantAddrFSRequest
GrantAddrFSResponse
RevokeAddrFSRequest
RevokeAddrFSResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterApiServer

func RegisterApiServer(s *grpc.Server, srv ApiServer)

func RegisterFileSystemAPIServer

func RegisterFileSystemAPIServer(s *grpc.Server, srv FileSystemAPIServer)

Types

type ApiClient

type ApiClient interface {
	SetAttr(ctx context.Context, in *SetAttrRequest, opts ...grpc.CallOption) (*SetAttrResponse, error)
	GetAttr(ctx context.Context, in *GetAttrRequest, opts ...grpc.CallOption) (*GetAttrResponse, error)
	Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error)
	Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error)
	MkDir(ctx context.Context, in *MkDirRequest, opts ...grpc.CallOption) (*MkDirResponse, error)
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error)
	ReadDirAll(ctx context.Context, in *ReadDirAllRequest, opts ...grpc.CallOption) (*ReadDirAllResponse, error)
	Symlink(ctx context.Context, in *SymlinkRequest, opts ...grpc.CallOption) (*SymlinkResponse, error)
	Readlink(ctx context.Context, in *ReadlinkRequest, opts ...grpc.CallOption) (*ReadlinkResponse, error)
	Getxattr(ctx context.Context, in *GetxattrRequest, opts ...grpc.CallOption) (*GetxattrResponse, error)
	Setxattr(ctx context.Context, in *SetxattrRequest, opts ...grpc.CallOption) (*SetxattrResponse, error)
	Listxattr(ctx context.Context, in *ListxattrRequest, opts ...grpc.CallOption) (*ListxattrResponse, error)
	Removexattr(ctx context.Context, in *RemovexattrRequest, opts ...grpc.CallOption) (*RemovexattrResponse, error)
	Rename(ctx context.Context, in *RenameRequest, opts ...grpc.CallOption) (*RenameResponse, error)
	Statfs(ctx context.Context, in *StatfsRequest, opts ...grpc.CallOption) (*StatfsResponse, error)
	InitFs(ctx context.Context, in *InitFsRequest, opts ...grpc.CallOption) (*InitFsResponse, error)
}

func NewApiClient

func NewApiClient(cc *grpc.ClientConn) ApiClient

type Attr

type Attr struct {
	Inode  uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Atime  int64  `protobuf:"varint,2,opt,name=atime" json:"atime,omitempty"`
	Mtime  int64  `protobuf:"varint,3,opt,name=mtime" json:"mtime,omitempty"`
	Ctime  int64  `protobuf:"varint,4,opt,name=ctime" json:"ctime,omitempty"`
	Crtime int64  `protobuf:"varint,5,opt,name=crtime" json:"crtime,omitempty"`
	Mode   uint32 `protobuf:"varint,6,opt,name=mode" json:"mode,omitempty"`
	Valid  int32  `protobuf:"varint,7,opt,name=valid" json:"valid,omitempty"`
	Size   uint64 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"`
	Uid    uint32 `protobuf:"varint,9,opt,name=uid" json:"uid,omitempty"`
	Gid    uint32 `protobuf:"varint,10,opt,name=gid" json:"gid,omitempty"`
}

Attr

func (*Attr) Descriptor

func (*Attr) Descriptor() ([]byte, []int)

func (*Attr) ProtoMessage

func (*Attr) ProtoMessage()

func (*Attr) Reset

func (m *Attr) Reset()

func (*Attr) String

func (m *Attr) String() string

type CreateFSRequest

type CreateFSRequest struct {
	Token  string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
	FSName string `protobuf:"bytes,2,opt,name=FSName" json:"FSName,omitempty"`
}

Request to create a new filesystem

func (*CreateFSRequest) Descriptor

func (*CreateFSRequest) Descriptor() ([]byte, []int)

func (*CreateFSRequest) ProtoMessage

func (*CreateFSRequest) ProtoMessage()

func (*CreateFSRequest) Reset

func (m *CreateFSRequest) Reset()

func (*CreateFSRequest) String

func (m *CreateFSRequest) String() string

type CreateFSResponse

type CreateFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response from creating a new filesystem

func (*CreateFSResponse) Descriptor

func (*CreateFSResponse) Descriptor() ([]byte, []int)

func (*CreateFSResponse) ProtoMessage

func (*CreateFSResponse) ProtoMessage()

func (*CreateFSResponse) Reset

func (m *CreateFSResponse) Reset()

func (*CreateFSResponse) String

func (m *CreateFSResponse) String() string

type CreateRequest

type CreateRequest struct {
	Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Attr   *Attr  `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
}

CreateRequest

func (*CreateRequest) Descriptor

func (*CreateRequest) Descriptor() ([]byte, []int)

func (*CreateRequest) GetAttr

func (m *CreateRequest) GetAttr() *Attr

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Attr *Attr  `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}

CreateResponse

func (*CreateResponse) Descriptor

func (*CreateResponse) Descriptor() ([]byte, []int)

func (*CreateResponse) GetAttr

func (m *CreateResponse) GetAttr() *Attr

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) Reset

func (m *CreateResponse) Reset()

func (*CreateResponse) String

func (m *CreateResponse) String() string

type DeleteFSRequest

type DeleteFSRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
	FSid  string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
}

Request to delete a specific file system

func (*DeleteFSRequest) Descriptor

func (*DeleteFSRequest) Descriptor() ([]byte, []int)

func (*DeleteFSRequest) ProtoMessage

func (*DeleteFSRequest) ProtoMessage()

func (*DeleteFSRequest) Reset

func (m *DeleteFSRequest) Reset()

func (*DeleteFSRequest) String

func (m *DeleteFSRequest) String() string

type DeleteFSResponse

type DeleteFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response from deleting a file system

func (*DeleteFSResponse) Descriptor

func (*DeleteFSResponse) Descriptor() ([]byte, []int)

func (*DeleteFSResponse) ProtoMessage

func (*DeleteFSResponse) ProtoMessage()

func (*DeleteFSResponse) Reset

func (m *DeleteFSResponse) Reset()

func (*DeleteFSResponse) String

func (m *DeleteFSResponse) String() string

type DirEnt

type DirEnt struct {
	Name   string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Parent uint64 `protobuf:"varint,2,opt,name=parent" json:"parent,omitempty"`
	Type   uint32 `protobuf:"varint,3,opt,name=type" json:"type,omitempty"`
}

DirEnt is a directory entry

func (*DirEnt) Descriptor

func (*DirEnt) Descriptor() ([]byte, []int)

func (*DirEnt) ProtoMessage

func (*DirEnt) ProtoMessage()

func (*DirEnt) Reset

func (m *DirEnt) Reset()

func (*DirEnt) String

func (m *DirEnt) String() string

type DirEntries

type DirEntries struct {
	DirEntries []*DirEnt `protobuf:"bytes,1,rep,name=DirEntries" json:"DirEntries,omitempty"`
}

DirEntries just contains a list of directory entries

func (*DirEntries) Descriptor

func (*DirEntries) Descriptor() ([]byte, []int)

func (*DirEntries) GetDirEntries

func (m *DirEntries) GetDirEntries() []*DirEnt

func (*DirEntries) ProtoMessage

func (*DirEntries) ProtoMessage()

func (*DirEntries) Reset

func (m *DirEntries) Reset()

func (*DirEntries) String

func (m *DirEntries) String() string

type DirEntry

type DirEntry struct {
	Version   uint32     `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Name      string     `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Id        []byte     `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Tombstone *Tombstone `protobuf:"bytes,4,opt,name=tombstone" json:"tombstone,omitempty"`
	Type      uint32     `protobuf:"varint,5,opt,name=type" json:"type,omitempty"`
}

DirEntry This is used for the serialization of dir info in the group score This is *not* used for api calls

func (*DirEntry) Descriptor

func (*DirEntry) Descriptor() ([]byte, []int)

func (*DirEntry) GetTombstone

func (m *DirEntry) GetTombstone() *Tombstone

func (*DirEntry) ProtoMessage

func (*DirEntry) ProtoMessage()

func (*DirEntry) Reset

func (m *DirEntry) Reset()

func (*DirEntry) String

func (m *DirEntry) String() string

type FileBlock

type FileBlock struct {
	Version  uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	Data     []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	Checksum uint32 `protobuf:"varint,3,opt,name=checksum" json:"checksum,omitempty"`
}

FileBlock This is used for storing blocks in value store This is *not* used for api calls

func (*FileBlock) Descriptor

func (*FileBlock) Descriptor() ([]byte, []int)

func (*FileBlock) ProtoMessage

func (*FileBlock) ProtoMessage()

func (*FileBlock) Reset

func (m *FileBlock) Reset()

func (*FileBlock) String

func (m *FileBlock) String() string

type FileSystemAPIClient

type FileSystemAPIClient interface {
	CreateFS(ctx context.Context, in *CreateFSRequest, opts ...grpc.CallOption) (*CreateFSResponse, error)
	ListFS(ctx context.Context, in *ListFSRequest, opts ...grpc.CallOption) (*ListFSResponse, error)
	ShowFS(ctx context.Context, in *ShowFSRequest, opts ...grpc.CallOption) (*ShowFSResponse, error)
	DeleteFS(ctx context.Context, in *DeleteFSRequest, opts ...grpc.CallOption) (*DeleteFSResponse, error)
	UpdateFS(ctx context.Context, in *UpdateFSRequest, opts ...grpc.CallOption) (*UpdateFSResponse, error)
	GrantAddrFS(ctx context.Context, in *GrantAddrFSRequest, opts ...grpc.CallOption) (*GrantAddrFSResponse, error)
	RevokeAddrFS(ctx context.Context, in *RevokeAddrFSRequest, opts ...grpc.CallOption) (*RevokeAddrFSResponse, error)
}

func NewFileSystemAPIClient

func NewFileSystemAPIClient(cc *grpc.ClientConn) FileSystemAPIClient

type GetAttrRequest

type GetAttrRequest struct {
	Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
}

GetAttrRequest

func (*GetAttrRequest) Descriptor

func (*GetAttrRequest) Descriptor() ([]byte, []int)

func (*GetAttrRequest) ProtoMessage

func (*GetAttrRequest) ProtoMessage()

func (*GetAttrRequest) Reset

func (m *GetAttrRequest) Reset()

func (*GetAttrRequest) String

func (m *GetAttrRequest) String() string

type GetAttrResponse

type GetAttrResponse struct {
	Attr *Attr `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
}

GetAttrResponse

func (*GetAttrResponse) Descriptor

func (*GetAttrResponse) Descriptor() ([]byte, []int)

func (*GetAttrResponse) GetAttr

func (m *GetAttrResponse) GetAttr() *Attr

func (*GetAttrResponse) ProtoMessage

func (*GetAttrResponse) ProtoMessage()

func (*GetAttrResponse) Reset

func (m *GetAttrResponse) Reset()

func (*GetAttrResponse) String

func (m *GetAttrResponse) String() string

type GetxattrRequest

type GetxattrRequest struct {
	Inode    uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Size     uint32 `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
	Position uint32 `protobuf:"varint,4,opt,name=position" json:"position,omitempty"`
}

Getxattr

func (*GetxattrRequest) Descriptor

func (*GetxattrRequest) Descriptor() ([]byte, []int)

func (*GetxattrRequest) ProtoMessage

func (*GetxattrRequest) ProtoMessage()

func (*GetxattrRequest) Reset

func (m *GetxattrRequest) Reset()

func (*GetxattrRequest) String

func (m *GetxattrRequest) String() string

type GetxattrResponse

type GetxattrResponse struct {
	Xattr []byte `protobuf:"bytes,1,opt,name=xattr,proto3" json:"xattr,omitempty"`
}

func (*GetxattrResponse) Descriptor

func (*GetxattrResponse) Descriptor() ([]byte, []int)

func (*GetxattrResponse) ProtoMessage

func (*GetxattrResponse) ProtoMessage()

func (*GetxattrResponse) Reset

func (m *GetxattrResponse) Reset()

func (*GetxattrResponse) String

func (m *GetxattrResponse) String() string

type GrantAddrFSRequest

type GrantAddrFSRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
	FSid  string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
	Addr  string `protobuf:"bytes,3,opt,name=Addr" json:"Addr,omitempty"`
}

Request grant an ip address access to a file system

func (*GrantAddrFSRequest) Descriptor

func (*GrantAddrFSRequest) Descriptor() ([]byte, []int)

func (*GrantAddrFSRequest) ProtoMessage

func (*GrantAddrFSRequest) ProtoMessage()

func (*GrantAddrFSRequest) Reset

func (m *GrantAddrFSRequest) Reset()

func (*GrantAddrFSRequest) String

func (m *GrantAddrFSRequest) String() string

type GrantAddrFSResponse

type GrantAddrFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response from granting ip address access to a file system

func (*GrantAddrFSResponse) Descriptor

func (*GrantAddrFSResponse) Descriptor() ([]byte, []int)

func (*GrantAddrFSResponse) ProtoMessage

func (*GrantAddrFSResponse) ProtoMessage()

func (*GrantAddrFSResponse) Reset

func (m *GrantAddrFSResponse) Reset()

func (*GrantAddrFSResponse) String

func (m *GrantAddrFSResponse) String() string

type InitFsRequest

type InitFsRequest struct {
}

InitFs

func (*InitFsRequest) Descriptor

func (*InitFsRequest) Descriptor() ([]byte, []int)

func (*InitFsRequest) ProtoMessage

func (*InitFsRequest) ProtoMessage()

func (*InitFsRequest) Reset

func (m *InitFsRequest) Reset()

func (*InitFsRequest) String

func (m *InitFsRequest) String() string

type InitFsResponse

type InitFsResponse struct {
}

func (*InitFsResponse) Descriptor

func (*InitFsResponse) Descriptor() ([]byte, []int)

func (*InitFsResponse) ProtoMessage

func (*InitFsResponse) ProtoMessage()

func (*InitFsResponse) Reset

func (m *InitFsResponse) Reset()

func (*InitFsResponse) String

func (m *InitFsResponse) String() string

type InodeEntry

type InodeEntry struct {
	Version   uint32            `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	IsDir     bool              `protobuf:"varint,2,opt,name=isDir" json:"isDir,omitempty"`
	Attr      *Attr             `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
	Parent    uint64            `protobuf:"varint,4,opt,name=parent" json:"parent,omitempty"`
	Inode     uint64            `protobuf:"varint,5,opt,name=inode" json:"inode,omitempty"`
	NodeCount uint64            `protobuf:"varint,6,opt,name=nodeCount" json:"nodeCount,omitempty"`
	IsLink    bool              `protobuf:"varint,7,opt,name=isLink" json:"isLink,omitempty"`
	Target    string            `protobuf:"bytes,8,opt,name=target" json:"target,omitempty"`
	Xattr     map[string][]byte `` /* 137-byte string literal not displayed */
	Blocks    uint64            `protobuf:"varint,10,opt,name=blocks" json:"blocks,omitempty"`
	BlockSize uint64            `protobuf:"varint,11,opt,name=blockSize" json:"blockSize,omitempty"`
	LastBlock uint64            `protobuf:"varint,12,opt,name=lastBlock" json:"lastBlock,omitempty"`
	FsId      []byte            `protobuf:"bytes,13,opt,name=fsId,proto3" json:"fsId,omitempty"`
}

Inode This is used for serialization of the inode metadata This is *not* used for api calls

func (*InodeEntry) Descriptor

func (*InodeEntry) Descriptor() ([]byte, []int)

func (*InodeEntry) GetAttr

func (m *InodeEntry) GetAttr() *Attr

func (*InodeEntry) GetXattr

func (m *InodeEntry) GetXattr() map[string][]byte

func (*InodeEntry) ProtoMessage

func (*InodeEntry) ProtoMessage()

func (*InodeEntry) Reset

func (m *InodeEntry) Reset()

func (*InodeEntry) String

func (m *InodeEntry) String() string

type ListFSRequest

type ListFSRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
}

Request a list of all file systems for a given account

func (*ListFSRequest) Descriptor

func (*ListFSRequest) Descriptor() ([]byte, []int)

func (*ListFSRequest) ProtoMessage

func (*ListFSRequest) ProtoMessage()

func (*ListFSRequest) Reset

func (m *ListFSRequest) Reset()

func (*ListFSRequest) String

func (m *ListFSRequest) String() string

type ListFSResponse

type ListFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response for displaying a list of all an accounts file systems.

func (*ListFSResponse) Descriptor

func (*ListFSResponse) Descriptor() ([]byte, []int)

func (*ListFSResponse) ProtoMessage

func (*ListFSResponse) ProtoMessage()

func (*ListFSResponse) Reset

func (m *ListFSResponse) Reset()

func (*ListFSResponse) String

func (m *ListFSResponse) String() string

type ListxattrRequest

type ListxattrRequest struct {
	Inode    uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Size     uint32 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
	Position uint32 `protobuf:"varint,3,opt,name=position" json:"position,omitempty"`
}

Listxattr

func (*ListxattrRequest) Descriptor

func (*ListxattrRequest) Descriptor() ([]byte, []int)

func (*ListxattrRequest) ProtoMessage

func (*ListxattrRequest) ProtoMessage()

func (*ListxattrRequest) Reset

func (m *ListxattrRequest) Reset()

func (*ListxattrRequest) String

func (m *ListxattrRequest) String() string

type ListxattrResponse

type ListxattrResponse struct {
	Xattr []byte `protobuf:"bytes,1,opt,name=xattr,proto3" json:"xattr,omitempty"`
}

func (*ListxattrResponse) Descriptor

func (*ListxattrResponse) Descriptor() ([]byte, []int)

func (*ListxattrResponse) ProtoMessage

func (*ListxattrResponse) ProtoMessage()

func (*ListxattrResponse) Reset

func (m *ListxattrResponse) Reset()

func (*ListxattrResponse) String

func (m *ListxattrResponse) String() string

type LookupRequest

type LookupRequest struct {
	Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

LookupRequest

func (*LookupRequest) Descriptor

func (*LookupRequest) Descriptor() ([]byte, []int)

func (*LookupRequest) ProtoMessage

func (*LookupRequest) ProtoMessage()

func (*LookupRequest) Reset

func (m *LookupRequest) Reset()

func (*LookupRequest) String

func (m *LookupRequest) String() string

type LookupResponse

type LookupResponse struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Attr *Attr  `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}

LookupResponse is a directory entry

func (*LookupResponse) Descriptor

func (*LookupResponse) Descriptor() ([]byte, []int)

func (*LookupResponse) GetAttr

func (m *LookupResponse) GetAttr() *Attr

func (*LookupResponse) ProtoMessage

func (*LookupResponse) ProtoMessage()

func (*LookupResponse) Reset

func (m *LookupResponse) Reset()

func (*LookupResponse) String

func (m *LookupResponse) String() string

type MkDirRequest

type MkDirRequest struct {
	Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Attr   *Attr  `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
}

MkdirRequest

func (*MkDirRequest) Descriptor

func (*MkDirRequest) Descriptor() ([]byte, []int)

func (*MkDirRequest) GetAttr

func (m *MkDirRequest) GetAttr() *Attr

func (*MkDirRequest) ProtoMessage

func (*MkDirRequest) ProtoMessage()

func (*MkDirRequest) Reset

func (m *MkDirRequest) Reset()

func (*MkDirRequest) String

func (m *MkDirRequest) String() string

type MkDirResponse

type MkDirResponse struct {
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Attr *Attr  `protobuf:"bytes,2,opt,name=attr" json:"attr,omitempty"`
}

MkdirResponse

func (*MkDirResponse) Descriptor

func (*MkDirResponse) Descriptor() ([]byte, []int)

func (*MkDirResponse) GetAttr

func (m *MkDirResponse) GetAttr() *Attr

func (*MkDirResponse) ProtoMessage

func (*MkDirResponse) ProtoMessage()

func (*MkDirResponse) Reset

func (m *MkDirResponse) Reset()

func (*MkDirResponse) String

func (m *MkDirResponse) String() string

type ModFS

type ModFS struct {
	Name   string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
	Status string `protobuf:"bytes,2,opt,name=Status" json:"Status,omitempty"`
}

ModFS ...

func (*ModFS) Descriptor

func (*ModFS) Descriptor() ([]byte, []int)

func (*ModFS) ProtoMessage

func (*ModFS) ProtoMessage()

func (*ModFS) Reset

func (m *ModFS) Reset()

func (*ModFS) String

func (m *ModFS) String() string

type ReadDirAllRequest

type ReadDirAllRequest struct {
	Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
}

ReadDirAllRequest

func (*ReadDirAllRequest) Descriptor

func (*ReadDirAllRequest) Descriptor() ([]byte, []int)

func (*ReadDirAllRequest) ProtoMessage

func (*ReadDirAllRequest) ProtoMessage()

func (*ReadDirAllRequest) Reset

func (m *ReadDirAllRequest) Reset()

func (*ReadDirAllRequest) String

func (m *ReadDirAllRequest) String() string

type ReadDirAllResponse

type ReadDirAllResponse struct {
	DirEntries []*DirEnt `protobuf:"bytes,1,rep,name=DirEntries" json:"DirEntries,omitempty"`
}

ReadDirAllResponse

func (*ReadDirAllResponse) Descriptor

func (*ReadDirAllResponse) Descriptor() ([]byte, []int)

func (*ReadDirAllResponse) GetDirEntries

func (m *ReadDirAllResponse) GetDirEntries() []*DirEnt

func (*ReadDirAllResponse) ProtoMessage

func (*ReadDirAllResponse) ProtoMessage()

func (*ReadDirAllResponse) Reset

func (m *ReadDirAllResponse) Reset()

func (*ReadDirAllResponse) String

func (m *ReadDirAllResponse) String() string

type ReadRequest

type ReadRequest struct {
	Inode  uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Offset int64  `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	Size   int64  `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
}

ReqadRequest

func (*ReadRequest) Descriptor

func (*ReadRequest) Descriptor() ([]byte, []int)

func (*ReadRequest) ProtoMessage

func (*ReadRequest) ProtoMessage()

func (*ReadRequest) Reset

func (m *ReadRequest) Reset()

func (*ReadRequest) String

func (m *ReadRequest) String() string

type ReadResponse

type ReadResponse struct {
	Inode   uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

ReadResponse

func (*ReadResponse) Descriptor

func (*ReadResponse) Descriptor() ([]byte, []int)

func (*ReadResponse) ProtoMessage

func (*ReadResponse) ProtoMessage()

func (*ReadResponse) Reset

func (m *ReadResponse) Reset()

func (*ReadResponse) String

func (m *ReadResponse) String() string

type ReadlinkRequest

type ReadlinkRequest struct {
	Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
}

ReadlinkRequest

func (*ReadlinkRequest) Descriptor

func (*ReadlinkRequest) Descriptor() ([]byte, []int)

func (*ReadlinkRequest) ProtoMessage

func (*ReadlinkRequest) ProtoMessage()

func (*ReadlinkRequest) Reset

func (m *ReadlinkRequest) Reset()

func (*ReadlinkRequest) String

func (m *ReadlinkRequest) String() string

type ReadlinkResponse

type ReadlinkResponse struct {
	Target string `protobuf:"bytes,1,opt,name=target" json:"target,omitempty"`
}

ReadlinkResponse

func (*ReadlinkResponse) Descriptor

func (*ReadlinkResponse) Descriptor() ([]byte, []int)

func (*ReadlinkResponse) ProtoMessage

func (*ReadlinkResponse) ProtoMessage()

func (*ReadlinkResponse) Reset

func (m *ReadlinkResponse) Reset()

func (*ReadlinkResponse) String

func (m *ReadlinkResponse) String() string

type RemoveRequest

type RemoveRequest struct {
	Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

RemoveRequest

func (*RemoveRequest) Descriptor

func (*RemoveRequest) Descriptor() ([]byte, []int)

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) Reset

func (m *RemoveRequest) Reset()

func (*RemoveRequest) String

func (m *RemoveRequest) String() string

type RemoveResponse

type RemoveResponse struct {
	Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
}

RemoveResponse

func (*RemoveResponse) Descriptor

func (*RemoveResponse) Descriptor() ([]byte, []int)

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) Reset

func (m *RemoveResponse) Reset()

func (*RemoveResponse) String

func (m *RemoveResponse) String() string

type RemovexattrRequest

type RemovexattrRequest struct {
	Inode uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Name  string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

Removexattr

func (*RemovexattrRequest) Descriptor

func (*RemovexattrRequest) Descriptor() ([]byte, []int)

func (*RemovexattrRequest) ProtoMessage

func (*RemovexattrRequest) ProtoMessage()

func (*RemovexattrRequest) Reset

func (m *RemovexattrRequest) Reset()

func (*RemovexattrRequest) String

func (m *RemovexattrRequest) String() string

type RemovexattrResponse

type RemovexattrResponse struct {
}

func (*RemovexattrResponse) Descriptor

func (*RemovexattrResponse) Descriptor() ([]byte, []int)

func (*RemovexattrResponse) ProtoMessage

func (*RemovexattrResponse) ProtoMessage()

func (*RemovexattrResponse) Reset

func (m *RemovexattrResponse) Reset()

func (*RemovexattrResponse) String

func (m *RemovexattrResponse) String() string

type RenameRequest

type RenameRequest struct {
	OldParent uint64 `protobuf:"varint,1,opt,name=oldParent" json:"oldParent,omitempty"`
	NewParent uint64 `protobuf:"varint,2,opt,name=newParent" json:"newParent,omitempty"`
	OldName   string `protobuf:"bytes,3,opt,name=oldName" json:"oldName,omitempty"`
	NewName   string `protobuf:"bytes,4,opt,name=newName" json:"newName,omitempty"`
}

Rename

func (*RenameRequest) Descriptor

func (*RenameRequest) Descriptor() ([]byte, []int)

func (*RenameRequest) ProtoMessage

func (*RenameRequest) ProtoMessage()

func (*RenameRequest) Reset

func (m *RenameRequest) Reset()

func (*RenameRequest) String

func (m *RenameRequest) String() string

type RenameResponse

type RenameResponse struct {
}

func (*RenameResponse) Descriptor

func (*RenameResponse) Descriptor() ([]byte, []int)

func (*RenameResponse) ProtoMessage

func (*RenameResponse) ProtoMessage()

func (*RenameResponse) Reset

func (m *RenameResponse) Reset()

func (*RenameResponse) String

func (m *RenameResponse) String() string

type RevokeAddrFSRequest

type RevokeAddrFSRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
	FSid  string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
	Addr  string `protobuf:"bytes,3,opt,name=Addr" json:"Addr,omitempty"`
}

Request revoke an ip address access to a file system

func (*RevokeAddrFSRequest) Descriptor

func (*RevokeAddrFSRequest) Descriptor() ([]byte, []int)

func (*RevokeAddrFSRequest) ProtoMessage

func (*RevokeAddrFSRequest) ProtoMessage()

func (*RevokeAddrFSRequest) Reset

func (m *RevokeAddrFSRequest) Reset()

func (*RevokeAddrFSRequest) String

func (m *RevokeAddrFSRequest) String() string

type RevokeAddrFSResponse

type RevokeAddrFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response from revoking ip address access to a file system

func (*RevokeAddrFSResponse) Descriptor

func (*RevokeAddrFSResponse) Descriptor() ([]byte, []int)

func (*RevokeAddrFSResponse) ProtoMessage

func (*RevokeAddrFSResponse) ProtoMessage()

func (*RevokeAddrFSResponse) Reset

func (m *RevokeAddrFSResponse) Reset()

func (*RevokeAddrFSResponse) String

func (m *RevokeAddrFSResponse) String() string

type SetAttrRequest

type SetAttrRequest struct {
	Attr  *Attr  `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
	Valid uint32 `protobuf:"varint,2,opt,name=valid" json:"valid,omitempty"`
}

SetAttrRequest

func (*SetAttrRequest) Descriptor

func (*SetAttrRequest) Descriptor() ([]byte, []int)

func (*SetAttrRequest) GetAttr

func (m *SetAttrRequest) GetAttr() *Attr

func (*SetAttrRequest) ProtoMessage

func (*SetAttrRequest) ProtoMessage()

func (*SetAttrRequest) Reset

func (m *SetAttrRequest) Reset()

func (*SetAttrRequest) String

func (m *SetAttrRequest) String() string

type SetAttrResponse

type SetAttrResponse struct {
	Attr *Attr `protobuf:"bytes,1,opt,name=attr" json:"attr,omitempty"`
}

SetAttrResponse

func (*SetAttrResponse) Descriptor

func (*SetAttrResponse) Descriptor() ([]byte, []int)

func (*SetAttrResponse) GetAttr

func (m *SetAttrResponse) GetAttr() *Attr

func (*SetAttrResponse) ProtoMessage

func (*SetAttrResponse) ProtoMessage()

func (*SetAttrResponse) Reset

func (m *SetAttrResponse) Reset()

func (*SetAttrResponse) String

func (m *SetAttrResponse) String() string

type SetxattrRequest

type SetxattrRequest struct {
	Inode    uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Value    []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Position uint32 `protobuf:"varint,4,opt,name=position" json:"position,omitempty"`
	Flags    uint32 `protobuf:"varint,5,opt,name=flags" json:"flags,omitempty"`
}

Setxattr

func (*SetxattrRequest) Descriptor

func (*SetxattrRequest) Descriptor() ([]byte, []int)

func (*SetxattrRequest) ProtoMessage

func (*SetxattrRequest) ProtoMessage()

func (*SetxattrRequest) Reset

func (m *SetxattrRequest) Reset()

func (*SetxattrRequest) String

func (m *SetxattrRequest) String() string

type SetxattrResponse

type SetxattrResponse struct {
}

func (*SetxattrResponse) Descriptor

func (*SetxattrResponse) Descriptor() ([]byte, []int)

func (*SetxattrResponse) ProtoMessage

func (*SetxattrResponse) ProtoMessage()

func (*SetxattrResponse) Reset

func (m *SetxattrResponse) Reset()

func (*SetxattrResponse) String

func (m *SetxattrResponse) String() string

type ShowFSRequest

type ShowFSRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
	FSid  string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
}

Request to show the specific details about a file system

func (*ShowFSRequest) Descriptor

func (*ShowFSRequest) Descriptor() ([]byte, []int)

func (*ShowFSRequest) ProtoMessage

func (*ShowFSRequest) ProtoMessage()

func (*ShowFSRequest) Reset

func (m *ShowFSRequest) Reset()

func (*ShowFSRequest) String

func (m *ShowFSRequest) String() string

type ShowFSResponse

type ShowFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response for a specific file system for an account.

func (*ShowFSResponse) Descriptor

func (*ShowFSResponse) Descriptor() ([]byte, []int)

func (*ShowFSResponse) ProtoMessage

func (*ShowFSResponse) ProtoMessage()

func (*ShowFSResponse) Reset

func (m *ShowFSResponse) Reset()

func (*ShowFSResponse) String

func (m *ShowFSResponse) String() string

type StatfsRequest

type StatfsRequest struct {
}

Statfs

func (*StatfsRequest) Descriptor

func (*StatfsRequest) Descriptor() ([]byte, []int)

func (*StatfsRequest) ProtoMessage

func (*StatfsRequest) ProtoMessage()

func (*StatfsRequest) Reset

func (m *StatfsRequest) Reset()

func (*StatfsRequest) String

func (m *StatfsRequest) String() string

type StatfsResponse

type StatfsResponse struct {
	Blocks  uint64 `protobuf:"varint,1,opt,name=blocks" json:"blocks,omitempty"`
	Bfree   uint64 `protobuf:"varint,2,opt,name=bfree" json:"bfree,omitempty"`
	Bavail  uint64 `protobuf:"varint,3,opt,name=bavail" json:"bavail,omitempty"`
	Files   uint64 `protobuf:"varint,4,opt,name=files" json:"files,omitempty"`
	Ffree   uint64 `protobuf:"varint,5,opt,name=ffree" json:"ffree,omitempty"`
	Bsize   uint32 `protobuf:"varint,6,opt,name=bsize" json:"bsize,omitempty"`
	Namelen uint32 `protobuf:"varint,7,opt,name=namelen" json:"namelen,omitempty"`
	Frsize  uint32 `protobuf:"varint,8,opt,name=frsize" json:"frsize,omitempty"`
}

func (*StatfsResponse) Descriptor

func (*StatfsResponse) Descriptor() ([]byte, []int)

func (*StatfsResponse) ProtoMessage

func (*StatfsResponse) ProtoMessage()

func (*StatfsResponse) Reset

func (m *StatfsResponse) Reset()

func (*StatfsResponse) String

func (m *StatfsResponse) String() string

type SymlinkRequest

type SymlinkRequest struct {
	Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Target string `protobuf:"bytes,3,opt,name=target" json:"target,omitempty"`
	Uid    uint32 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"`
	Gid    uint32 `protobuf:"varint,5,opt,name=gid" json:"gid,omitempty"`
}

SymlinkRequest

func (*SymlinkRequest) Descriptor

func (*SymlinkRequest) Descriptor() ([]byte, []int)

func (*SymlinkRequest) ProtoMessage

func (*SymlinkRequest) ProtoMessage()

func (*SymlinkRequest) Reset

func (m *SymlinkRequest) Reset()

func (*SymlinkRequest) String

func (m *SymlinkRequest) String() string

type SymlinkResponse

type SymlinkResponse struct {
	Parent uint64 `protobuf:"varint,1,opt,name=parent" json:"parent,omitempty"`
	Name   string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	Attr   *Attr  `protobuf:"bytes,3,opt,name=attr" json:"attr,omitempty"`
}

SymlinkResponse

func (*SymlinkResponse) Descriptor

func (*SymlinkResponse) Descriptor() ([]byte, []int)

func (*SymlinkResponse) GetAttr

func (m *SymlinkResponse) GetAttr() *Attr

func (*SymlinkResponse) ProtoMessage

func (*SymlinkResponse) ProtoMessage()

func (*SymlinkResponse) Reset

func (m *SymlinkResponse) Reset()

func (*SymlinkResponse) String

func (m *SymlinkResponse) String() string

type Tombstone

type Tombstone struct {
	Dtime  int64  `protobuf:"varint,1,opt,name=dtime" json:"dtime,omitempty"`
	Qtime  int64  `protobuf:"varint,2,opt,name=qtime" json:"qtime,omitempty"`
	FsId   []byte `protobuf:"bytes,3,opt,name=fsId,proto3" json:"fsId,omitempty"`
	Inode  uint64 `protobuf:"varint,4,opt,name=inode" json:"inode,omitempty"`
	Blocks uint64 `protobuf:"varint,5,opt,name=blocks" json:"blocks,omitempty"`
}

Tombstone Stores information needed to keep track of deleted items

func (*Tombstone) Descriptor

func (*Tombstone) Descriptor() ([]byte, []int)

func (*Tombstone) ProtoMessage

func (*Tombstone) ProtoMessage()

func (*Tombstone) Reset

func (m *Tombstone) Reset()

func (*Tombstone) String

func (m *Tombstone) String() string

type UpdateFSRequest

type UpdateFSRequest struct {
	Token   string `protobuf:"bytes,1,opt,name=Token" json:"Token,omitempty"`
	FSid    string `protobuf:"bytes,2,opt,name=FSid" json:"FSid,omitempty"`
	Filesys *ModFS `protobuf:"bytes,4,opt,name=Filesys" json:"Filesys,omitempty"`
}

Request to update a specific file system's information

func (*UpdateFSRequest) Descriptor

func (*UpdateFSRequest) Descriptor() ([]byte, []int)

func (*UpdateFSRequest) GetFilesys

func (m *UpdateFSRequest) GetFilesys() *ModFS

func (*UpdateFSRequest) ProtoMessage

func (*UpdateFSRequest) ProtoMessage()

func (*UpdateFSRequest) Reset

func (m *UpdateFSRequest) Reset()

func (*UpdateFSRequest) String

func (m *UpdateFSRequest) String() string

type UpdateFSResponse

type UpdateFSResponse struct {
	Data string `protobuf:"bytes,1,opt,name=Data" json:"Data,omitempty"`
}

Response from an update operation

func (*UpdateFSResponse) Descriptor

func (*UpdateFSResponse) Descriptor() ([]byte, []int)

func (*UpdateFSResponse) ProtoMessage

func (*UpdateFSResponse) ProtoMessage()

func (*UpdateFSResponse) Reset

func (m *UpdateFSResponse) Reset()

func (*UpdateFSResponse) String

func (m *UpdateFSResponse) String() string

type WriteRequest

type WriteRequest struct {
	Inode   uint64 `protobuf:"varint,1,opt,name=inode" json:"inode,omitempty"`
	Offset  int64  `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
}

WriteRequest

func (*WriteRequest) Descriptor

func (*WriteRequest) Descriptor() ([]byte, []int)

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) Reset

func (m *WriteRequest) Reset()

func (*WriteRequest) String

func (m *WriteRequest) String() string

type WriteResponse

type WriteResponse struct {
	Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"`
}

WriteResponse place holder. Maybe use an enum so we can map to fuse errors ?

func (*WriteResponse) Descriptor

func (*WriteResponse) Descriptor() ([]byte, []int)

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) Reset

func (m *WriteResponse) Reset()

func (*WriteResponse) String

func (m *WriteResponse) String() string

Jump to

Keyboard shortcuts

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