Versions in this module Expand all Collapse all v0 v0.9.0 Jul 23, 2015 Changes in this version + var CommitType_name = map[int32]string + var CommitType_value = map[string]int32 + var ErrDiscoveryKeyAlreadyExists = NewError(ErrorCode_ERROR_CODE_DISCOVERY_KEY_ALREADY_EXISTS, "") + var ErrDiscoveryNetworkFailure = NewError(ErrorCode_ERROR_CODE_DISCOVERY_NETWORK_FAILURE, "") + var ErrDiscoveryNotDirectory = NewError(ErrorCode_ERROR_CODE_DISCOVERY_NOT_VALUE, "") + var ErrDiscoveryNotFound = NewError(ErrorCode_ERROR_CODE_DISCOVERY_NOT_FOUND, "") + var ErrDiscoveryNotValue = NewError(ErrorCode_ERROR_CODE_DISCOVERY_NOT_VALUE, "") + var ErrDiscoveryPreconditionNotMet = NewError(ErrorCode_ERROR_CODE_PRECONDITION_NOT_MET, "") + var ErrorCode_name = map[int32]string + var ErrorCode_value = map[string]int32 + var FileType_name = map[int32]string + var FileType_value = map[string]int32 + func Errorf(format string, args ...interface{}) error + func NewError(errorCode ErrorCode, format string, args ...interface{}) error + func RegisterApiServer(s *grpc.Server, srv ApiServer) + func RegisterInternalApiServer(s *grpc.Server, srv InternalApiServer) + func VersionString(version *Version) string + type ApiClient interface + Branch func(ctx context.Context, in *BranchRequest, opts ...grpc.CallOption) (*BranchResponse, error) + Commit func(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + GetCommitInfo func(ctx context.Context, in *GetCommitInfoRequest, opts ...grpc.CallOption) (*GetCommitInfoResponse, error) + GetFile func(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (Api_GetFileClient, error) + GetVersion func(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*GetVersionResponse, error) + InitRepository func(ctx context.Context, in *InitRepositoryRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + ListFiles func(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error) + MakeDirectory func(ctx context.Context, in *MakeDirectoryRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + PutFile func(ctx context.Context, in *PutFileRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + func NewApiClient(cc *grpc.ClientConn) ApiClient + type ApiServer interface + Branch func(context.Context, *BranchRequest) (*BranchResponse, error) + Commit func(context.Context, *CommitRequest) (*google_protobuf.Empty, error) + GetCommitInfo func(context.Context, *GetCommitInfoRequest) (*GetCommitInfoResponse, error) + GetFile func(*GetFileRequest, Api_GetFileServer) error + GetVersion func(context.Context, *google_protobuf.Empty) (*GetVersionResponse, error) + InitRepository func(context.Context, *InitRepositoryRequest) (*google_protobuf.Empty, error) + ListFiles func(context.Context, *ListFilesRequest) (*ListFilesResponse, error) + MakeDirectory func(context.Context, *MakeDirectoryRequest) (*google_protobuf.Empty, error) + PutFile func(context.Context, *PutFileRequest) (*google_protobuf.Empty, error) + type Api_GetFileClient interface + Recv func() (*google_protobuf2.BytesValue, error) + type Api_GetFileServer interface + Send func(*google_protobuf2.BytesValue) error + type BranchRequest struct + Commit *Commit + NewCommit *Commit + Redirect bool + func (*BranchRequest) ProtoMessage() + func (m *BranchRequest) GetCommit() *Commit + func (m *BranchRequest) GetNewCommit() *Commit + func (m *BranchRequest) Reset() + func (m *BranchRequest) String() string + type BranchResponse struct + Commit *Commit + func (*BranchResponse) ProtoMessage() + func (m *BranchResponse) GetCommit() *Commit + func (m *BranchResponse) Reset() + func (m *BranchResponse) String() string + type Commit struct + Id string + Repository *Repository + func (*Commit) ProtoMessage() + func (m *Commit) GetRepository() *Repository + func (m *Commit) Reset() + func (m *Commit) String() string + type CommitInfo struct + Commit *Commit + CommitType CommitType + ParentCommit *Commit + func (*CommitInfo) ProtoMessage() + func (m *CommitInfo) GetCommit() *Commit + func (m *CommitInfo) GetParentCommit() *Commit + func (m *CommitInfo) Reset() + func (m *CommitInfo) String() string + type CommitRequest struct + Commit *Commit + Redirect bool + func (*CommitRequest) ProtoMessage() + func (m *CommitRequest) GetCommit() *Commit + func (m *CommitRequest) Reset() + func (m *CommitRequest) String() string + type CommitType int32 + const CommitType_COMMIT_TYPE_NONE + const CommitType_COMMIT_TYPE_READ + const CommitType_COMMIT_TYPE_WRITE + func (x CommitType) String() string + type Error struct + ErrorCode ErrorCode + Value string + func (*Error) ProtoMessage() + func (e *Error) Error() string + func (m *Error) Reset() + func (m *Error) String() string + type ErrorCode int32 + const ErrorCode_ERROR_CODE_DISCOVERY_KEY_ALREADY_EXISTS + const ErrorCode_ERROR_CODE_DISCOVERY_NETWORK_FAILURE + const ErrorCode_ERROR_CODE_DISCOVERY_NOT_DIRECTORY + const ErrorCode_ERROR_CODE_DISCOVERY_NOT_FOUND + const ErrorCode_ERROR_CODE_DISCOVERY_NOT_VALUE + const ErrorCode_ERROR_CODE_NONE + const ErrorCode_ERROR_CODE_PRECONDITION_NOT_MET + const ErrorCode_ERROR_CODE_UNKNOWN + func GetErrorCode(err error) (ErrorCode, bool) + func (x ErrorCode) String() string + type FileInfo struct + FileType FileType + LastModified *google_protobuf1.Timestamp + Path *Path + Perm uint32 + SizeBytes uint64 + func (*FileInfo) ProtoMessage() + func (m *FileInfo) GetLastModified() *google_protobuf1.Timestamp + func (m *FileInfo) GetPath() *Path + func (m *FileInfo) Reset() + func (m *FileInfo) String() string + type FileType int32 + const FileType_FILE_TYPE_DIR + const FileType_FILE_TYPE_NONE + const FileType_FILE_TYPE_OTHER + const FileType_FILE_TYPE_REGULAR + func (x FileType) String() string + type GetCommitInfoRequest struct + Commit *Commit + func (*GetCommitInfoRequest) ProtoMessage() + func (m *GetCommitInfoRequest) GetCommit() *Commit + func (m *GetCommitInfoRequest) Reset() + func (m *GetCommitInfoRequest) String() string + type GetCommitInfoResponse struct + CommitInfo *CommitInfo + func (*GetCommitInfoResponse) ProtoMessage() + func (m *GetCommitInfoResponse) GetCommitInfo() *CommitInfo + func (m *GetCommitInfoResponse) Reset() + func (m *GetCommitInfoResponse) String() string + type GetFileRequest struct + Path *Path + func (*GetFileRequest) ProtoMessage() + func (m *GetFileRequest) GetPath() *Path + func (m *GetFileRequest) Reset() + func (m *GetFileRequest) String() string + type GetVersionResponse struct + Version *Version + func (*GetVersionResponse) ProtoMessage() + func (m *GetVersionResponse) GetVersion() *Version + func (m *GetVersionResponse) Reset() + func (m *GetVersionResponse) String() string + type InitRepositoryRequest struct + Redirect bool + Repository *Repository + func (*InitRepositoryRequest) ProtoMessage() + func (m *InitRepositoryRequest) GetRepository() *Repository + func (m *InitRepositoryRequest) Reset() + func (m *InitRepositoryRequest) String() string + type InternalApiClient interface + PullDiff func(ctx context.Context, in *PullDiffRequest, opts ...grpc.CallOption) (InternalApi_PullDiffClient, error) + PushDiff func(ctx context.Context, in *PushDiffRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) + func NewInternalApiClient(cc *grpc.ClientConn) InternalApiClient + type InternalApiServer interface + PullDiff func(*PullDiffRequest, InternalApi_PullDiffServer) error + PushDiff func(context.Context, *PushDiffRequest) (*google_protobuf.Empty, error) + type InternalApi_PullDiffClient interface + Recv func() (*google_protobuf2.BytesValue, error) + type InternalApi_PullDiffServer interface + Send func(*google_protobuf2.BytesValue) error + type ListFilesRequest struct + Path *Path + Redirect bool + Shard *Shard + func (*ListFilesRequest) ProtoMessage() + func (m *ListFilesRequest) GetPath() *Path + func (m *ListFilesRequest) GetShard() *Shard + func (m *ListFilesRequest) Reset() + func (m *ListFilesRequest) String() string + type ListFilesResponse struct + FileInfo []*FileInfo + func (*ListFilesResponse) ProtoMessage() + func (m *ListFilesResponse) GetFileInfo() []*FileInfo + func (m *ListFilesResponse) Reset() + func (m *ListFilesResponse) String() string + type MakeDirectoryRequest struct + Path *Path + Redirect bool + func (*MakeDirectoryRequest) ProtoMessage() + func (m *MakeDirectoryRequest) GetPath() *Path + func (m *MakeDirectoryRequest) Reset() + func (m *MakeDirectoryRequest) String() string + type Path struct + Commit *Commit + Path string + func (*Path) ProtoMessage() + func (m *Path) GetCommit() *Commit + func (m *Path) Reset() + func (m *Path) String() string + type PullDiffRequest struct + Commit *Commit + Shard uint64 + func (*PullDiffRequest) ProtoMessage() + func (m *PullDiffRequest) GetCommit() *Commit + func (m *PullDiffRequest) Reset() + func (m *PullDiffRequest) String() string + type PushDiffRequest struct + Commit *Commit + Shard uint64 + Value []byte + func (*PushDiffRequest) ProtoMessage() + func (m *PushDiffRequest) GetCommit() *Commit + func (m *PushDiffRequest) Reset() + func (m *PushDiffRequest) String() string + type PutFileRequest struct + Path *Path + Value []byte + func (*PutFileRequest) ProtoMessage() + func (m *PutFileRequest) GetPath() *Path + func (m *PutFileRequest) Reset() + func (m *PutFileRequest) String() string + type Repository struct + Name string + func (*Repository) ProtoMessage() + func (m *Repository) Reset() + func (m *Repository) String() string + type Shard struct + Modulo uint64 + Number uint64 + func (*Shard) ProtoMessage() + func (m *Shard) Reset() + func (m *Shard) String() string + type Version struct + Additional string + Major uint32 + Micro uint32 + Minor uint32 + func (*Version) ProtoMessage() + func (m *Version) Reset() + func (m *Version) String() string