Documentation ¶
Index ¶
- func StartHttpServer(t *testing.T, handlers []TestRequestHandler) string
- func StartHttpsServer(t *testing.T, handlers []TestRequestHandler, clientCAPath string) string
- func StartSocketHttpServer(t *testing.T, handlers []TestRequestHandler) string
- type TestGitalyServer
- func (s *TestGitalyServer) SSHReceivePack(stream pb.SSHService_SSHReceivePackServer) error
- func (s *TestGitalyServer) SSHUploadArchive(stream pb.SSHService_SSHUploadArchiveServer) error
- func (s *TestGitalyServer) SSHUploadPack(stream pb.SSHService_SSHUploadPackServer) error
- func (s *TestGitalyServer) SSHUploadPackWithSidechannel(ctx context.Context, req *pb.SSHUploadPackWithSidechannelRequest) (*pb.SSHUploadPackWithSidechannelResponse, error)
- type TestRequestHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHttpServer ¶
func StartHttpServer(t *testing.T, handlers []TestRequestHandler) string
func StartHttpsServer ¶
func StartHttpsServer(t *testing.T, handlers []TestRequestHandler, clientCAPath string) string
func StartSocketHttpServer ¶
func StartSocketHttpServer(t *testing.T, handlers []TestRequestHandler) string
Types ¶
type TestGitalyServer ¶
type TestGitalyServer struct { ReceivedMD metadata.MD pb.UnimplementedSSHServiceServer }
func StartGitalyServer ¶
func StartGitalyServer(t *testing.T) (string, *TestGitalyServer)
func (*TestGitalyServer) SSHReceivePack ¶
func (s *TestGitalyServer) SSHReceivePack(stream pb.SSHService_SSHReceivePackServer) error
func (*TestGitalyServer) SSHUploadArchive ¶
func (s *TestGitalyServer) SSHUploadArchive(stream pb.SSHService_SSHUploadArchiveServer) error
func (*TestGitalyServer) SSHUploadPack ¶
func (s *TestGitalyServer) SSHUploadPack(stream pb.SSHService_SSHUploadPackServer) error
func (*TestGitalyServer) SSHUploadPackWithSidechannel ¶
func (s *TestGitalyServer) SSHUploadPackWithSidechannel(ctx context.Context, req *pb.SSHUploadPackWithSidechannelRequest) (*pb.SSHUploadPackWithSidechannelResponse, error)
type TestRequestHandler ¶
type TestRequestHandler struct { Path string Handler func(w http.ResponseWriter, r *http.Request) }
Click to show internal directories.
Click to hide internal directories.