Documentation ¶
Overview ¶
Package gitiles contains logic for interacting with gitiles.
Package gitiles contains logic for interacting with gitiles.
Index ¶
- func UseFakeClient(ctx context.Context, makeCommit func(i int32) *git.Commit) context.Context
- type Client
- type FakeClient
- func (f *FakeClient) Archive(ctx context.Context, in *gitilespb.ArchiveRequest, opts ...grpc.CallOption) (*gitilespb.ArchiveResponse, error)
- func (f *FakeClient) DownloadDiff(ctx context.Context, in *gitilespb.DownloadDiffRequest, ...) (*gitilespb.DownloadDiffResponse, error)
- func (f *FakeClient) DownloadFile(ctx context.Context, in *gitilespb.DownloadFileRequest, ...) (*gitilespb.DownloadFileResponse, error)
- func (f *FakeClient) GetProject(ctx context.Context, in *gitilespb.GetProjectRequest, opts ...grpc.CallOption) (*gitilespb.Project, error)
- func (f *FakeClient) ListFiles(ctx context.Context, in *gitilespb.ListFilesRequest, opts ...grpc.CallOption) (*gitilespb.ListFilesResponse, error)
- func (f *FakeClient) Log(ctx context.Context, in *gitilespb.LogRequest, opts ...grpc.CallOption) (*gitilespb.LogResponse, error)
- func (f *FakeClient) Projects(ctx context.Context, in *gitilespb.ProjectsRequest, opts ...grpc.CallOption) (*gitilespb.ProjectsResponse, error)
- func (f *FakeClient) Refs(ctx context.Context, in *gitilespb.RefsRequest, opts ...grpc.CallOption) (*gitilespb.RefsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client to communicate with Gitiles. It wraps a gitilespb.GitilesClient.
func (*Client) DownloadFile ¶
func (c *Client) DownloadFile(ctx context.Context, req *gitilespb.DownloadFileRequest) (*gitilespb.DownloadFileResponse, error)
func (*Client) Log ¶
func (c *Client) Log(ctx context.Context, req *gitilespb.LogRequest) (*gitilespb.LogResponse, error)
type FakeClient ¶
FakeClient is a fake implementation of gitiles.GitilesClient for testing.
func (*FakeClient) Archive ¶
func (f *FakeClient) Archive(ctx context.Context, in *gitilespb.ArchiveRequest, opts ...grpc.CallOption) (*gitilespb.ArchiveResponse, error)
func (*FakeClient) DownloadDiff ¶
func (f *FakeClient) DownloadDiff(ctx context.Context, in *gitilespb.DownloadDiffRequest, opts ...grpc.CallOption) (*gitilespb.DownloadDiffResponse, error)
func (*FakeClient) DownloadFile ¶
func (f *FakeClient) DownloadFile(ctx context.Context, in *gitilespb.DownloadFileRequest, opts ...grpc.CallOption) (*gitilespb.DownloadFileResponse, error)
func (*FakeClient) GetProject ¶
func (f *FakeClient) GetProject(ctx context.Context, in *gitilespb.GetProjectRequest, opts ...grpc.CallOption) (*gitilespb.Project, error)
func (*FakeClient) ListFiles ¶
func (f *FakeClient) ListFiles(ctx context.Context, in *gitilespb.ListFilesRequest, opts ...grpc.CallOption) (*gitilespb.ListFilesResponse, error)
func (*FakeClient) Log ¶
func (f *FakeClient) Log(ctx context.Context, in *gitilespb.LogRequest, opts ...grpc.CallOption) (*gitilespb.LogResponse, error)
func (*FakeClient) Projects ¶
func (f *FakeClient) Projects(ctx context.Context, in *gitilespb.ProjectsRequest, opts ...grpc.CallOption) (*gitilespb.ProjectsResponse, error)
func (*FakeClient) Refs ¶
func (f *FakeClient) Refs(ctx context.Context, in *gitilespb.RefsRequest, opts ...grpc.CallOption) (*gitilespb.RefsResponse, error)
Click to show internal directories.
Click to hide internal directories.