Documentation ¶
Overview ¶
Package pfs is a generated protocol buffer package.
It is generated from these files:
client/pfs/pfs.proto
It has these top-level messages:
Repo Commit File Block Diff RepoInfo RepoInfos CommitInfo CommitInfos FileInfo FileInfos ByteRange BlockRef BlockRefs Append BlockInfo BlockInfos DiffInfo Shard CreateRepoRequest InspectRepoRequest ListRepoRequest DeleteRepoRequest StartCommitRequest FinishCommitRequest InspectCommitRequest ListCommitRequest ListBranchRequest DeleteCommitRequest GetFileRequest PutFileRequest InspectFileRequest ListFileRequest DeleteFileRequest GetBlockRequest DeleteBlockRequest InspectBlockRequest ListBlockRequest InspectDiffRequest ListDiffRequest DeleteDiffRequest
Package pfs is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func CreateRepo(apiClient APIClient, repoName string) error
- func DeleteBlock(apiClient BlockAPIClient, block *Block) error
- func DeleteCommit(apiClient APIClient, repoName string, commitID string) error
- func DeleteFile(apiClient APIClient, repoName string, commitID string, path string) error
- func DeleteRepo(apiClient APIClient, repoName string) error
- func FinishCommit(apiClient APIClient, repoName string, commitID string) error
- func GetBlock(apiClient BlockAPIClient, hash string, offsetBytes uint64, sizeBytes uint64) (io.Reader, error)
- func GetFile(apiClient APIClient, repoName string, commitID string, path string, ...) error
- func MakeDirectory(apiClient APIClient, repoName string, commitID string, path string) (retErr error)
- func PutFile(apiClient APIClient, repoName string, commitID string, path string, ...) (_ int, retErr error)
- func PutFileWriter(apiClient APIClient, repoName string, commitID string, path string, ...) (io.WriteCloser, error)
- func RegisterAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAPIServer(s *grpc.Server, srv APIServer)
- func RegisterBlockAPIServer(s *grpc.Server, srv BlockAPIServer)
- func RegisterInternalAPIServer(s *grpc.Server, srv InternalAPIServer)
- type APIClient
- type APIServer
- type API_GetFileClient
- type API_GetFileServer
- type API_PutFileClient
- type API_PutFileServer
- type Append
- func (*Append) Descriptor() ([]byte, []int)
- func (m *Append) GetBlockRefs() []*BlockRef
- func (m *Append) GetChildren() map[string]bool
- func (m *Append) GetHandles() map[string]*BlockRefs
- func (m *Append) GetLastRef() *Commit
- func (*Append) ProtoMessage()
- func (m *Append) Reset()
- func (m *Append) String() string
- type Block
- type BlockAPIClient
- type BlockAPIServer
- type BlockAPI_GetBlockClient
- type BlockAPI_GetBlockServer
- type BlockAPI_ListDiffClient
- type BlockAPI_ListDiffServer
- type BlockAPI_PutBlockClient
- type BlockAPI_PutBlockServer
- type BlockInfo
- type BlockInfos
- type BlockRef
- type BlockRefs
- type ByteRange
- type Commit
- type CommitInfo
- func (*CommitInfo) Descriptor() ([]byte, []int)
- func (m *CommitInfo) GetCommit() *Commit
- func (m *CommitInfo) GetFinished() *google_protobuf2.Timestamp
- func (m *CommitInfo) GetParentCommit() *Commit
- func (m *CommitInfo) GetStarted() *google_protobuf2.Timestamp
- func (*CommitInfo) ProtoMessage()
- func (m *CommitInfo) Reset()
- func (m *CommitInfo) String() string
- type CommitInfos
- type CommitType
- type CreateRepoRequest
- type DeleteBlockRequest
- type DeleteCommitRequest
- type DeleteDiffRequest
- type DeleteFileRequest
- type DeleteRepoRequest
- type Diff
- type DiffInfo
- func (*DiffInfo) Descriptor() ([]byte, []int)
- func (m *DiffInfo) GetAppends() map[string]*Append
- func (m *DiffInfo) GetDiff() *Diff
- func (m *DiffInfo) GetFinished() *google_protobuf2.Timestamp
- func (m *DiffInfo) GetParentCommit() *Commit
- func (m *DiffInfo) GetStarted() *google_protobuf2.Timestamp
- func (*DiffInfo) ProtoMessage()
- func (m *DiffInfo) Reset()
- func (m *DiffInfo) String() string
- type File
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)
- func (m *FileInfo) GetChildren() []*File
- func (m *FileInfo) GetCommitModified() *Commit
- func (m *FileInfo) GetFile() *File
- func (m *FileInfo) GetModified() *google_protobuf2.Timestamp
- func (*FileInfo) ProtoMessage()
- func (m *FileInfo) Reset()
- func (m *FileInfo) String() string
- type FileInfos
- type FileType
- type FinishCommitRequest
- func (*FinishCommitRequest) Descriptor() ([]byte, []int)
- func (m *FinishCommitRequest) GetCommit() *Commit
- func (m *FinishCommitRequest) GetFinished() *google_protobuf2.Timestamp
- func (*FinishCommitRequest) ProtoMessage()
- func (m *FinishCommitRequest) Reset()
- func (m *FinishCommitRequest) String() string
- type GetBlockRequest
- type GetFileRequest
- type InspectBlockRequest
- type InspectCommitRequest
- type InspectDiffRequest
- type InspectFileRequest
- func (*InspectFileRequest) Descriptor() ([]byte, []int)
- func (m *InspectFileRequest) GetFile() *File
- func (m *InspectFileRequest) GetFromCommit() *Commit
- func (m *InspectFileRequest) GetShard() *Shard
- func (*InspectFileRequest) ProtoMessage()
- func (m *InspectFileRequest) Reset()
- func (m *InspectFileRequest) String() string
- type InspectRepoRequest
- type InternalAPIClient
- type InternalAPIServer
- type InternalAPI_GetFileClient
- type InternalAPI_GetFileServer
- type InternalAPI_PutFileClient
- type InternalAPI_PutFileServer
- type ListBlockRequest
- type ListBranchRequest
- type ListCommitRequest
- type ListDiffRequest
- type ListFileRequest
- func (*ListFileRequest) Descriptor() ([]byte, []int)
- func (m *ListFileRequest) GetFile() *File
- func (m *ListFileRequest) GetFromCommit() *Commit
- func (m *ListFileRequest) GetShard() *Shard
- func (*ListFileRequest) ProtoMessage()
- func (m *ListFileRequest) Reset()
- func (m *ListFileRequest) String() string
- type ListRepoRequest
- type PutFileRequest
- type Repo
- type RepoInfo
- type RepoInfos
- type Shard
- type StartCommitRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var CommitType_name = map[int32]string{
0: "COMMIT_TYPE_NONE",
1: "COMMIT_TYPE_READ",
2: "COMMIT_TYPE_WRITE",
}
View Source
var CommitType_value = map[string]int32{
"COMMIT_TYPE_NONE": 0,
"COMMIT_TYPE_READ": 1,
"COMMIT_TYPE_WRITE": 2,
}
View Source
var FileType_name = map[int32]string{
0: "FILE_TYPE_NONE",
1: "FILE_TYPE_REGULAR",
2: "FILE_TYPE_DIR",
}
View Source
var FileType_value = map[string]int32{
"FILE_TYPE_NONE": 0,
"FILE_TYPE_REGULAR": 1,
"FILE_TYPE_DIR": 2,
}
Functions ¶
func CreateRepo ¶
func DeleteBlock ¶
func DeleteBlock(apiClient BlockAPIClient, block *Block) error
func DeleteFile ¶
func DeleteRepo ¶
func MakeDirectory ¶
func PutFileWriter ¶ added in v1.0.438
func RegisterAPIHandler ¶
RegisterAPIHandler registers the http handlers for service API to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAPIHandlerFromEndpoint ¶
func RegisterAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAPIHandlerFromEndpoint is same as RegisterAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAPIServer ¶
func RegisterBlockAPIServer ¶
func RegisterBlockAPIServer(s *grpc.Server, srv BlockAPIServer)
func RegisterInternalAPIServer ¶
func RegisterInternalAPIServer(s *grpc.Server, srv InternalAPIServer)
Types ¶
type APIClient ¶
type APIClient interface { // Repo rpcs // CreateRepo creates a new repo. // An error is returned if the repo already exists. CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // InspectRepo returns info about a repo. InspectRepo(ctx context.Context, in *InspectRepoRequest, opts ...grpc.CallOption) (*RepoInfo, error) // ListRepo returns info about all repos. ListRepo(ctx context.Context, in *ListRepoRequest, opts ...grpc.CallOption) (*RepoInfos, error) // DeleteRepo deletes a repo. DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // Commit rpcs // StartCommit creates a new write commit from a parent commit. StartCommit(ctx context.Context, in *StartCommitRequest, opts ...grpc.CallOption) (*Commit, error) // FinishCommit turns a write commit into a read commit. FinishCommit(ctx context.Context, in *FinishCommitRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // InspectCommit returns the info about a commit. InspectCommit(ctx context.Context, in *InspectCommitRequest, opts ...grpc.CallOption) (*CommitInfo, error) // ListCommit returns info about all commits. ListCommit(ctx context.Context, in *ListCommitRequest, opts ...grpc.CallOption) (*CommitInfos, error) // DeleteCommit deletes a commit. DeleteCommit(ctx context.Context, in *DeleteCommitRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // ListBranch returns info about the heads of branches. ListBranch(ctx context.Context, in *ListBranchRequest, opts ...grpc.CallOption) (*CommitInfos, error) // File rpcs // PutFile writes the specified file to pfs. PutFile(ctx context.Context, opts ...grpc.CallOption) (API_PutFileClient, error) // GetFile returns a byte stream of the contents of the file. GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (API_GetFileClient, error) // InspectFile returns info about a file. InspectFile(ctx context.Context, in *InspectFileRequest, opts ...grpc.CallOption) (*FileInfo, error) // ListFile returns info about all files. ListFile(ctx context.Context, in *ListFileRequest, opts ...grpc.CallOption) (*FileInfos, error) // DeleteFile deletes a file. DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) }
func NewAPIClient ¶
func NewAPIClient(cc *grpc.ClientConn) APIClient
type APIServer ¶
type APIServer interface { // Repo rpcs // CreateRepo creates a new repo. // An error is returned if the repo already exists. CreateRepo(context.Context, *CreateRepoRequest) (*google_protobuf1.Empty, error) // InspectRepo returns info about a repo. InspectRepo(context.Context, *InspectRepoRequest) (*RepoInfo, error) // ListRepo returns info about all repos. ListRepo(context.Context, *ListRepoRequest) (*RepoInfos, error) // DeleteRepo deletes a repo. DeleteRepo(context.Context, *DeleteRepoRequest) (*google_protobuf1.Empty, error) // Commit rpcs // StartCommit creates a new write commit from a parent commit. StartCommit(context.Context, *StartCommitRequest) (*Commit, error) // FinishCommit turns a write commit into a read commit. FinishCommit(context.Context, *FinishCommitRequest) (*google_protobuf1.Empty, error) // InspectCommit returns the info about a commit. InspectCommit(context.Context, *InspectCommitRequest) (*CommitInfo, error) // ListCommit returns info about all commits. ListCommit(context.Context, *ListCommitRequest) (*CommitInfos, error) // DeleteCommit deletes a commit. DeleteCommit(context.Context, *DeleteCommitRequest) (*google_protobuf1.Empty, error) // ListBranch returns info about the heads of branches. ListBranch(context.Context, *ListBranchRequest) (*CommitInfos, error) // File rpcs // PutFile writes the specified file to pfs. PutFile(API_PutFileServer) error // GetFile returns a byte stream of the contents of the file. GetFile(*GetFileRequest, API_GetFileServer) error // InspectFile returns info about a file. InspectFile(context.Context, *InspectFileRequest) (*FileInfo, error) // ListFile returns info about all files. ListFile(context.Context, *ListFileRequest) (*FileInfos, error) // DeleteFile deletes a file. DeleteFile(context.Context, *DeleteFileRequest) (*google_protobuf1.Empty, error) }
type API_GetFileClient ¶
type API_GetFileClient interface { Recv() (*google_protobuf3.BytesValue, error) grpc.ClientStream }
type API_GetFileServer ¶
type API_GetFileServer interface { Send(*google_protobuf3.BytesValue) error grpc.ServerStream }
type API_PutFileClient ¶
type API_PutFileClient interface { Send(*PutFileRequest) error CloseAndRecv() (*google_protobuf1.Empty, error) grpc.ClientStream }
type API_PutFileServer ¶
type API_PutFileServer interface { SendAndClose(*google_protobuf1.Empty) error Recv() (*PutFileRequest, error) grpc.ServerStream }
type Append ¶
type Append struct { BlockRefs []*BlockRef `protobuf:"bytes,1,rep,name=block_refs,json=blockRefs" json:"block_refs,omitempty"` Children map[string]bool `` /* 137-byte string literal not displayed */ LastRef *Commit `protobuf:"bytes,3,opt,name=last_ref,json=lastRef" json:"last_ref,omitempty"` Delete bool `protobuf:"varint,4,opt,name=delete" json:"delete,omitempty"` Handles map[string]*BlockRefs `` /* 134-byte string literal not displayed */ }
func (*Append) Descriptor ¶
func (*Append) GetBlockRefs ¶
func (*Append) GetChildren ¶
func (*Append) GetHandles ¶ added in v1.0.554
func (*Append) GetLastRef ¶
func (*Append) ProtoMessage ¶
func (*Append) ProtoMessage()
type Block ¶
type Block struct {
Hash string `protobuf:"bytes,1,opt,name=hash" json:"hash,omitempty"`
}
func (*Block) Descriptor ¶
func (*Block) ProtoMessage ¶
func (*Block) ProtoMessage()
type BlockAPIClient ¶
type BlockAPIClient interface { PutBlock(ctx context.Context, opts ...grpc.CallOption) (BlockAPI_PutBlockClient, error) GetBlock(ctx context.Context, in *GetBlockRequest, opts ...grpc.CallOption) (BlockAPI_GetBlockClient, error) DeleteBlock(ctx context.Context, in *DeleteBlockRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) InspectBlock(ctx context.Context, in *InspectBlockRequest, opts ...grpc.CallOption) (*BlockInfo, error) ListBlock(ctx context.Context, in *ListBlockRequest, opts ...grpc.CallOption) (*BlockInfos, error) CreateDiff(ctx context.Context, in *DiffInfo, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) InspectDiff(ctx context.Context, in *InspectDiffRequest, opts ...grpc.CallOption) (*DiffInfo, error) ListDiff(ctx context.Context, in *ListDiffRequest, opts ...grpc.CallOption) (BlockAPI_ListDiffClient, error) DeleteDiff(ctx context.Context, in *DeleteDiffRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) }
func NewBlockAPIClient ¶
func NewBlockAPIClient(cc *grpc.ClientConn) BlockAPIClient
type BlockAPIServer ¶
type BlockAPIServer interface { PutBlock(BlockAPI_PutBlockServer) error GetBlock(*GetBlockRequest, BlockAPI_GetBlockServer) error DeleteBlock(context.Context, *DeleteBlockRequest) (*google_protobuf1.Empty, error) InspectBlock(context.Context, *InspectBlockRequest) (*BlockInfo, error) ListBlock(context.Context, *ListBlockRequest) (*BlockInfos, error) CreateDiff(context.Context, *DiffInfo) (*google_protobuf1.Empty, error) InspectDiff(context.Context, *InspectDiffRequest) (*DiffInfo, error) ListDiff(*ListDiffRequest, BlockAPI_ListDiffServer) error DeleteDiff(context.Context, *DeleteDiffRequest) (*google_protobuf1.Empty, error) }
type BlockAPI_GetBlockClient ¶
type BlockAPI_GetBlockClient interface { Recv() (*google_protobuf3.BytesValue, error) grpc.ClientStream }
type BlockAPI_GetBlockServer ¶
type BlockAPI_GetBlockServer interface { Send(*google_protobuf3.BytesValue) error grpc.ServerStream }
type BlockAPI_ListDiffClient ¶
type BlockAPI_ListDiffClient interface { Recv() (*DiffInfo, error) grpc.ClientStream }
type BlockAPI_ListDiffServer ¶
type BlockAPI_ListDiffServer interface { Send(*DiffInfo) error grpc.ServerStream }
type BlockAPI_PutBlockClient ¶
type BlockAPI_PutBlockClient interface { Send(*google_protobuf3.BytesValue) error CloseAndRecv() (*BlockRefs, error) grpc.ClientStream }
type BlockAPI_PutBlockServer ¶
type BlockAPI_PutBlockServer interface { SendAndClose(*BlockRefs) error Recv() (*google_protobuf3.BytesValue, error) grpc.ServerStream }
type BlockInfo ¶
type BlockInfo struct { Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` Created *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"` SizeBytes uint64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` }
func InspectBlock ¶
func InspectBlock(apiClient BlockAPIClient, hash string) (*BlockInfo, error)
func ListBlock ¶
func ListBlock(apiClient BlockAPIClient) ([]*BlockInfo, error)
func (*BlockInfo) Descriptor ¶
func (*BlockInfo) GetCreated ¶
func (m *BlockInfo) GetCreated() *google_protobuf2.Timestamp
func (*BlockInfo) ProtoMessage ¶
func (*BlockInfo) ProtoMessage()
type BlockInfos ¶
type BlockInfos struct {
BlockInfo []*BlockInfo `protobuf:"bytes,1,rep,name=block_info,json=blockInfo" json:"block_info,omitempty"`
}
func (*BlockInfos) Descriptor ¶
func (*BlockInfos) Descriptor() ([]byte, []int)
func (*BlockInfos) GetBlockInfo ¶
func (m *BlockInfos) GetBlockInfo() []*BlockInfo
func (*BlockInfos) ProtoMessage ¶
func (*BlockInfos) ProtoMessage()
func (*BlockInfos) Reset ¶
func (m *BlockInfos) Reset()
func (*BlockInfos) String ¶
func (m *BlockInfos) String() string
type BlockRef ¶
type BlockRef struct { Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` Range *ByteRange `protobuf:"bytes,2,opt,name=range" json:"range,omitempty"` }
func (*BlockRef) Descriptor ¶
func (*BlockRef) ProtoMessage ¶
func (*BlockRef) ProtoMessage()
type BlockRefs ¶
type BlockRefs struct {
BlockRef []*BlockRef `protobuf:"bytes,1,rep,name=block_ref,json=blockRef" json:"block_ref,omitempty"`
}
func (*BlockRefs) Descriptor ¶
func (*BlockRefs) GetBlockRef ¶
func (*BlockRefs) ProtoMessage ¶
func (*BlockRefs) ProtoMessage()
type ByteRange ¶
type ByteRange struct { Lower uint64 `protobuf:"varint,1,opt,name=lower" json:"lower,omitempty"` Upper uint64 `protobuf:"varint,2,opt,name=upper" json:"upper,omitempty"` }
func (*ByteRange) Descriptor ¶
func (*ByteRange) ProtoMessage ¶
func (*ByteRange) ProtoMessage()
type Commit ¶
type Commit struct { Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"` ID string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` }
func StartCommit ¶
func (*Commit) Descriptor ¶
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
type CommitInfo ¶
type CommitInfo struct { Commit *Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` Branch string `protobuf:"bytes,2,opt,name=branch" json:"branch,omitempty"` CommitType CommitType `protobuf:"varint,3,opt,name=commit_type,json=commitType,enum=pfs.CommitType" json:"commit_type,omitempty"` ParentCommit *Commit `protobuf:"bytes,4,opt,name=parent_commit,json=parentCommit" json:"parent_commit,omitempty"` Started *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=started" json:"started,omitempty"` Finished *google_protobuf2.Timestamp `protobuf:"bytes,6,opt,name=finished" json:"finished,omitempty"` SizeBytes uint64 `protobuf:"varint,7,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` }
func InspectCommit ¶
func InspectCommit(apiClient APIClient, repoName string, commitID string) (*CommitInfo, error)
func ListBranch ¶
func ListBranch(apiClient APIClient, repoName string) ([]*CommitInfo, error)
func ListCommit ¶
func (*CommitInfo) Descriptor ¶
func (*CommitInfo) Descriptor() ([]byte, []int)
func (*CommitInfo) GetCommit ¶
func (m *CommitInfo) GetCommit() *Commit
func (*CommitInfo) GetFinished ¶
func (m *CommitInfo) GetFinished() *google_protobuf2.Timestamp
func (*CommitInfo) GetParentCommit ¶
func (m *CommitInfo) GetParentCommit() *Commit
func (*CommitInfo) GetStarted ¶
func (m *CommitInfo) GetStarted() *google_protobuf2.Timestamp
func (*CommitInfo) ProtoMessage ¶
func (*CommitInfo) ProtoMessage()
func (*CommitInfo) Reset ¶
func (m *CommitInfo) Reset()
func (*CommitInfo) String ¶
func (m *CommitInfo) String() string
type CommitInfos ¶
type CommitInfos struct {
CommitInfo []*CommitInfo `protobuf:"bytes,1,rep,name=commit_info,json=commitInfo" json:"commit_info,omitempty"`
}
func (*CommitInfos) Descriptor ¶
func (*CommitInfos) Descriptor() ([]byte, []int)
func (*CommitInfos) GetCommitInfo ¶
func (m *CommitInfos) GetCommitInfo() []*CommitInfo
func (*CommitInfos) ProtoMessage ¶
func (*CommitInfos) ProtoMessage()
func (*CommitInfos) Reset ¶
func (m *CommitInfos) Reset()
func (*CommitInfos) String ¶
func (m *CommitInfos) String() string
type CommitType ¶
type CommitType int32
const ( CommitType_COMMIT_TYPE_NONE CommitType = 0 CommitType_COMMIT_TYPE_READ CommitType = 1 CommitType_COMMIT_TYPE_WRITE CommitType = 2 )
func (CommitType) EnumDescriptor ¶
func (CommitType) EnumDescriptor() ([]byte, []int)
func (CommitType) String ¶
func (x CommitType) String() string
type CreateRepoRequest ¶
type CreateRepoRequest struct { Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"` Created *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"` }
func (*CreateRepoRequest) Descriptor ¶
func (*CreateRepoRequest) Descriptor() ([]byte, []int)
func (*CreateRepoRequest) GetCreated ¶
func (m *CreateRepoRequest) GetCreated() *google_protobuf2.Timestamp
func (*CreateRepoRequest) GetRepo ¶
func (m *CreateRepoRequest) GetRepo() *Repo
func (*CreateRepoRequest) ProtoMessage ¶
func (*CreateRepoRequest) ProtoMessage()
func (*CreateRepoRequest) Reset ¶
func (m *CreateRepoRequest) Reset()
func (*CreateRepoRequest) String ¶
func (m *CreateRepoRequest) String() string
type DeleteBlockRequest ¶
type DeleteBlockRequest struct {
Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"`
}
func (*DeleteBlockRequest) Descriptor ¶
func (*DeleteBlockRequest) Descriptor() ([]byte, []int)
func (*DeleteBlockRequest) GetBlock ¶
func (m *DeleteBlockRequest) GetBlock() *Block
func (*DeleteBlockRequest) ProtoMessage ¶
func (*DeleteBlockRequest) ProtoMessage()
func (*DeleteBlockRequest) Reset ¶
func (m *DeleteBlockRequest) Reset()
func (*DeleteBlockRequest) String ¶
func (m *DeleteBlockRequest) String() string
type DeleteCommitRequest ¶
type DeleteCommitRequest struct {
Commit *Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"`
}
func (*DeleteCommitRequest) Descriptor ¶
func (*DeleteCommitRequest) Descriptor() ([]byte, []int)
func (*DeleteCommitRequest) GetCommit ¶
func (m *DeleteCommitRequest) GetCommit() *Commit
func (*DeleteCommitRequest) ProtoMessage ¶
func (*DeleteCommitRequest) ProtoMessage()
func (*DeleteCommitRequest) Reset ¶
func (m *DeleteCommitRequest) Reset()
func (*DeleteCommitRequest) String ¶
func (m *DeleteCommitRequest) String() string
type DeleteDiffRequest ¶
type DeleteDiffRequest struct {
Diff *Diff `protobuf:"bytes,1,opt,name=diff" json:"diff,omitempty"`
}
func (*DeleteDiffRequest) Descriptor ¶
func (*DeleteDiffRequest) Descriptor() ([]byte, []int)
func (*DeleteDiffRequest) GetDiff ¶
func (m *DeleteDiffRequest) GetDiff() *Diff
func (*DeleteDiffRequest) ProtoMessage ¶
func (*DeleteDiffRequest) ProtoMessage()
func (*DeleteDiffRequest) Reset ¶
func (m *DeleteDiffRequest) Reset()
func (*DeleteDiffRequest) String ¶
func (m *DeleteDiffRequest) String() string
type DeleteFileRequest ¶
type DeleteFileRequest struct {
File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"`
}
func (*DeleteFileRequest) Descriptor ¶
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
func (*DeleteFileRequest) GetFile ¶
func (m *DeleteFileRequest) GetFile() *File
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) Reset ¶
func (m *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (m *DeleteFileRequest) String() string
type DeleteRepoRequest ¶
type DeleteRepoRequest struct {
Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"`
}
func (*DeleteRepoRequest) Descriptor ¶
func (*DeleteRepoRequest) Descriptor() ([]byte, []int)
func (*DeleteRepoRequest) GetRepo ¶
func (m *DeleteRepoRequest) GetRepo() *Repo
func (*DeleteRepoRequest) ProtoMessage ¶
func (*DeleteRepoRequest) ProtoMessage()
func (*DeleteRepoRequest) Reset ¶
func (m *DeleteRepoRequest) Reset()
func (*DeleteRepoRequest) String ¶
func (m *DeleteRepoRequest) String() string
type Diff ¶
type Diff struct { Commit *Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` Shard uint64 `protobuf:"varint,2,opt,name=shard" json:"shard,omitempty"` }
func (*Diff) Descriptor ¶
func (*Diff) ProtoMessage ¶
func (*Diff) ProtoMessage()
type DiffInfo ¶
type DiffInfo struct { Diff *Diff `protobuf:"bytes,1,opt,name=diff" json:"diff,omitempty"` ParentCommit *Commit `protobuf:"bytes,2,opt,name=parent_commit,json=parentCommit" json:"parent_commit,omitempty"` Branch string `protobuf:"bytes,3,opt,name=branch" json:"branch,omitempty"` Started *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=started" json:"started,omitempty"` Finished *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=finished" json:"finished,omitempty"` // Appends is the BlockRefs which have been append to files indexed by path. Appends map[string]*Append `` /* 134-byte string literal not displayed */ SizeBytes uint64 `protobuf:"varint,7,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` }
func (*DiffInfo) Descriptor ¶
func (*DiffInfo) GetAppends ¶
func (*DiffInfo) GetFinished ¶
func (m *DiffInfo) GetFinished() *google_protobuf2.Timestamp
func (*DiffInfo) GetParentCommit ¶
func (*DiffInfo) GetStarted ¶
func (m *DiffInfo) GetStarted() *google_protobuf2.Timestamp
func (*DiffInfo) ProtoMessage ¶
func (*DiffInfo) ProtoMessage()
type File ¶
type File struct { Commit *Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` }
func (*File) Descriptor ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
type FileInfo ¶
type FileInfo struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` FileType FileType `protobuf:"varint,2,opt,name=file_type,json=fileType,enum=pfs.FileType" json:"file_type,omitempty"` SizeBytes uint64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` Modified *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=modified" json:"modified,omitempty"` CommitModified *Commit `protobuf:"bytes,5,opt,name=commit_modified,json=commitModified" json:"commit_modified,omitempty"` Children []*File `protobuf:"bytes,6,rep,name=children" json:"children,omitempty"` }
func InspectFile ¶
func (*FileInfo) Descriptor ¶
func (*FileInfo) GetChildren ¶
func (*FileInfo) GetCommitModified ¶
func (*FileInfo) GetModified ¶
func (m *FileInfo) GetModified() *google_protobuf2.Timestamp
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
type FileInfos ¶
type FileInfos struct {
FileInfo []*FileInfo `protobuf:"bytes,1,rep,name=file_info,json=fileInfo" json:"file_info,omitempty"`
}
func (*FileInfos) Descriptor ¶
func (*FileInfos) GetFileInfo ¶
func (*FileInfos) ProtoMessage ¶
func (*FileInfos) ProtoMessage()
type FinishCommitRequest ¶
type FinishCommitRequest struct { Commit *Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"` Finished *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=finished" json:"finished,omitempty"` }
func (*FinishCommitRequest) Descriptor ¶
func (*FinishCommitRequest) Descriptor() ([]byte, []int)
func (*FinishCommitRequest) GetCommit ¶
func (m *FinishCommitRequest) GetCommit() *Commit
func (*FinishCommitRequest) GetFinished ¶
func (m *FinishCommitRequest) GetFinished() *google_protobuf2.Timestamp
func (*FinishCommitRequest) ProtoMessage ¶
func (*FinishCommitRequest) ProtoMessage()
func (*FinishCommitRequest) Reset ¶
func (m *FinishCommitRequest) Reset()
func (*FinishCommitRequest) String ¶
func (m *FinishCommitRequest) String() string
type GetBlockRequest ¶
type GetBlockRequest struct { Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"` OffsetBytes uint64 `protobuf:"varint,2,opt,name=offset_bytes,json=offsetBytes" json:"offset_bytes,omitempty"` SizeBytes uint64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` }
func (*GetBlockRequest) Descriptor ¶
func (*GetBlockRequest) Descriptor() ([]byte, []int)
func (*GetBlockRequest) GetBlock ¶
func (m *GetBlockRequest) GetBlock() *Block
func (*GetBlockRequest) ProtoMessage ¶
func (*GetBlockRequest) ProtoMessage()
func (*GetBlockRequest) Reset ¶
func (m *GetBlockRequest) Reset()
func (*GetBlockRequest) String ¶
func (m *GetBlockRequest) String() string
type GetFileRequest ¶
type GetFileRequest struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` OffsetBytes int64 `protobuf:"varint,2,opt,name=offset_bytes,json=offsetBytes" json:"offset_bytes,omitempty"` SizeBytes int64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` Shard *Shard `protobuf:"bytes,4,opt,name=shard" json:"shard,omitempty"` FromCommit *Commit `protobuf:"bytes,5,opt,name=from_commit,json=fromCommit" json:"from_commit,omitempty"` }
func (*GetFileRequest) Descriptor ¶
func (*GetFileRequest) Descriptor() ([]byte, []int)
func (*GetFileRequest) GetFile ¶
func (m *GetFileRequest) GetFile() *File
func (*GetFileRequest) GetFromCommit ¶
func (m *GetFileRequest) GetFromCommit() *Commit
func (*GetFileRequest) GetShard ¶
func (m *GetFileRequest) GetShard() *Shard
func (*GetFileRequest) ProtoMessage ¶
func (*GetFileRequest) ProtoMessage()
func (*GetFileRequest) Reset ¶
func (m *GetFileRequest) Reset()
func (*GetFileRequest) String ¶
func (m *GetFileRequest) String() string
type InspectBlockRequest ¶
type InspectBlockRequest struct {
Block *Block `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"`
}
func (*InspectBlockRequest) Descriptor ¶
func (*InspectBlockRequest) Descriptor() ([]byte, []int)
func (*InspectBlockRequest) GetBlock ¶
func (m *InspectBlockRequest) GetBlock() *Block
func (*InspectBlockRequest) ProtoMessage ¶
func (*InspectBlockRequest) ProtoMessage()
func (*InspectBlockRequest) Reset ¶
func (m *InspectBlockRequest) Reset()
func (*InspectBlockRequest) String ¶
func (m *InspectBlockRequest) String() string
type InspectCommitRequest ¶
type InspectCommitRequest struct {
Commit *Commit `protobuf:"bytes,1,opt,name=commit" json:"commit,omitempty"`
}
func (*InspectCommitRequest) Descriptor ¶
func (*InspectCommitRequest) Descriptor() ([]byte, []int)
func (*InspectCommitRequest) GetCommit ¶
func (m *InspectCommitRequest) GetCommit() *Commit
func (*InspectCommitRequest) ProtoMessage ¶
func (*InspectCommitRequest) ProtoMessage()
func (*InspectCommitRequest) Reset ¶
func (m *InspectCommitRequest) Reset()
func (*InspectCommitRequest) String ¶
func (m *InspectCommitRequest) String() string
type InspectDiffRequest ¶
type InspectDiffRequest struct {
Diff *Diff `protobuf:"bytes,1,opt,name=diff" json:"diff,omitempty"`
}
func (*InspectDiffRequest) Descriptor ¶
func (*InspectDiffRequest) Descriptor() ([]byte, []int)
func (*InspectDiffRequest) GetDiff ¶
func (m *InspectDiffRequest) GetDiff() *Diff
func (*InspectDiffRequest) ProtoMessage ¶
func (*InspectDiffRequest) ProtoMessage()
func (*InspectDiffRequest) Reset ¶
func (m *InspectDiffRequest) Reset()
func (*InspectDiffRequest) String ¶
func (m *InspectDiffRequest) String() string
type InspectFileRequest ¶
type InspectFileRequest struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Shard *Shard `protobuf:"bytes,2,opt,name=shard" json:"shard,omitempty"` FromCommit *Commit `protobuf:"bytes,3,opt,name=from_commit,json=fromCommit" json:"from_commit,omitempty"` }
func (*InspectFileRequest) Descriptor ¶
func (*InspectFileRequest) Descriptor() ([]byte, []int)
func (*InspectFileRequest) GetFile ¶
func (m *InspectFileRequest) GetFile() *File
func (*InspectFileRequest) GetFromCommit ¶
func (m *InspectFileRequest) GetFromCommit() *Commit
func (*InspectFileRequest) GetShard ¶
func (m *InspectFileRequest) GetShard() *Shard
func (*InspectFileRequest) ProtoMessage ¶
func (*InspectFileRequest) ProtoMessage()
func (*InspectFileRequest) Reset ¶
func (m *InspectFileRequest) Reset()
func (*InspectFileRequest) String ¶
func (m *InspectFileRequest) String() string
type InspectRepoRequest ¶
type InspectRepoRequest struct {
Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"`
}
func (*InspectRepoRequest) Descriptor ¶
func (*InspectRepoRequest) Descriptor() ([]byte, []int)
func (*InspectRepoRequest) GetRepo ¶
func (m *InspectRepoRequest) GetRepo() *Repo
func (*InspectRepoRequest) ProtoMessage ¶
func (*InspectRepoRequest) ProtoMessage()
func (*InspectRepoRequest) Reset ¶
func (m *InspectRepoRequest) Reset()
func (*InspectRepoRequest) String ¶
func (m *InspectRepoRequest) String() string
type InternalAPIClient ¶
type InternalAPIClient interface { // Repo rpcs // CreateRepo creates a new repo. // An error is returned if the repo already exists. CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // InspectRepo returns info about a repo. InspectRepo(ctx context.Context, in *InspectRepoRequest, opts ...grpc.CallOption) (*RepoInfo, error) // ListRepo returns info about all repos. ListRepo(ctx context.Context, in *ListRepoRequest, opts ...grpc.CallOption) (*RepoInfos, error) // DeleteRepo deletes a repo. DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // Commit rpcs // StartCommit creates a new write commit from a parent commit. StartCommit(ctx context.Context, in *StartCommitRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // FinishCommit turns a write commit into a read commit. FinishCommit(ctx context.Context, in *FinishCommitRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // InspectCommit returns the info about a commit. InspectCommit(ctx context.Context, in *InspectCommitRequest, opts ...grpc.CallOption) (*CommitInfo, error) // ListCommit returns info about all commits. ListCommit(ctx context.Context, in *ListCommitRequest, opts ...grpc.CallOption) (*CommitInfos, error) // DeleteCommit deletes a commit. DeleteCommit(ctx context.Context, in *DeleteCommitRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) // ListBranch returns info about the heads of branches. ListBranch(ctx context.Context, in *ListBranchRequest, opts ...grpc.CallOption) (*CommitInfos, error) // File rpcs // PutFile writes the specified file to pfs. PutFile(ctx context.Context, opts ...grpc.CallOption) (InternalAPI_PutFileClient, error) // GetFile returns a byte stream of the contents of the file. GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (InternalAPI_GetFileClient, error) // InspectFile returns info about a file. InspectFile(ctx context.Context, in *InspectFileRequest, opts ...grpc.CallOption) (*FileInfo, error) // ListFile returns info about all files. ListFile(ctx context.Context, in *ListFileRequest, opts ...grpc.CallOption) (*FileInfos, error) // DeleteFile deletes a file. DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) }
func NewInternalAPIClient ¶
func NewInternalAPIClient(cc *grpc.ClientConn) InternalAPIClient
type InternalAPIServer ¶
type InternalAPIServer interface { // Repo rpcs // CreateRepo creates a new repo. // An error is returned if the repo already exists. CreateRepo(context.Context, *CreateRepoRequest) (*google_protobuf1.Empty, error) // InspectRepo returns info about a repo. InspectRepo(context.Context, *InspectRepoRequest) (*RepoInfo, error) // ListRepo returns info about all repos. ListRepo(context.Context, *ListRepoRequest) (*RepoInfos, error) // DeleteRepo deletes a repo. DeleteRepo(context.Context, *DeleteRepoRequest) (*google_protobuf1.Empty, error) // Commit rpcs // StartCommit creates a new write commit from a parent commit. StartCommit(context.Context, *StartCommitRequest) (*google_protobuf1.Empty, error) // FinishCommit turns a write commit into a read commit. FinishCommit(context.Context, *FinishCommitRequest) (*google_protobuf1.Empty, error) // InspectCommit returns the info about a commit. InspectCommit(context.Context, *InspectCommitRequest) (*CommitInfo, error) // ListCommit returns info about all commits. ListCommit(context.Context, *ListCommitRequest) (*CommitInfos, error) // DeleteCommit deletes a commit. DeleteCommit(context.Context, *DeleteCommitRequest) (*google_protobuf1.Empty, error) // ListBranch returns info about the heads of branches. ListBranch(context.Context, *ListBranchRequest) (*CommitInfos, error) // File rpcs // PutFile writes the specified file to pfs. PutFile(InternalAPI_PutFileServer) error // GetFile returns a byte stream of the contents of the file. GetFile(*GetFileRequest, InternalAPI_GetFileServer) error // InspectFile returns info about a file. InspectFile(context.Context, *InspectFileRequest) (*FileInfo, error) // ListFile returns info about all files. ListFile(context.Context, *ListFileRequest) (*FileInfos, error) // DeleteFile deletes a file. DeleteFile(context.Context, *DeleteFileRequest) (*google_protobuf1.Empty, error) }
type InternalAPI_GetFileClient ¶
type InternalAPI_GetFileClient interface { Recv() (*google_protobuf3.BytesValue, error) grpc.ClientStream }
type InternalAPI_GetFileServer ¶
type InternalAPI_GetFileServer interface { Send(*google_protobuf3.BytesValue) error grpc.ServerStream }
type InternalAPI_PutFileClient ¶
type InternalAPI_PutFileClient interface { Send(*PutFileRequest) error CloseAndRecv() (*google_protobuf1.Empty, error) grpc.ClientStream }
type InternalAPI_PutFileServer ¶
type InternalAPI_PutFileServer interface { SendAndClose(*google_protobuf1.Empty) error Recv() (*PutFileRequest, error) grpc.ServerStream }
type ListBlockRequest ¶
type ListBlockRequest struct { }
func (*ListBlockRequest) Descriptor ¶
func (*ListBlockRequest) Descriptor() ([]byte, []int)
func (*ListBlockRequest) ProtoMessage ¶
func (*ListBlockRequest) ProtoMessage()
func (*ListBlockRequest) Reset ¶
func (m *ListBlockRequest) Reset()
func (*ListBlockRequest) String ¶
func (m *ListBlockRequest) String() string
type ListBranchRequest ¶
type ListBranchRequest struct {
Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"`
}
func (*ListBranchRequest) Descriptor ¶
func (*ListBranchRequest) Descriptor() ([]byte, []int)
func (*ListBranchRequest) GetRepo ¶
func (m *ListBranchRequest) GetRepo() *Repo
func (*ListBranchRequest) ProtoMessage ¶
func (*ListBranchRequest) ProtoMessage()
func (*ListBranchRequest) Reset ¶
func (m *ListBranchRequest) Reset()
func (*ListBranchRequest) String ¶
func (m *ListBranchRequest) String() string
type ListCommitRequest ¶
type ListCommitRequest struct { Repo []*Repo `protobuf:"bytes,1,rep,name=repo" json:"repo,omitempty"` CommitType CommitType `protobuf:"varint,2,opt,name=commit_type,json=commitType,enum=pfs.CommitType" json:"commit_type,omitempty"` FromCommit []*Commit `protobuf:"bytes,3,rep,name=from_commit,json=fromCommit" json:"from_commit,omitempty"` Block bool `protobuf:"varint,4,opt,name=block" json:"block,omitempty"` }
func (*ListCommitRequest) Descriptor ¶
func (*ListCommitRequest) Descriptor() ([]byte, []int)
func (*ListCommitRequest) GetFromCommit ¶
func (m *ListCommitRequest) GetFromCommit() []*Commit
func (*ListCommitRequest) GetRepo ¶
func (m *ListCommitRequest) GetRepo() []*Repo
func (*ListCommitRequest) ProtoMessage ¶
func (*ListCommitRequest) ProtoMessage()
func (*ListCommitRequest) Reset ¶
func (m *ListCommitRequest) Reset()
func (*ListCommitRequest) String ¶
func (m *ListCommitRequest) String() string
type ListDiffRequest ¶
type ListDiffRequest struct {
Shard uint64 `protobuf:"varint,1,opt,name=shard" json:"shard,omitempty"`
}
func (*ListDiffRequest) Descriptor ¶
func (*ListDiffRequest) Descriptor() ([]byte, []int)
func (*ListDiffRequest) ProtoMessage ¶
func (*ListDiffRequest) ProtoMessage()
func (*ListDiffRequest) Reset ¶
func (m *ListDiffRequest) Reset()
func (*ListDiffRequest) String ¶
func (m *ListDiffRequest) String() string
type ListFileRequest ¶
type ListFileRequest struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` Shard *Shard `protobuf:"bytes,2,opt,name=shard" json:"shard,omitempty"` FromCommit *Commit `protobuf:"bytes,3,opt,name=from_commit,json=fromCommit" json:"from_commit,omitempty"` }
func (*ListFileRequest) Descriptor ¶
func (*ListFileRequest) Descriptor() ([]byte, []int)
func (*ListFileRequest) GetFile ¶
func (m *ListFileRequest) GetFile() *File
func (*ListFileRequest) GetFromCommit ¶
func (m *ListFileRequest) GetFromCommit() *Commit
func (*ListFileRequest) GetShard ¶
func (m *ListFileRequest) GetShard() *Shard
func (*ListFileRequest) ProtoMessage ¶
func (*ListFileRequest) ProtoMessage()
func (*ListFileRequest) Reset ¶
func (m *ListFileRequest) Reset()
func (*ListFileRequest) String ¶
func (m *ListFileRequest) String() string
type ListRepoRequest ¶
type ListRepoRequest struct { }
func (*ListRepoRequest) Descriptor ¶
func (*ListRepoRequest) Descriptor() ([]byte, []int)
func (*ListRepoRequest) ProtoMessage ¶
func (*ListRepoRequest) ProtoMessage()
func (*ListRepoRequest) Reset ¶
func (m *ListRepoRequest) Reset()
func (*ListRepoRequest) String ¶
func (m *ListRepoRequest) String() string
type PutFileRequest ¶
type PutFileRequest struct { File *File `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` FileType FileType `protobuf:"varint,2,opt,name=file_type,json=fileType,enum=pfs.FileType" json:"file_type,omitempty"` Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` Handle string `protobuf:"bytes,4,opt,name=handle" json:"handle,omitempty"` }
func (*PutFileRequest) Descriptor ¶
func (*PutFileRequest) Descriptor() ([]byte, []int)
func (*PutFileRequest) GetFile ¶
func (m *PutFileRequest) GetFile() *File
func (*PutFileRequest) ProtoMessage ¶
func (*PutFileRequest) ProtoMessage()
func (*PutFileRequest) Reset ¶
func (m *PutFileRequest) Reset()
func (*PutFileRequest) String ¶
func (m *PutFileRequest) String() string
type Repo ¶
type Repo struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (*Repo) Descriptor ¶
func (*Repo) ProtoMessage ¶
func (*Repo) ProtoMessage()
type RepoInfo ¶
type RepoInfo struct { Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"` Created *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"` SizeBytes uint64 `protobuf:"varint,3,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` }
func (*RepoInfo) Descriptor ¶
func (*RepoInfo) GetCreated ¶
func (m *RepoInfo) GetCreated() *google_protobuf2.Timestamp
func (*RepoInfo) ProtoMessage ¶
func (*RepoInfo) ProtoMessage()
type RepoInfos ¶
type RepoInfos struct {
RepoInfo []*RepoInfo `protobuf:"bytes,1,rep,name=repo_info,json=repoInfo" json:"repo_info,omitempty"`
}
func (*RepoInfos) Descriptor ¶
func (*RepoInfos) GetRepoInfo ¶
func (*RepoInfos) ProtoMessage ¶
func (*RepoInfos) ProtoMessage()
type Shard ¶
type Shard struct { FileNumber uint64 `protobuf:"varint,1,opt,name=file_number,json=fileNumber" json:"file_number,omitempty"` FileModulus uint64 `protobuf:"varint,2,opt,name=file_modulus,json=fileModulus" json:"file_modulus,omitempty"` BlockNumber uint64 `protobuf:"varint,3,opt,name=block_number,json=blockNumber" json:"block_number,omitempty"` BlockModulus uint64 `protobuf:"varint,4,opt,name=block_modulus,json=blockModulus" json:"block_modulus,omitempty"` }
func (*Shard) Descriptor ¶
func (*Shard) ProtoMessage ¶
func (*Shard) ProtoMessage()
type StartCommitRequest ¶
type StartCommitRequest struct { Repo *Repo `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"` ID string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"` ParentID string `protobuf:"bytes,3,opt,name=parent_id,json=parentId" json:"parent_id,omitempty"` Branch string `protobuf:"bytes,4,opt,name=branch" json:"branch,omitempty"` Started *google_protobuf2.Timestamp `protobuf:"bytes,5,opt,name=started" json:"started,omitempty"` }
func (*StartCommitRequest) Descriptor ¶
func (*StartCommitRequest) Descriptor() ([]byte, []int)
func (*StartCommitRequest) GetRepo ¶
func (m *StartCommitRequest) GetRepo() *Repo
func (*StartCommitRequest) GetStarted ¶
func (m *StartCommitRequest) GetStarted() *google_protobuf2.Timestamp
func (*StartCommitRequest) ProtoMessage ¶
func (*StartCommitRequest) ProtoMessage()
func (*StartCommitRequest) Reset ¶
func (m *StartCommitRequest) Reset()
func (*StartCommitRequest) String ¶
func (m *StartCommitRequest) String() string
Click to show internal directories.
Click to hide internal directories.