operations

package
v16.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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(deps *service.Dependencies) *Server

NewServer creates a new instance of a grpc OperationServiceServer

func (*Server) UserApplyPatch

func (s *Server) UserApplyPatch(stream gitalypb.OperationService_UserApplyPatchServer) error

UserApplyPatch applies patches to a given branch.

func (*Server) UserCherryPick

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

UserCreateBranch creates a single branch in the context of a specific user. It executes hooks and contacts Rails to verify that the user is allowed to create the branch.

func (*Server) UserCreateTag

func (*Server) UserDeleteBranch

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

UserDeleteTag deletes an existing tag.

func (*Server) UserFFBranch

UserFFBranch tries to perform a fast-forward merge of a given commit into the given branch.

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

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

UserRebaseConfirmable rebases the given remote branch to the target branch.

func (*Server) UserRebaseToRef added in v16.2.0

UserRebaseToRef overwrites the given TargetRef with the result of rebasing SourceSHA on top of FirstParentRef, and returns the SHA of the HEAD of TargetRef.

func (*Server) UserRevert

func (*Server) UserSquash

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

UserUpdateBranch updates a branch to point to a new revision. It executes hooks and contacts Rails to verify that the user is allowed to update the branch.

func (*Server) UserUpdateSubmodule

UserUpdateSubmodule updates a submodule to point to a new commit.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL