Documentation ¶
Index ¶
- Variables
- type Server
- func (s *Server) UserApplyPatch(stream gitalypb.OperationService_UserApplyPatchServer) error
- func (s *Server) UserCherryPick(ctx context.Context, req *gitalypb.UserCherryPickRequest) (*gitalypb.UserCherryPickResponse, error)
- func (s *Server) UserCommitFiles(stream gitalypb.OperationService_UserCommitFilesServer) error
- func (s *Server) UserCreateBranch(ctx context.Context, req *gitalypb.UserCreateBranchRequest) (*gitalypb.UserCreateBranchResponse, error)
- func (s *Server) UserCreateTag(ctx context.Context, req *gitalypb.UserCreateTagRequest) (*gitalypb.UserCreateTagResponse, error)
- func (s *Server) UserDeleteBranch(ctx context.Context, req *gitalypb.UserDeleteBranchRequest) (*gitalypb.UserDeleteBranchResponse, error)
- func (s *Server) UserDeleteTag(ctx context.Context, req *gitalypb.UserDeleteTagRequest) (*gitalypb.UserDeleteTagResponse, error)
- func (s *Server) UserFFBranch(ctx context.Context, in *gitalypb.UserFFBranchRequest) (*gitalypb.UserFFBranchResponse, error)
- func (s *Server) UserMergeBranch(stream gitalypb.OperationService_UserMergeBranchServer) error
- func (s *Server) UserMergeToRef(ctx context.Context, request *gitalypb.UserMergeToRefRequest) (*gitalypb.UserMergeToRefResponse, error)
- func (s *Server) UserRebaseConfirmable(stream gitalypb.OperationService_UserRebaseConfirmableServer) error
- func (s *Server) UserRevert(ctx context.Context, req *gitalypb.UserRevertRequest) (*gitalypb.UserRevertResponse, error)
- func (s *Server) UserSquash(ctx context.Context, req *gitalypb.UserSquashRequest) (*gitalypb.UserSquashResponse, error)
- func (s *Server) UserUpdateBranch(ctx context.Context, req *gitalypb.UserUpdateBranchRequest) (*gitalypb.UserUpdateBranchResponse, error)
- func (s *Server) UserUpdateSubmodule(ctx context.Context, req *gitalypb.UserUpdateSubmoduleRequest) (*gitalypb.UserUpdateSubmoduleResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ErrInvalidBranch = errors.New("invalid branch name")
ErrInvalidBranch indicates a branch name is invalid
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { gitalypb.UnimplementedOperationServiceServer // contains filtered or unexported fields }
func NewServer ¶
func NewServer( hookManager hook.Manager, txManager transaction.Manager, locator storage.Locator, conns *client.Pool, git2goExecutor *git2go.Executor, gitCmdFactory git.CommandFactory, catfileCache catfile.Cache, updater *updateref.UpdaterWithHooks, ) *Server
NewServer creates a new instance of a grpc OperationServiceServer
func (*Server) UserApplyPatch ¶
func (s *Server) UserApplyPatch(stream gitalypb.OperationService_UserApplyPatchServer) error
func (*Server) UserCherryPick ¶
func (s *Server) UserCherryPick(ctx context.Context, req *gitalypb.UserCherryPickRequest) (*gitalypb.UserCherryPickResponse, error)
UserCherryPick tries to perform a cherry-pick of a given commit onto a branch. See the protobuf documentation for details.
func (*Server) UserCommitFiles ¶
func (s *Server) UserCommitFiles(stream gitalypb.OperationService_UserCommitFilesServer) error
UserCommitFiles allows for committing from a set of actions. See the protobuf documentation for details.
func (*Server) UserCreateBranch ¶
func (s *Server) UserCreateBranch(ctx context.Context, req *gitalypb.UserCreateBranchRequest) (*gitalypb.UserCreateBranchResponse, error)
func (*Server) UserCreateTag ¶
func (s *Server) UserCreateTag(ctx context.Context, req *gitalypb.UserCreateTagRequest) (*gitalypb.UserCreateTagResponse, error)
func (*Server) UserDeleteBranch ¶
func (s *Server) UserDeleteBranch(ctx context.Context, req *gitalypb.UserDeleteBranchRequest) (*gitalypb.UserDeleteBranchResponse, error)
UserDeleteBranch force-deletes a single branch in the context of a specific user. It executes hooks and contacts Rails to verify that the user is indeed allowed to delete that branch.
func (*Server) UserDeleteTag ¶
func (s *Server) UserDeleteTag(ctx context.Context, req *gitalypb.UserDeleteTagRequest) (*gitalypb.UserDeleteTagResponse, error)
func (*Server) UserFFBranch ¶
func (s *Server) UserFFBranch(ctx context.Context, in *gitalypb.UserFFBranchRequest) (*gitalypb.UserFFBranchResponse, error)
func (*Server) UserMergeBranch ¶
func (s *Server) UserMergeBranch(stream gitalypb.OperationService_UserMergeBranchServer) error
UserMergeBranch is a two stage streaming RPC that will merge two commits together and create a merge commit
func (*Server) UserMergeToRef ¶
func (s *Server) UserMergeToRef(ctx context.Context, request *gitalypb.UserMergeToRefRequest) (*gitalypb.UserMergeToRefResponse, error)
UserMergeToRef overwrites the given TargetRef to point to either Branch or FirstParentRef. Afterwards, it performs a merge of SourceSHA with either Branch or FirstParentRef and updates TargetRef to the merge commit.
func (*Server) UserRebaseConfirmable ¶
func (s *Server) UserRebaseConfirmable(stream gitalypb.OperationService_UserRebaseConfirmableServer) error
func (*Server) UserRevert ¶
func (s *Server) UserRevert(ctx context.Context, req *gitalypb.UserRevertRequest) (*gitalypb.UserRevertResponse, error)
func (*Server) UserSquash ¶
func (s *Server) UserSquash(ctx context.Context, req *gitalypb.UserSquashRequest) (*gitalypb.UserSquashResponse, error)
UserSquash collapses a range of commits identified via a start and end revision into a single commit whose single parent is the start revision.
func (*Server) UserUpdateBranch ¶
func (s *Server) UserUpdateBranch(ctx context.Context, req *gitalypb.UserUpdateBranchRequest) (*gitalypb.UserUpdateBranchResponse, error)
func (*Server) UserUpdateSubmodule ¶
func (s *Server) UserUpdateSubmodule(ctx context.Context, req *gitalypb.UserUpdateSubmoduleRequest) (*gitalypb.UserUpdateSubmoduleResponse, error)