Documentation
¶
Overview ¶
Package gitiles contains Gitiles service definition.
Package gitiles is a generated GoMock package.
Index ¶
- Constants
- Variables
- func FileDescriptorSet() *descriptor.FileDescriptorSet
- func RegisterGitilesServer(s prpc.Registrar, srv GitilesServer)
- type ArchiveRequest
- func (*ArchiveRequest) Descriptor() ([]byte, []int)
- func (m *ArchiveRequest) GetFormat() ArchiveRequest_Format
- func (m *ArchiveRequest) GetProject() string
- func (m *ArchiveRequest) GetRef() string
- func (*ArchiveRequest) ProtoMessage()
- func (m *ArchiveRequest) Reset()
- func (m *ArchiveRequest) String() string
- func (r *ArchiveRequest) Validate() error
- func (m *ArchiveRequest) XXX_DiscardUnknown()
- func (m *ArchiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArchiveRequest) XXX_Merge(src proto.Message)
- func (m *ArchiveRequest) XXX_Size() int
- func (m *ArchiveRequest) XXX_Unmarshal(b []byte) error
- type ArchiveRequest_Format
- type ArchiveResponse
- func (*ArchiveResponse) Descriptor() ([]byte, []int)
- func (m *ArchiveResponse) GetContents() []byte
- func (m *ArchiveResponse) GetFilename() string
- func (*ArchiveResponse) ProtoMessage()
- func (m *ArchiveResponse) Reset()
- func (m *ArchiveResponse) String() string
- func (m *ArchiveResponse) XXX_DiscardUnknown()
- func (m *ArchiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArchiveResponse) XXX_Merge(src proto.Message)
- func (m *ArchiveResponse) XXX_Size() int
- func (m *ArchiveResponse) XXX_Unmarshal(b []byte) error
- type DownloadFileRequest
- func (*DownloadFileRequest) Descriptor() ([]byte, []int)
- func (m *DownloadFileRequest) GetCommittish() string
- func (m *DownloadFileRequest) GetFormat() DownloadFileRequest_Format
- func (m *DownloadFileRequest) GetPath() string
- func (m *DownloadFileRequest) GetProject() string
- func (*DownloadFileRequest) ProtoMessage()
- func (m *DownloadFileRequest) Reset()
- func (m *DownloadFileRequest) String() string
- func (r *DownloadFileRequest) Validate() error
- func (m *DownloadFileRequest) XXX_DiscardUnknown()
- func (m *DownloadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DownloadFileRequest) XXX_Merge(src proto.Message)
- func (m *DownloadFileRequest) XXX_Size() int
- func (m *DownloadFileRequest) XXX_Unmarshal(b []byte) error
- type DownloadFileRequest_Format
- type DownloadFileResponse
- func (*DownloadFileResponse) Descriptor() ([]byte, []int)
- func (m *DownloadFileResponse) GetContents() string
- func (*DownloadFileResponse) ProtoMessage()
- func (m *DownloadFileResponse) Reset()
- func (m *DownloadFileResponse) String() string
- func (m *DownloadFileResponse) XXX_DiscardUnknown()
- func (m *DownloadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DownloadFileResponse) XXX_Merge(src proto.Message)
- func (m *DownloadFileResponse) XXX_Size() int
- func (m *DownloadFileResponse) XXX_Unmarshal(b []byte) error
- type GitilesClient
- type GitilesServer
- type LogRequest
- func (*LogRequest) Descriptor() ([]byte, []int)
- func (m *LogRequest) GetCommittish() string
- func (m *LogRequest) GetExcludeAncestorsOf() string
- func (m *LogRequest) GetPageSize() int32
- func (m *LogRequest) GetPageToken() string
- func (m *LogRequest) GetProject() string
- func (m *LogRequest) GetTreeDiff() bool
- func (*LogRequest) ProtoMessage()
- func (m *LogRequest) Reset()
- func (m *LogRequest) String() string
- func (r *LogRequest) Validate() error
- func (m *LogRequest) XXX_DiscardUnknown()
- func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogRequest) XXX_Merge(src proto.Message)
- func (m *LogRequest) XXX_Size() int
- func (m *LogRequest) XXX_Unmarshal(b []byte) error
- type LogResponse
- func (*LogResponse) Descriptor() ([]byte, []int)
- func (m *LogResponse) GetLog() []*git.Commit
- func (m *LogResponse) GetNextPageToken() string
- func (*LogResponse) ProtoMessage()
- func (m *LogResponse) Reset()
- func (m *LogResponse) String() string
- func (m *LogResponse) XXX_DiscardUnknown()
- func (m *LogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogResponse) XXX_Merge(src proto.Message)
- func (m *LogResponse) XXX_Size() int
- func (m *LogResponse) XXX_Unmarshal(b []byte) error
- type MockGitilesClient
- func (m *MockGitilesClient) Archive(ctx context.Context, in *ArchiveRequest, opts ...grpc.CallOption) (*ArchiveResponse, error)
- func (m *MockGitilesClient) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error)
- func (m *MockGitilesClient) EXPECT() *MockGitilesClientMockRecorder
- func (m *MockGitilesClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error)
- func (m *MockGitilesClient) Refs(ctx context.Context, in *RefsRequest, opts ...grpc.CallOption) (*RefsResponse, error)
- type MockGitilesClientMockRecorder
- func (mr *MockGitilesClientMockRecorder) Archive(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGitilesClientMockRecorder) DownloadFile(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGitilesClientMockRecorder) Log(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockGitilesClientMockRecorder) Refs(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockGitilesServer
- func (m *MockGitilesServer) Archive(arg0 context.Context, arg1 *ArchiveRequest) (*ArchiveResponse, error)
- func (m *MockGitilesServer) DownloadFile(arg0 context.Context, arg1 *DownloadFileRequest) (*DownloadFileResponse, error)
- func (m *MockGitilesServer) EXPECT() *MockGitilesServerMockRecorder
- func (m *MockGitilesServer) Log(arg0 context.Context, arg1 *LogRequest) (*LogResponse, error)
- func (m *MockGitilesServer) Refs(arg0 context.Context, arg1 *RefsRequest) (*RefsResponse, error)
- type MockGitilesServerMockRecorder
- func (mr *MockGitilesServerMockRecorder) Archive(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGitilesServerMockRecorder) DownloadFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGitilesServerMockRecorder) Log(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockGitilesServerMockRecorder) Refs(arg0, arg1 interface{}) *gomock.Call
- type RefsRequest
- func (*RefsRequest) Descriptor() ([]byte, []int)
- func (m *RefsRequest) GetProject() string
- func (m *RefsRequest) GetRefsPath() string
- func (*RefsRequest) ProtoMessage()
- func (m *RefsRequest) Reset()
- func (m *RefsRequest) String() string
- func (r *RefsRequest) Validate() error
- func (m *RefsRequest) XXX_DiscardUnknown()
- func (m *RefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefsRequest) XXX_Merge(src proto.Message)
- func (m *RefsRequest) XXX_Size() int
- func (m *RefsRequest) XXX_Unmarshal(b []byte) error
- type RefsResponse
- func (*RefsResponse) Descriptor() ([]byte, []int)
- func (m *RefsResponse) GetRevisions() map[string]string
- func (*RefsResponse) ProtoMessage()
- func (m *RefsResponse) Reset()
- func (m *RefsResponse) String() string
- func (m *RefsResponse) XXX_DiscardUnknown()
- func (m *RefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefsResponse) XXX_Merge(src proto.Message)
- func (m *RefsResponse) XXX_Size() int
- func (m *RefsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedGitilesServer
- func (*UnimplementedGitilesServer) Archive(ctx context.Context, req *ArchiveRequest) (*ArchiveResponse, error)
- func (*UnimplementedGitilesServer) DownloadFile(ctx context.Context, req *DownloadFileRequest) (*DownloadFileResponse, error)
- func (*UnimplementedGitilesServer) Log(ctx context.Context, req *LogRequest) (*LogResponse, error)
- func (*UnimplementedGitilesServer) Refs(ctx context.Context, req *RefsRequest) (*RefsResponse, error)
Constants ¶
const ( // AllRefs instructs the client to fetch all refs. AllRefs = "refs" // Branches instructs the client to fetch all branches. Branches = "refs/heads" // Tags instructs the client to fetch all tags. Tags = "refs/tags" )
These constants are possible values for RefsRequest.RefsPath field. Not an exhaustive list.
Variables ¶
var ArchiveRequest_Format_name = map[int32]string{
0: "Invalid",
1: "GZIP",
2: "TAR",
3: "BZIP2",
4: "XZ",
}
var ArchiveRequest_Format_value = map[string]int32{
"Invalid": 0,
"GZIP": 1,
"TAR": 2,
"BZIP2": 3,
"XZ": 4,
}
var DownloadFileRequest_Format_name = map[int32]string{
0: "FormatInvalid",
1: "TEXT",
}
var DownloadFileRequest_Format_value = map[string]int32{
"FormatInvalid": 0,
"TEXT": 1,
}
Functions ¶
func FileDescriptorSet ¶
func FileDescriptorSet() *descriptor.FileDescriptorSet
FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.
Will not return nil.
Do NOT modify the returned descriptor.
func RegisterGitilesServer ¶
func RegisterGitilesServer(s prpc.Registrar, srv GitilesServer)
Types ¶
type ArchiveRequest ¶
type ArchiveRequest struct { // Gitiles project, e.g. "chromium/src" part in // https://chromium.googlesource.com/chromium/src/+/master // Required. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The ref at which to generate the project archive for. // // viz refs/for/branch or just branch Ref string `protobuf:"bytes,2,opt,name=ref,proto3" json:"ref,omitempty"` // Format of the returned project archive. Format ArchiveRequest_Format `protobuf:"varint,3,opt,name=format,proto3,enum=gitiles.ArchiveRequest_Format" json:"format,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ArchiveRequest is a request message of the Gitiles.Archive RPC.
func (*ArchiveRequest) Descriptor ¶
func (*ArchiveRequest) Descriptor() ([]byte, []int)
func (*ArchiveRequest) GetFormat ¶
func (m *ArchiveRequest) GetFormat() ArchiveRequest_Format
func (*ArchiveRequest) GetProject ¶
func (m *ArchiveRequest) GetProject() string
func (*ArchiveRequest) GetRef ¶
func (m *ArchiveRequest) GetRef() string
func (*ArchiveRequest) ProtoMessage ¶
func (*ArchiveRequest) ProtoMessage()
func (*ArchiveRequest) Reset ¶
func (m *ArchiveRequest) Reset()
func (*ArchiveRequest) String ¶
func (m *ArchiveRequest) String() string
func (*ArchiveRequest) Validate ¶
func (r *ArchiveRequest) Validate() error
Validate returns an error if r is invalid.
func (*ArchiveRequest) XXX_DiscardUnknown ¶
func (m *ArchiveRequest) XXX_DiscardUnknown()
func (*ArchiveRequest) XXX_Marshal ¶
func (m *ArchiveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArchiveRequest) XXX_Merge ¶
func (m *ArchiveRequest) XXX_Merge(src proto.Message)
func (*ArchiveRequest) XXX_Size ¶
func (m *ArchiveRequest) XXX_Size() int
func (*ArchiveRequest) XXX_Unmarshal ¶
func (m *ArchiveRequest) XXX_Unmarshal(b []byte) error
type ArchiveRequest_Format ¶
type ArchiveRequest_Format int32
List copied from https://github.com/google/gitiles/blob/65edbe49f2b3882a5979f602383ef0c7b2b8ee0c/java/com/google/gitiles/ArchiveFormat.java
const ( ArchiveRequest_Invalid ArchiveRequest_Format = 0 ArchiveRequest_GZIP ArchiveRequest_Format = 1 ArchiveRequest_TAR ArchiveRequest_Format = 2 ArchiveRequest_BZIP2 ArchiveRequest_Format = 3 ArchiveRequest_XZ ArchiveRequest_Format = 4 )
func (ArchiveRequest_Format) EnumDescriptor ¶
func (ArchiveRequest_Format) EnumDescriptor() ([]byte, []int)
func (ArchiveRequest_Format) String ¶
func (x ArchiveRequest_Format) String() string
type ArchiveResponse ¶
type ArchiveResponse struct { // Suggested name of the returned archive. Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // Contents of the archive streamed from gitiles. // // The underlying server RPC streams back the contents. This API simplifies // the RPC to a non-streaming response. Contents []byte `protobuf:"bytes,2,opt,name=contents,proto3" json:"contents,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArchiveResponse) Descriptor ¶
func (*ArchiveResponse) Descriptor() ([]byte, []int)
func (*ArchiveResponse) GetContents ¶
func (m *ArchiveResponse) GetContents() []byte
func (*ArchiveResponse) GetFilename ¶
func (m *ArchiveResponse) GetFilename() string
func (*ArchiveResponse) ProtoMessage ¶
func (*ArchiveResponse) ProtoMessage()
func (*ArchiveResponse) Reset ¶
func (m *ArchiveResponse) Reset()
func (*ArchiveResponse) String ¶
func (m *ArchiveResponse) String() string
func (*ArchiveResponse) XXX_DiscardUnknown ¶
func (m *ArchiveResponse) XXX_DiscardUnknown()
func (*ArchiveResponse) XXX_Marshal ¶
func (m *ArchiveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArchiveResponse) XXX_Merge ¶
func (m *ArchiveResponse) XXX_Merge(src proto.Message)
func (*ArchiveResponse) XXX_Size ¶
func (m *ArchiveResponse) XXX_Size() int
func (*ArchiveResponse) XXX_Unmarshal ¶
func (m *ArchiveResponse) XXX_Unmarshal(b []byte) error
type DownloadFileRequest ¶
type DownloadFileRequest struct { // Gitiles project, e.g. "chromium/src" part in // https://chromium.googlesource.com/chromium/src/+/master // Required. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The commit where to start the listing from. // The value can be: // - a git revision as 40-char string or its prefix so long as its unique in repo. // - a ref such as "refs/heads/branch" // - a ref defined as n-th parent of R in the form "R~n". // For example, "master~2" or "deadbeef~1". // Required. Committish string `protobuf:"bytes,2,opt,name=committish,proto3" json:"committish,omitempty"` // Path relative to the project root to the file to download. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Format to download file in. Format DownloadFileRequest_Format `protobuf:"varint,4,opt,name=format,proto3,enum=gitiles.DownloadFileRequest_Format" json:"format,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DownloadFileRequest) Descriptor ¶
func (*DownloadFileRequest) Descriptor() ([]byte, []int)
func (*DownloadFileRequest) GetCommittish ¶
func (m *DownloadFileRequest) GetCommittish() string
func (*DownloadFileRequest) GetFormat ¶
func (m *DownloadFileRequest) GetFormat() DownloadFileRequest_Format
func (*DownloadFileRequest) GetPath ¶
func (m *DownloadFileRequest) GetPath() string
func (*DownloadFileRequest) GetProject ¶
func (m *DownloadFileRequest) GetProject() string
func (*DownloadFileRequest) ProtoMessage ¶
func (*DownloadFileRequest) ProtoMessage()
func (*DownloadFileRequest) Reset ¶
func (m *DownloadFileRequest) Reset()
func (*DownloadFileRequest) String ¶
func (m *DownloadFileRequest) String() string
func (*DownloadFileRequest) Validate ¶
func (r *DownloadFileRequest) Validate() error
Validate returns an error if r is invalid.
func (*DownloadFileRequest) XXX_DiscardUnknown ¶
func (m *DownloadFileRequest) XXX_DiscardUnknown()
func (*DownloadFileRequest) XXX_Marshal ¶
func (m *DownloadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DownloadFileRequest) XXX_Merge ¶
func (m *DownloadFileRequest) XXX_Merge(src proto.Message)
func (*DownloadFileRequest) XXX_Size ¶
func (m *DownloadFileRequest) XXX_Size() int
func (*DownloadFileRequest) XXX_Unmarshal ¶
func (m *DownloadFileRequest) XXX_Unmarshal(b []byte) error
type DownloadFileRequest_Format ¶
type DownloadFileRequest_Format int32
const ( DownloadFileRequest_FormatInvalid DownloadFileRequest_Format = 0 DownloadFileRequest_TEXT DownloadFileRequest_Format = 1 )
func (DownloadFileRequest_Format) EnumDescriptor ¶
func (DownloadFileRequest_Format) EnumDescriptor() ([]byte, []int)
func (DownloadFileRequest_Format) String ¶
func (x DownloadFileRequest_Format) String() string
type DownloadFileResponse ¶
type DownloadFileResponse struct { // Decoded contents of the downloaded file. // // The underlying server RPC streams back the contents. This API simplifies // the RPC to a non-streaming response. Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DownloadFileResponse) Descriptor ¶
func (*DownloadFileResponse) Descriptor() ([]byte, []int)
func (*DownloadFileResponse) GetContents ¶
func (m *DownloadFileResponse) GetContents() string
func (*DownloadFileResponse) ProtoMessage ¶
func (*DownloadFileResponse) ProtoMessage()
func (*DownloadFileResponse) Reset ¶
func (m *DownloadFileResponse) Reset()
func (*DownloadFileResponse) String ¶
func (m *DownloadFileResponse) String() string
func (*DownloadFileResponse) XXX_DiscardUnknown ¶
func (m *DownloadFileResponse) XXX_DiscardUnknown()
func (*DownloadFileResponse) XXX_Marshal ¶
func (m *DownloadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DownloadFileResponse) XXX_Merge ¶
func (m *DownloadFileResponse) XXX_Merge(src proto.Message)
func (*DownloadFileResponse) XXX_Size ¶
func (m *DownloadFileResponse) XXX_Size() int
func (*DownloadFileResponse) XXX_Unmarshal ¶
func (m *DownloadFileResponse) XXX_Unmarshal(b []byte) error
type GitilesClient ¶
type GitilesClient interface { // Log retrieves commit log. Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error) // Refs retrieves repo refs. Refs(ctx context.Context, in *RefsRequest, opts ...grpc.CallOption) (*RefsResponse, error) // Archive retrieves archived contents of the project. // // An archive is a shallow bundle of the contents of a repository. // // DEPRECATED: Use DownloadFile to obtain plain text files. // TODO(pprabhu): Migrate known users to DownloadFile and delete this RPC. Archive(ctx context.Context, in *ArchiveRequest, opts ...grpc.CallOption) (*ArchiveResponse, error) // DownloadFile retrieves a file from the project. DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error) }
GitilesClient is the client API for Gitiles service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGitilesClient ¶
func NewGitilesClient(cc *grpc.ClientConn) GitilesClient
func NewGitilesPRPCClient ¶
func NewGitilesPRPCClient(client *prpc.Client) GitilesClient
type GitilesServer ¶
type GitilesServer interface { // Log retrieves commit log. Log(context.Context, *LogRequest) (*LogResponse, error) // Refs retrieves repo refs. Refs(context.Context, *RefsRequest) (*RefsResponse, error) // Archive retrieves archived contents of the project. // // An archive is a shallow bundle of the contents of a repository. // // DEPRECATED: Use DownloadFile to obtain plain text files. // TODO(pprabhu): Migrate known users to DownloadFile and delete this RPC. Archive(context.Context, *ArchiveRequest) (*ArchiveResponse, error) // DownloadFile retrieves a file from the project. DownloadFile(context.Context, *DownloadFileRequest) (*DownloadFileResponse, error) }
GitilesServer is the server API for Gitiles service.
type LogRequest ¶
type LogRequest struct { // Gitiles project, e.g. "chromium/src" part in // https://chromium.googlesource.com/chromium/src/+/master // Required. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // The commit where to start the listing from. // The value can be: // - a git revision as 40-char string or its prefix so long as its unique in repo. // - a ref such as "refs/heads/branch" // - a ref defined as n-th parent of R in the form "R~n". // For example, "master~2" or "deadbeef~1". // Required. Committish string `protobuf:"bytes,3,opt,name=committish,proto3" json:"committish,omitempty"` // If specified, only commits not reachable from this commit (inclusive) // will be returned. // // In git's notation, this is // $ git log ^exclude_ancestors_of committish // OR // $ git log exclude_ancestors_of..committish // https://git-scm.com/docs/gitrevisions#gitrevisions-Theememtwo-dotRangeNotation // // For example, given this repo // // base -> A -> B -> C == refs/heads/master // \ // X -> Y -> Z == refs/heads/release // // calling Log(committish='refs/heads/release', // exclude_ancestors_of='refs/heads/master') // will return ['Z', Y', 'X']. ExcludeAncestorsOf string `protobuf:"bytes,2,opt,name=exclude_ancestors_of,json=excludeAncestorsOf,proto3" json:"exclude_ancestors_of,omitempty"` // If true, include tree diff in commits. TreeDiff bool `protobuf:"varint,4,opt,name=tree_diff,json=treeDiff,proto3" json:"tree_diff,omitempty"` // Value of next_page_token in LogResponse to continue. PageToken string `protobuf:"bytes,10,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // If > 0, number of commits to retrieve. PageSize int32 `protobuf:"varint,11,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LogRequest is request message for Gitiles.Log rpc.
func (*LogRequest) Descriptor ¶
func (*LogRequest) Descriptor() ([]byte, []int)
func (*LogRequest) GetCommittish ¶
func (m *LogRequest) GetCommittish() string
func (*LogRequest) GetExcludeAncestorsOf ¶
func (m *LogRequest) GetExcludeAncestorsOf() string
func (*LogRequest) GetPageSize ¶
func (m *LogRequest) GetPageSize() int32
func (*LogRequest) GetPageToken ¶
func (m *LogRequest) GetPageToken() string
func (*LogRequest) GetProject ¶
func (m *LogRequest) GetProject() string
func (*LogRequest) GetTreeDiff ¶
func (m *LogRequest) GetTreeDiff() bool
func (*LogRequest) ProtoMessage ¶
func (*LogRequest) ProtoMessage()
func (*LogRequest) Reset ¶
func (m *LogRequest) Reset()
func (*LogRequest) String ¶
func (m *LogRequest) String() string
func (*LogRequest) Validate ¶
func (r *LogRequest) Validate() error
Validate returns an error if r is invalid.
func (*LogRequest) XXX_DiscardUnknown ¶
func (m *LogRequest) XXX_DiscardUnknown()
func (*LogRequest) XXX_Marshal ¶
func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogRequest) XXX_Merge ¶
func (m *LogRequest) XXX_Merge(src proto.Message)
func (*LogRequest) XXX_Size ¶
func (m *LogRequest) XXX_Size() int
func (*LogRequest) XXX_Unmarshal ¶
func (m *LogRequest) XXX_Unmarshal(b []byte) error
type LogResponse ¶
type LogResponse struct { // Retrieved commits. Log []*git.Commit `protobuf:"bytes,1,rep,name=log,proto3" json:"log,omitempty"` // A page token for next LogRequest to fetch next page of commits. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
LogRequest is response message for Gitiles.Log rpc.
func (*LogResponse) Descriptor ¶
func (*LogResponse) Descriptor() ([]byte, []int)
func (*LogResponse) GetLog ¶
func (m *LogResponse) GetLog() []*git.Commit
func (*LogResponse) GetNextPageToken ¶
func (m *LogResponse) GetNextPageToken() string
func (*LogResponse) ProtoMessage ¶
func (*LogResponse) ProtoMessage()
func (*LogResponse) Reset ¶
func (m *LogResponse) Reset()
func (*LogResponse) String ¶
func (m *LogResponse) String() string
func (*LogResponse) XXX_DiscardUnknown ¶
func (m *LogResponse) XXX_DiscardUnknown()
func (*LogResponse) XXX_Marshal ¶
func (m *LogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogResponse) XXX_Merge ¶
func (m *LogResponse) XXX_Merge(src proto.Message)
func (*LogResponse) XXX_Size ¶
func (m *LogResponse) XXX_Size() int
func (*LogResponse) XXX_Unmarshal ¶
func (m *LogResponse) XXX_Unmarshal(b []byte) error
type MockGitilesClient ¶
type MockGitilesClient struct {
// contains filtered or unexported fields
}
MockGitilesClient is a mock of GitilesClient interface
func NewMockGitilesClient ¶
func NewMockGitilesClient(ctrl *gomock.Controller) *MockGitilesClient
NewMockGitilesClient creates a new mock instance
func (*MockGitilesClient) Archive ¶
func (m *MockGitilesClient) Archive(ctx context.Context, in *ArchiveRequest, opts ...grpc.CallOption) (*ArchiveResponse, error)
Archive mocks base method
func (*MockGitilesClient) DownloadFile ¶
func (m *MockGitilesClient) DownloadFile(ctx context.Context, in *DownloadFileRequest, opts ...grpc.CallOption) (*DownloadFileResponse, error)
DownloadFile mocks base method
func (*MockGitilesClient) EXPECT ¶
func (m *MockGitilesClient) EXPECT() *MockGitilesClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGitilesClient) Log ¶
func (m *MockGitilesClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (*LogResponse, error)
Log mocks base method
func (*MockGitilesClient) Refs ¶
func (m *MockGitilesClient) Refs(ctx context.Context, in *RefsRequest, opts ...grpc.CallOption) (*RefsResponse, error)
Refs mocks base method
type MockGitilesClientMockRecorder ¶
type MockGitilesClientMockRecorder struct {
// contains filtered or unexported fields
}
MockGitilesClientMockRecorder is the mock recorder for MockGitilesClient
func (*MockGitilesClientMockRecorder) Archive ¶
func (mr *MockGitilesClientMockRecorder) Archive(ctx, in interface{}, opts ...interface{}) *gomock.Call
Archive indicates an expected call of Archive
func (*MockGitilesClientMockRecorder) DownloadFile ¶
func (mr *MockGitilesClientMockRecorder) DownloadFile(ctx, in interface{}, opts ...interface{}) *gomock.Call
DownloadFile indicates an expected call of DownloadFile
func (*MockGitilesClientMockRecorder) Log ¶
func (mr *MockGitilesClientMockRecorder) Log(ctx, in interface{}, opts ...interface{}) *gomock.Call
Log indicates an expected call of Log
func (*MockGitilesClientMockRecorder) Refs ¶
func (mr *MockGitilesClientMockRecorder) Refs(ctx, in interface{}, opts ...interface{}) *gomock.Call
Refs indicates an expected call of Refs
type MockGitilesServer ¶
type MockGitilesServer struct {
// contains filtered or unexported fields
}
MockGitilesServer is a mock of GitilesServer interface
func NewMockGitilesServer ¶
func NewMockGitilesServer(ctrl *gomock.Controller) *MockGitilesServer
NewMockGitilesServer creates a new mock instance
func (*MockGitilesServer) Archive ¶
func (m *MockGitilesServer) Archive(arg0 context.Context, arg1 *ArchiveRequest) (*ArchiveResponse, error)
Archive mocks base method
func (*MockGitilesServer) DownloadFile ¶
func (m *MockGitilesServer) DownloadFile(arg0 context.Context, arg1 *DownloadFileRequest) (*DownloadFileResponse, error)
DownloadFile mocks base method
func (*MockGitilesServer) EXPECT ¶
func (m *MockGitilesServer) EXPECT() *MockGitilesServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockGitilesServer) Log ¶
func (m *MockGitilesServer) Log(arg0 context.Context, arg1 *LogRequest) (*LogResponse, error)
Log mocks base method
func (*MockGitilesServer) Refs ¶
func (m *MockGitilesServer) Refs(arg0 context.Context, arg1 *RefsRequest) (*RefsResponse, error)
Refs mocks base method
type MockGitilesServerMockRecorder ¶
type MockGitilesServerMockRecorder struct {
// contains filtered or unexported fields
}
MockGitilesServerMockRecorder is the mock recorder for MockGitilesServer
func (*MockGitilesServerMockRecorder) Archive ¶
func (mr *MockGitilesServerMockRecorder) Archive(arg0, arg1 interface{}) *gomock.Call
Archive indicates an expected call of Archive
func (*MockGitilesServerMockRecorder) DownloadFile ¶
func (mr *MockGitilesServerMockRecorder) DownloadFile(arg0, arg1 interface{}) *gomock.Call
DownloadFile indicates an expected call of DownloadFile
func (*MockGitilesServerMockRecorder) Log ¶
func (mr *MockGitilesServerMockRecorder) Log(arg0, arg1 interface{}) *gomock.Call
Log indicates an expected call of Log
func (*MockGitilesServerMockRecorder) Refs ¶
func (mr *MockGitilesServerMockRecorder) Refs(arg0, arg1 interface{}) *gomock.Call
Refs indicates an expected call of Refs
type RefsRequest ¶
type RefsRequest struct { // Gitiles project, e.g. "chromium/src" part in // https://chromium.googlesource.com/chromium/src/+/master // Required. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // Limits which refs to resolve to only those matching {refsPath}/*. // // Must be "refs" or start with "refs/". // Must not include glob '*'. // Use "refs/heads" to retrieve all branches. // // To fetch **all** refs in a repo, specify just "refs" but beware of two // caveats: // * refs returned include a ref for each patchset for each Gerrit change // associated with the repo. // * returned map will contain special "HEAD" ref whose value in resulting map // will be name of the actual ref to which "HEAD" points, which is typically // "refs/heads/master". // // Thus, if you are looking for all tags and all branches of repo, it's // recommended to issue two Refs calls limited to "refs/tags" and "refs/heads" // instead of one call for "refs". // // Since Gerrit allows per-ref ACLs, it is possible that some refs matching // refPrefix would not be present in results because current user isn't granted // read permission on them. RefsPath string `protobuf:"bytes,2,opt,name=refs_path,json=refsPath,proto3" json:"refs_path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RefsRequest is a request message of Gitiles.Refs RPC.
func (*RefsRequest) Descriptor ¶
func (*RefsRequest) Descriptor() ([]byte, []int)
func (*RefsRequest) GetProject ¶
func (m *RefsRequest) GetProject() string
func (*RefsRequest) GetRefsPath ¶
func (m *RefsRequest) GetRefsPath() string
func (*RefsRequest) ProtoMessage ¶
func (*RefsRequest) ProtoMessage()
func (*RefsRequest) Reset ¶
func (m *RefsRequest) Reset()
func (*RefsRequest) String ¶
func (m *RefsRequest) String() string
func (*RefsRequest) Validate ¶
func (r *RefsRequest) Validate() error
Validate returns an error if r is invalid.
func (*RefsRequest) XXX_DiscardUnknown ¶
func (m *RefsRequest) XXX_DiscardUnknown()
func (*RefsRequest) XXX_Marshal ¶
func (m *RefsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RefsRequest) XXX_Merge ¶
func (m *RefsRequest) XXX_Merge(src proto.Message)
func (*RefsRequest) XXX_Size ¶
func (m *RefsRequest) XXX_Size() int
func (*RefsRequest) XXX_Unmarshal ¶
func (m *RefsRequest) XXX_Unmarshal(b []byte) error
type RefsResponse ¶
type RefsResponse struct { // revisions maps a ref to a revision. // Git branches have keys start with "refs/heads/". Revisions map[string]string `` /* 159-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
RefsResponse is a response message of Gitiles.Refs RPC.
func (*RefsResponse) Descriptor ¶
func (*RefsResponse) Descriptor() ([]byte, []int)
func (*RefsResponse) GetRevisions ¶
func (m *RefsResponse) GetRevisions() map[string]string
func (*RefsResponse) ProtoMessage ¶
func (*RefsResponse) ProtoMessage()
func (*RefsResponse) Reset ¶
func (m *RefsResponse) Reset()
func (*RefsResponse) String ¶
func (m *RefsResponse) String() string
func (*RefsResponse) XXX_DiscardUnknown ¶
func (m *RefsResponse) XXX_DiscardUnknown()
func (*RefsResponse) XXX_Marshal ¶
func (m *RefsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RefsResponse) XXX_Merge ¶
func (m *RefsResponse) XXX_Merge(src proto.Message)
func (*RefsResponse) XXX_Size ¶
func (m *RefsResponse) XXX_Size() int
func (*RefsResponse) XXX_Unmarshal ¶
func (m *RefsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedGitilesServer ¶
type UnimplementedGitilesServer struct { }
UnimplementedGitilesServer can be embedded to have forward compatible implementations.
func (*UnimplementedGitilesServer) Archive ¶
func (*UnimplementedGitilesServer) Archive(ctx context.Context, req *ArchiveRequest) (*ArchiveResponse, error)
func (*UnimplementedGitilesServer) DownloadFile ¶
func (*UnimplementedGitilesServer) DownloadFile(ctx context.Context, req *DownloadFileRequest) (*DownloadFileResponse, error)
func (*UnimplementedGitilesServer) Log ¶
func (*UnimplementedGitilesServer) Log(ctx context.Context, req *LogRequest) (*LogResponse, error)
func (*UnimplementedGitilesServer) Refs ¶
func (*UnimplementedGitilesServer) Refs(ctx context.Context, req *RefsRequest) (*RefsResponse, error)