Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitLabAPI ¶
type GitLabAPI interface {
GetAgentInfo(http.ResponseWriter, *http.Request)
PostAgentConfiguration(http.ResponseWriter, *http.Request)
GetAllowedAgents(http.ResponseWriter, *http.Request)
GetReceptiveAgents(http.ResponseWriter, *http.Request)
}
type GitalyAPI ¶
type GitalyAPI interface {
GetTreeEntries(*gitalypb.GetTreeEntriesRequest, grpc.ServerStreamingServer[gitalypb.GetTreeEntriesResponse]) error
LastCommitForPath(context.Context, *gitalypb.LastCommitForPathRequest) (*gitalypb.LastCommitForPathResponse, error)
TreeEntry(*gitalypb.TreeEntryRequest, grpc.ServerStreamingServer[gitalypb.TreeEntryResponse]) error
}
GitalyAPI is a subset of gitalypb.CommitServiceServer. We cannot generate a mock for the real interface since it has a private method. So, have to have this crutch. See https://github.com/uber-go/mock/issues/64.
Click to show internal directories.
Click to hide internal directories.