ggs

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitService_CreateRepo_FullMethodName      = "/ggs.GitService/CreateRepo"
	GitService_GetBlob_FullMethodName         = "/ggs.GitService/GetBlob"
	GitService_StageToRepo_FullMethodName     = "/ggs.GitService/StageToRepo"
	GitService_UnstageFromRepo_FullMethodName = "/ggs.GitService/UnstageFromRepo"
	GitService_CommitToRepo_FullMethodName    = "/ggs.GitService/CommitToRepo"
	GitService_ListBranches_FullMethodName    = "/ggs.GitService/ListBranches"
	GitService_DeleteBranch_FullMethodName    = "/ggs.GitService/DeleteBranch"
	GitService_CreateBranch_FullMethodName    = "/ggs.GitService/CreateBranch"
	GitService_CheckoutBranch_FullMethodName  = "/ggs.GitService/CheckoutBranch"
	GitService_GetRepo_FullMethodName         = "/ggs.GitService/GetRepo"
	GitService_GetCommitFiles_FullMethodName  = "/ggs.GitService/GetCommitFiles"
	GitService_CloneRepo_FullMethodName       = "/ggs.GitService/CloneRepo"
)

Variables

View Source
var (
	FileMode_name = map[int32]string{
		0: "REGULAR",
		1: "EXECUTABLE",
		2: "SYMBOLIC_LINK",
		3: "DIRECTORY",
	}
	FileMode_value = map[string]int32{
		"REGULAR":       0,
		"EXECUTABLE":    1,
		"SYMBOLIC_LINK": 2,
		"DIRECTORY":     3,
	}
)

Enum value maps for FileMode.

View Source
var File_rpc_checkout_branch_proto protoreflect.FileDescriptor
View Source
var File_rpc_clone_repo_proto protoreflect.FileDescriptor
View Source
var File_rpc_commit_repo_proto protoreflect.FileDescriptor
View Source
var File_rpc_create_branch_proto protoreflect.FileDescriptor
View Source
var File_rpc_create_repo_proto protoreflect.FileDescriptor
View Source
var File_rpc_delete_branch_proto protoreflect.FileDescriptor
View Source
var File_rpc_get_blob_proto protoreflect.FileDescriptor
View Source
var File_rpc_get_commit_files_proto protoreflect.FileDescriptor
View Source
var File_rpc_get_repo_proto protoreflect.FileDescriptor
View Source
var File_rpc_list_branch_proto protoreflect.FileDescriptor
View Source
var File_rpc_stage_repo_proto protoreflect.FileDescriptor
View Source
var File_rpc_unstage_repo_proto protoreflect.FileDescriptor
View Source
var File_service_git_service_proto protoreflect.FileDescriptor
View Source
var GitService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ggs.GitService",
	HandlerType: (*GitServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRepo",
			Handler:    _GitService_CreateRepo_Handler,
		},
		{
			MethodName: "GetBlob",
			Handler:    _GitService_GetBlob_Handler,
		},
		{
			MethodName: "StageToRepo",
			Handler:    _GitService_StageToRepo_Handler,
		},
		{
			MethodName: "UnstageFromRepo",
			Handler:    _GitService_UnstageFromRepo_Handler,
		},
		{
			MethodName: "CommitToRepo",
			Handler:    _GitService_CommitToRepo_Handler,
		},
		{
			MethodName: "ListBranches",
			Handler:    _GitService_ListBranches_Handler,
		},
		{
			MethodName: "DeleteBranch",
			Handler:    _GitService_DeleteBranch_Handler,
		},
		{
			MethodName: "CreateBranch",
			Handler:    _GitService_CreateBranch_Handler,
		},
		{
			MethodName: "CheckoutBranch",
			Handler:    _GitService_CheckoutBranch_Handler,
		},
		{
			MethodName: "GetRepo",
			Handler:    _GitService_GetRepo_Handler,
		},
		{
			MethodName: "GetCommitFiles",
			Handler:    _GitService_GetCommitFiles_Handler,
		},
		{
			MethodName: "CloneRepo",
			Handler:    _GitService_CloneRepo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service_git_service.proto",
}

GitService_ServiceDesc is the grpc.ServiceDesc for GitService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGitServiceServer

func RegisterGitServiceServer(s grpc.ServiceRegistrar, srv GitServiceServer)

Types

type AppFile

type AppFile struct {
	Path     string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Content  string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Mode     int32  `protobuf:"varint,3,opt,name=mode,proto3" json:"mode,omitempty"`
	ModeTime string `protobuf:"bytes,4,opt,name=modeTime,proto3" json:"modeTime,omitempty"`
	CTime    string `protobuf:"bytes,5,opt,name=cTime,proto3" json:"cTime,omitempty"`
	// contains filtered or unexported fields
}

func (*AppFile) Descriptor deprecated

func (*AppFile) Descriptor() ([]byte, []int)

Deprecated: Use AppFile.ProtoReflect.Descriptor instead.

func (*AppFile) GetCTime

func (x *AppFile) GetCTime() string

func (*AppFile) GetContent

func (x *AppFile) GetContent() string

func (*AppFile) GetMode

func (x *AppFile) GetMode() int32

func (*AppFile) GetModeTime

func (x *AppFile) GetModeTime() string

func (*AppFile) GetPath

func (x *AppFile) GetPath() string

func (*AppFile) ProtoMessage

func (*AppFile) ProtoMessage()

func (*AppFile) ProtoReflect

func (x *AppFile) ProtoReflect() protoreflect.Message

func (*AppFile) Reset

func (x *AppFile) Reset()

func (*AppFile) String

func (x *AppFile) String() string

type Branch

type Branch struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CommitId string `protobuf:"bytes,2,opt,name=commitId,proto3" json:"commitId,omitempty"`
	// contains filtered or unexported fields
}

func (*Branch) Descriptor deprecated

func (*Branch) Descriptor() ([]byte, []int)

Deprecated: Use Branch.ProtoReflect.Descriptor instead.

func (*Branch) GetCommitId

func (x *Branch) GetCommitId() string

func (*Branch) GetName

func (x *Branch) GetName() string

func (*Branch) ProtoMessage

func (*Branch) ProtoMessage()

func (*Branch) ProtoReflect

func (x *Branch) ProtoReflect() protoreflect.Message

func (*Branch) Reset

func (x *Branch) Reset()

func (*Branch) String

func (x *Branch) String() string

type CheckoutBranchRequest

type CheckoutBranchRequest struct {
	RepoId     string `protobuf:"bytes,1,opt,name=repoId,proto3" json:"repoId,omitempty"`
	BranchName string `protobuf:"bytes,2,opt,name=branchName,proto3" json:"branchName,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutBranchRequest) Descriptor deprecated

func (*CheckoutBranchRequest) Descriptor() ([]byte, []int)

Deprecated: Use CheckoutBranchRequest.ProtoReflect.Descriptor instead.

func (*CheckoutBranchRequest) GetBranchName

func (x *CheckoutBranchRequest) GetBranchName() string

func (*CheckoutBranchRequest) GetRepoId

func (x *CheckoutBranchRequest) GetRepoId() string

func (*CheckoutBranchRequest) ProtoMessage

func (*CheckoutBranchRequest) ProtoMessage()

func (*CheckoutBranchRequest) ProtoReflect

func (x *CheckoutBranchRequest) ProtoReflect() protoreflect.Message

func (*CheckoutBranchRequest) Reset

func (x *CheckoutBranchRequest) Reset()

func (*CheckoutBranchRequest) String

func (x *CheckoutBranchRequest) String() string

type CheckoutBranchResponse

type CheckoutBranchResponse struct {
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutBranchResponse) Descriptor deprecated

func (*CheckoutBranchResponse) Descriptor() ([]byte, []int)

Deprecated: Use CheckoutBranchResponse.ProtoReflect.Descriptor instead.

func (*CheckoutBranchResponse) GetMessage

func (x *CheckoutBranchResponse) GetMessage() string

func (*CheckoutBranchResponse) ProtoMessage

func (*CheckoutBranchResponse) ProtoMessage()

func (*CheckoutBranchResponse) ProtoReflect

func (x *CheckoutBranchResponse) ProtoReflect() protoreflect.Message

func (*CheckoutBranchResponse) Reset

func (x *CheckoutBranchResponse) Reset()

func (*CheckoutBranchResponse) String

func (x *CheckoutBranchResponse) String() string

type CloneRepoRequest

type CloneRepoRequest struct {
	SourceRepoId string `protobuf:"bytes,1,opt,name=sourceRepoId,proto3" json:"sourceRepoId,omitempty"`
	// contains filtered or unexported fields
}

Message for CloneRepo request

func (*CloneRepoRequest) Descriptor deprecated

func (*CloneRepoRequest) Descriptor() ([]byte, []int)

Deprecated: Use CloneRepoRequest.ProtoReflect.Descriptor instead.

func (*CloneRepoRequest) GetSourceRepoId

func (x *CloneRepoRequest) GetSourceRepoId() string

func (*CloneRepoRequest) ProtoMessage

func (*CloneRepoRequest) ProtoMessage()

func (*CloneRepoRequest) ProtoReflect

func (x *CloneRepoRequest) ProtoReflect() protoreflect.Message

func (*CloneRepoRequest) Reset

func (x *CloneRepoRequest) Reset()

func (*CloneRepoRequest) String

func (x *CloneRepoRequest) String() string

type CloneRepoResponse

type CloneRepoResponse struct {
	Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

Message for CloneRepo response

func (*CloneRepoResponse) Descriptor deprecated

func (*CloneRepoResponse) Descriptor() ([]byte, []int)

Deprecated: Use CloneRepoResponse.ProtoReflect.Descriptor instead.

func (*CloneRepoResponse) GetRepo

func (x *CloneRepoResponse) GetRepo() *Repo

func (*CloneRepoResponse) ProtoMessage

func (*CloneRepoResponse) ProtoMessage()

func (*CloneRepoResponse) ProtoReflect

func (x *CloneRepoResponse) ProtoReflect() protoreflect.Message

func (*CloneRepoResponse) Reset

func (x *CloneRepoResponse) Reset()

func (*CloneRepoResponse) String

func (x *CloneRepoResponse) String() string

type CommitToRepoRequest

type CommitToRepoRequest struct {
	RepoId        string `protobuf:"bytes,1,opt,name=repoId,proto3" json:"repoId,omitempty"`
	CommitMessage string `protobuf:"bytes,2,opt,name=commitMessage,proto3" json:"commitMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitToRepoRequest) Descriptor deprecated

func (*CommitToRepoRequest) Descriptor() ([]byte, []int)

Deprecated: Use CommitToRepoRequest.ProtoReflect.Descriptor instead.

func (*CommitToRepoRequest) GetCommitMessage

func (x *CommitToRepoRequest) GetCommitMessage() string

func (*CommitToRepoRequest) GetRepoId

func (x *CommitToRepoRequest) GetRepoId() string

func (*CommitToRepoRequest) ProtoMessage

func (*CommitToRepoRequest) ProtoMessage()

func (*CommitToRepoRequest) ProtoReflect

func (x *CommitToRepoRequest) ProtoReflect() protoreflect.Message

func (*CommitToRepoRequest) Reset

func (x *CommitToRepoRequest) Reset()

func (*CommitToRepoRequest) String

func (x *CommitToRepoRequest) String() string

type CommitToRepoResponse

type CommitToRepoResponse struct {
	Branch       string   `protobuf:"bytes,1,opt,name=branch,proto3" json:"branch,omitempty"`
	CommitHash   string   `protobuf:"bytes,2,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
	Message      string   `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	FilesChanged int32    `protobuf:"varint,4,opt,name=filesChanged,proto3" json:"filesChanged,omitempty"`
	FilesCreated []string `protobuf:"bytes,5,rep,name=filesCreated,proto3" json:"filesCreated,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitToRepoResponse) Descriptor deprecated

func (*CommitToRepoResponse) Descriptor() ([]byte, []int)

Deprecated: Use CommitToRepoResponse.ProtoReflect.Descriptor instead.

func (*CommitToRepoResponse) GetBranch

func (x *CommitToRepoResponse) GetBranch() string

func (*CommitToRepoResponse) GetCommitHash

func (x *CommitToRepoResponse) GetCommitHash() string

func (*CommitToRepoResponse) GetFilesChanged

func (x *CommitToRepoResponse) GetFilesChanged() int32

func (*CommitToRepoResponse) GetFilesCreated

func (x *CommitToRepoResponse) GetFilesCreated() []string

func (*CommitToRepoResponse) GetMessage

func (x *CommitToRepoResponse) GetMessage() string

func (*CommitToRepoResponse) ProtoMessage

func (*CommitToRepoResponse) ProtoMessage()

func (*CommitToRepoResponse) ProtoReflect

func (x *CommitToRepoResponse) ProtoReflect() protoreflect.Message

func (*CommitToRepoResponse) Reset

func (x *CommitToRepoResponse) Reset()

func (*CommitToRepoResponse) String

func (x *CommitToRepoResponse) String() string

type CreateBranchRequest

type CreateBranchRequest struct {
	RepositoryId string `protobuf:"bytes,1,opt,name=repositoryId,proto3" json:"repositoryId,omitempty"`
	BranchName   string `protobuf:"bytes,2,opt,name=branchName,proto3" json:"branchName,omitempty"`
	CommitId     string `protobuf:"bytes,3,opt,name=commitId,proto3" json:"commitId,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBranchRequest) Descriptor deprecated

func (*CreateBranchRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateBranchRequest.ProtoReflect.Descriptor instead.

func (*CreateBranchRequest) GetBranchName

func (x *CreateBranchRequest) GetBranchName() string

func (*CreateBranchRequest) GetCommitId

func (x *CreateBranchRequest) GetCommitId() string

func (*CreateBranchRequest) GetRepositoryId

func (x *CreateBranchRequest) GetRepositoryId() string

func (*CreateBranchRequest) ProtoMessage

func (*CreateBranchRequest) ProtoMessage()

func (*CreateBranchRequest) ProtoReflect

func (x *CreateBranchRequest) ProtoReflect() protoreflect.Message

func (*CreateBranchRequest) Reset

func (x *CreateBranchRequest) Reset()

func (*CreateBranchRequest) String

func (x *CreateBranchRequest) String() string

type CreateBranchResponse

type CreateBranchResponse struct {
	BranchId string `protobuf:"bytes,1,opt,name=branchId,proto3" json:"branchId,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBranchResponse) Descriptor deprecated

func (*CreateBranchResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateBranchResponse.ProtoReflect.Descriptor instead.

func (*CreateBranchResponse) GetBranchId

func (x *CreateBranchResponse) GetBranchId() string

func (*CreateBranchResponse) ProtoMessage

func (*CreateBranchResponse) ProtoMessage()

func (*CreateBranchResponse) ProtoReflect

func (x *CreateBranchResponse) ProtoReflect() protoreflect.Message

func (*CreateBranchResponse) Reset

func (x *CreateBranchResponse) Reset()

func (*CreateBranchResponse) String

func (x *CreateBranchResponse) String() string

type CreateRepoRequest

type CreateRepoRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRepoRequest) Descriptor deprecated

func (*CreateRepoRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.

func (*CreateRepoRequest) GetDescription

func (x *CreateRepoRequest) GetDescription() string

func (*CreateRepoRequest) GetName

func (x *CreateRepoRequest) GetName() string

func (*CreateRepoRequest) ProtoMessage

func (*CreateRepoRequest) ProtoMessage()

func (*CreateRepoRequest) ProtoReflect

func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message

func (*CreateRepoRequest) Reset

func (x *CreateRepoRequest) Reset()

func (*CreateRepoRequest) String

func (x *CreateRepoRequest) String() string

type CreateRepoResponse

type CreateRepoResponse struct {
	Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRepoResponse) Descriptor deprecated

func (*CreateRepoResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateRepoResponse.ProtoReflect.Descriptor instead.

func (*CreateRepoResponse) GetRepo

func (x *CreateRepoResponse) GetRepo() *Repo

func (*CreateRepoResponse) ProtoMessage

func (*CreateRepoResponse) ProtoMessage()

func (*CreateRepoResponse) ProtoReflect

func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message

func (*CreateRepoResponse) Reset

func (x *CreateRepoResponse) Reset()

func (*CreateRepoResponse) String

func (x *CreateRepoResponse) String() string

type DeleteBranchRequest

type DeleteBranchRequest struct {
	BranchName string `protobuf:"bytes,1,opt,name=branchName,proto3" json:"branchName,omitempty"`
	RepoId     string `protobuf:"bytes,2,opt,name=repoId,proto3" json:"repoId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBranchRequest) Descriptor deprecated

func (*DeleteBranchRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBranchRequest.ProtoReflect.Descriptor instead.

func (*DeleteBranchRequest) GetBranchName

func (x *DeleteBranchRequest) GetBranchName() string

func (*DeleteBranchRequest) GetRepoId

func (x *DeleteBranchRequest) GetRepoId() string

func (*DeleteBranchRequest) ProtoMessage

func (*DeleteBranchRequest) ProtoMessage()

func (*DeleteBranchRequest) ProtoReflect

func (x *DeleteBranchRequest) ProtoReflect() protoreflect.Message

func (*DeleteBranchRequest) Reset

func (x *DeleteBranchRequest) Reset()

func (*DeleteBranchRequest) String

func (x *DeleteBranchRequest) String() string

type DeleteBranchResponse

type DeleteBranchResponse struct {
	BranchId string `protobuf:"bytes,1,opt,name=branchId,proto3" json:"branchId,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBranchResponse) Descriptor deprecated

func (*DeleteBranchResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBranchResponse.ProtoReflect.Descriptor instead.

func (*DeleteBranchResponse) GetBranchId

func (x *DeleteBranchResponse) GetBranchId() string

func (*DeleteBranchResponse) ProtoMessage

func (*DeleteBranchResponse) ProtoMessage()

func (*DeleteBranchResponse) ProtoReflect

func (x *DeleteBranchResponse) ProtoReflect() protoreflect.Message

func (*DeleteBranchResponse) Reset

func (x *DeleteBranchResponse) Reset()

func (*DeleteBranchResponse) String

func (x *DeleteBranchResponse) String() string

type EntryInfo

type EntryInfo struct {
	ModTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=mod_time,json=modTime,proto3" json:"mod_time,omitempty"`
	Ctime   *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Size    int32                  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` // Assuming size fits within int32
	// contains filtered or unexported fields
}

func (*EntryInfo) Descriptor deprecated

func (*EntryInfo) Descriptor() ([]byte, []int)

Deprecated: Use EntryInfo.ProtoReflect.Descriptor instead.

func (*EntryInfo) GetCtime

func (x *EntryInfo) GetCtime() *timestamppb.Timestamp

func (*EntryInfo) GetModTime

func (x *EntryInfo) GetModTime() *timestamppb.Timestamp

func (*EntryInfo) GetSize

func (x *EntryInfo) GetSize() int32

func (*EntryInfo) ProtoMessage

func (*EntryInfo) ProtoMessage()

func (*EntryInfo) ProtoReflect

func (x *EntryInfo) ProtoReflect() protoreflect.Message

func (*EntryInfo) Reset

func (x *EntryInfo) Reset()

func (*EntryInfo) String

func (x *EntryInfo) String() string

type File

type File struct {
	Path     string                 `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Content  string                 `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	Mode     FileMode               `protobuf:"varint,3,opt,name=mode,proto3,enum=ggs.FileMode" json:"mode,omitempty"`
	ModeTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=mode_time,json=modeTime,proto3" json:"mode_time,omitempty"`
	CTime    *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=c_time,json=cTime,proto3" json:"c_time,omitempty"`
	// contains filtered or unexported fields
}

func (*File) Descriptor deprecated

func (*File) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetCTime

func (x *File) GetCTime() *timestamppb.Timestamp

func (*File) GetContent

func (x *File) GetContent() string

func (*File) GetMode

func (x *File) GetMode() FileMode

func (*File) GetModeTime

func (x *File) GetModeTime() *timestamppb.Timestamp

func (*File) GetPath

func (x *File) GetPath() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

type FileMode

type FileMode int32
const (
	FileMode_REGULAR       FileMode = 0
	FileMode_EXECUTABLE    FileMode = 1
	FileMode_SYMBOLIC_LINK FileMode = 2
	FileMode_DIRECTORY     FileMode = 3
)

func (FileMode) Descriptor

func (FileMode) Descriptor() protoreflect.EnumDescriptor

func (FileMode) Enum

func (x FileMode) Enum() *FileMode

func (FileMode) EnumDescriptor deprecated

func (FileMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileMode.Descriptor instead.

func (FileMode) Number

func (x FileMode) Number() protoreflect.EnumNumber

func (FileMode) String

func (x FileMode) String() string

func (FileMode) Type

type GetBlobRequest

type GetBlobRequest struct {
	Sha1 string `protobuf:"bytes,1,opt,name=sha1,proto3" json:"sha1,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlobRequest) Descriptor deprecated

func (*GetBlobRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBlobRequest.ProtoReflect.Descriptor instead.

func (*GetBlobRequest) GetSha1

func (x *GetBlobRequest) GetSha1() string

func (*GetBlobRequest) ProtoMessage

func (*GetBlobRequest) ProtoMessage()

func (*GetBlobRequest) ProtoReflect

func (x *GetBlobRequest) ProtoReflect() protoreflect.Message

func (*GetBlobRequest) Reset

func (x *GetBlobRequest) Reset()

func (*GetBlobRequest) String

func (x *GetBlobRequest) String() string

type GetBlobResponse

type GetBlobResponse struct {
	Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlobResponse) Descriptor deprecated

func (*GetBlobResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetBlobResponse.ProtoReflect.Descriptor instead.

func (*GetBlobResponse) GetContent

func (x *GetBlobResponse) GetContent() string

func (*GetBlobResponse) ProtoMessage

func (*GetBlobResponse) ProtoMessage()

func (*GetBlobResponse) ProtoReflect

func (x *GetBlobResponse) ProtoReflect() protoreflect.Message

func (*GetBlobResponse) Reset

func (x *GetBlobResponse) Reset()

func (*GetBlobResponse) String

func (x *GetBlobResponse) String() string

type GetCommitFilesRequest

type GetCommitFilesRequest struct {
	CommitId string `protobuf:"bytes,1,opt,name=commitId,proto3" json:"commitId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommitFilesRequest) Descriptor deprecated

func (*GetCommitFilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCommitFilesRequest.ProtoReflect.Descriptor instead.

func (*GetCommitFilesRequest) GetCommitId

func (x *GetCommitFilesRequest) GetCommitId() string

func (*GetCommitFilesRequest) ProtoMessage

func (*GetCommitFilesRequest) ProtoMessage()

func (*GetCommitFilesRequest) ProtoReflect

func (x *GetCommitFilesRequest) ProtoReflect() protoreflect.Message

func (*GetCommitFilesRequest) Reset

func (x *GetCommitFilesRequest) Reset()

func (*GetCommitFilesRequest) String

func (x *GetCommitFilesRequest) String() string

type GetCommitFilesResponse

type GetCommitFilesResponse struct {
	Files []*AppFile `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*GetCommitFilesResponse) Descriptor deprecated

func (*GetCommitFilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCommitFilesResponse.ProtoReflect.Descriptor instead.

func (*GetCommitFilesResponse) GetFiles

func (x *GetCommitFilesResponse) GetFiles() []*AppFile

func (*GetCommitFilesResponse) ProtoMessage

func (*GetCommitFilesResponse) ProtoMessage()

func (*GetCommitFilesResponse) ProtoReflect

func (x *GetCommitFilesResponse) ProtoReflect() protoreflect.Message

func (*GetCommitFilesResponse) Reset

func (x *GetCommitFilesResponse) Reset()

func (*GetCommitFilesResponse) String

func (x *GetCommitFilesResponse) String() string

type GetRepoRequest

type GetRepoRequest struct {
	RepoId string `protobuf:"bytes,1,opt,name=repoId,proto3" json:"repoId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRepoRequest) Descriptor deprecated

func (*GetRepoRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetRepoRequest.ProtoReflect.Descriptor instead.

func (*GetRepoRequest) GetRepoId

func (x *GetRepoRequest) GetRepoId() string

func (*GetRepoRequest) ProtoMessage

func (*GetRepoRequest) ProtoMessage()

func (*GetRepoRequest) ProtoReflect

func (x *GetRepoRequest) ProtoReflect() protoreflect.Message

func (*GetRepoRequest) Reset

func (x *GetRepoRequest) Reset()

func (*GetRepoRequest) String

func (x *GetRepoRequest) String() string

type GetRepoResponse

type GetRepoResponse struct {
	Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRepoResponse) Descriptor deprecated

func (*GetRepoResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetRepoResponse.ProtoReflect.Descriptor instead.

func (*GetRepoResponse) GetRepo

func (x *GetRepoResponse) GetRepo() *Repo

func (*GetRepoResponse) ProtoMessage

func (*GetRepoResponse) ProtoMessage()

func (*GetRepoResponse) ProtoReflect

func (x *GetRepoResponse) ProtoReflect() protoreflect.Message

func (*GetRepoResponse) Reset

func (x *GetRepoResponse) Reset()

func (*GetRepoResponse) String

func (x *GetRepoResponse) String() string

type GitServiceClient

GitServiceClient is the client API for GitService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewGitServiceClient

func NewGitServiceClient(cc grpc.ClientConnInterface) GitServiceClient

type GitServiceServer

GitServiceServer is the server API for GitService service. All implementations should embed UnimplementedGitServiceServer for forward compatibility

type Index

type Index struct {
	Entries []*IndexEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*Index) Descriptor deprecated

func (*Index) Descriptor() ([]byte, []int)

Deprecated: Use Index.ProtoReflect.Descriptor instead.

func (*Index) GetEntries

func (x *Index) GetEntries() []*IndexEntry

func (*Index) ProtoMessage

func (*Index) ProtoMessage()

func (*Index) ProtoReflect

func (x *Index) ProtoReflect() protoreflect.Message

func (*Index) Reset

func (x *Index) Reset()

func (*Index) String

func (x *Index) String() string

type IndexEntry

type IndexEntry struct {
	Path  string     `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Mode  FileMode   `protobuf:"varint,2,opt,name=mode,proto3,enum=ggs.FileMode" json:"mode,omitempty"`
	Sha1  string     `protobuf:"bytes,3,opt,name=sha1,proto3" json:"sha1,omitempty"`
	Stage int32      `protobuf:"varint,4,opt,name=stage,proto3" json:"stage,omitempty"`
	Info  *EntryInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexEntry) Descriptor deprecated

func (*IndexEntry) Descriptor() ([]byte, []int)

Deprecated: Use IndexEntry.ProtoReflect.Descriptor instead.

func (*IndexEntry) GetInfo

func (x *IndexEntry) GetInfo() *EntryInfo

func (*IndexEntry) GetMode

func (x *IndexEntry) GetMode() FileMode

func (*IndexEntry) GetPath

func (x *IndexEntry) GetPath() string

func (*IndexEntry) GetSha1

func (x *IndexEntry) GetSha1() string

func (*IndexEntry) GetStage

func (x *IndexEntry) GetStage() int32

func (*IndexEntry) ProtoMessage

func (*IndexEntry) ProtoMessage()

func (*IndexEntry) ProtoReflect

func (x *IndexEntry) ProtoReflect() protoreflect.Message

func (*IndexEntry) Reset

func (x *IndexEntry) Reset()

func (*IndexEntry) String

func (x *IndexEntry) String() string

type ListBranchesRequest

type ListBranchesRequest struct {
	RepoId string `protobuf:"bytes,1,opt,name=repoId,proto3" json:"repoId,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBranchesRequest) Descriptor deprecated

func (*ListBranchesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListBranchesRequest.ProtoReflect.Descriptor instead.

func (*ListBranchesRequest) GetRepoId

func (x *ListBranchesRequest) GetRepoId() string

func (*ListBranchesRequest) ProtoMessage

func (*ListBranchesRequest) ProtoMessage()

func (*ListBranchesRequest) ProtoReflect

func (x *ListBranchesRequest) ProtoReflect() protoreflect.Message

func (*ListBranchesRequest) Reset

func (x *ListBranchesRequest) Reset()

func (*ListBranchesRequest) String

func (x *ListBranchesRequest) String() string

type ListBranchesResponse

type ListBranchesResponse struct {
	Branches []*Branch `protobuf:"bytes,1,rep,name=branches,proto3" json:"branches,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBranchesResponse) Descriptor deprecated

func (*ListBranchesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListBranchesResponse.ProtoReflect.Descriptor instead.

func (*ListBranchesResponse) GetBranches

func (x *ListBranchesResponse) GetBranches() []*Branch

func (*ListBranchesResponse) ProtoMessage

func (*ListBranchesResponse) ProtoMessage()

func (*ListBranchesResponse) ProtoReflect

func (x *ListBranchesResponse) ProtoReflect() protoreflect.Message

func (*ListBranchesResponse) Reset

func (x *ListBranchesResponse) Reset()

func (*ListBranchesResponse) String

func (x *ListBranchesResponse) String() string

type Ref

type Ref struct {
	Heads []*Branch `protobuf:"bytes,1,rep,name=heads,proto3" json:"heads,omitempty"`
	Tags  []*Tag    `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*Ref) Descriptor deprecated

func (*Ref) Descriptor() ([]byte, []int)

Deprecated: Use Ref.ProtoReflect.Descriptor instead.

func (*Ref) GetHeads

func (x *Ref) GetHeads() []*Branch

func (*Ref) GetTags

func (x *Ref) GetTags() []*Tag

func (*Ref) ProtoMessage

func (*Ref) ProtoMessage()

func (*Ref) ProtoReflect

func (x *Ref) ProtoReflect() protoreflect.Message

func (*Ref) Reset

func (x *Ref) Reset()

func (*Ref) String

func (x *Ref) String() string

type Repo

type Repo struct {
	Id          string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId      string  `protobuf:"bytes,2,opt,name=userId,proto3" json:"userId,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string  `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Refs        *Ref    `protobuf:"bytes,5,opt,name=refs,proto3" json:"refs,omitempty"`
	Head        *Branch `protobuf:"bytes,6,opt,name=head,proto3" json:"head,omitempty"`
	Index       *Index  `protobuf:"bytes,7,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*Repo) Descriptor deprecated

func (*Repo) Descriptor() ([]byte, []int)

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetDescription

func (x *Repo) GetDescription() string

func (*Repo) GetHead

func (x *Repo) GetHead() *Branch

func (*Repo) GetId

func (x *Repo) GetId() string

func (*Repo) GetIndex

func (x *Repo) GetIndex() *Index

func (*Repo) GetName

func (x *Repo) GetName() string

func (*Repo) GetRefs

func (x *Repo) GetRefs() *Ref

func (*Repo) GetUserId

func (x *Repo) GetUserId() string

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

func (x *Repo) ProtoReflect() protoreflect.Message

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

type StageToRepoRequest

type StageToRepoRequest struct {
	RepoId string     `protobuf:"bytes,1,opt,name=repoId,proto3" json:"repoId,omitempty"`
	Files  []*AppFile `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"`
	// contains filtered or unexported fields
}

func (*StageToRepoRequest) Descriptor deprecated

func (*StageToRepoRequest) Descriptor() ([]byte, []int)

Deprecated: Use StageToRepoRequest.ProtoReflect.Descriptor instead.

func (*StageToRepoRequest) GetFiles

func (x *StageToRepoRequest) GetFiles() []*AppFile

func (*StageToRepoRequest) GetRepoId

func (x *StageToRepoRequest) GetRepoId() string

func (*StageToRepoRequest) ProtoMessage

func (*StageToRepoRequest) ProtoMessage()

func (*StageToRepoRequest) ProtoReflect

func (x *StageToRepoRequest) ProtoReflect() protoreflect.Message

func (*StageToRepoRequest) Reset

func (x *StageToRepoRequest) Reset()

func (*StageToRepoRequest) String

func (x *StageToRepoRequest) String() string

type StageToRepoResponse

type StageToRepoResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*StageToRepoResponse) Descriptor deprecated

func (*StageToRepoResponse) Descriptor() ([]byte, []int)

Deprecated: Use StageToRepoResponse.ProtoReflect.Descriptor instead.

func (*StageToRepoResponse) GetMessage

func (x *StageToRepoResponse) GetMessage() string

func (*StageToRepoResponse) ProtoMessage

func (*StageToRepoResponse) ProtoMessage()

func (*StageToRepoResponse) ProtoReflect

func (x *StageToRepoResponse) ProtoReflect() protoreflect.Message

func (*StageToRepoResponse) Reset

func (x *StageToRepoResponse) Reset()

func (*StageToRepoResponse) String

func (x *StageToRepoResponse) String() string

type Tag

type Tag struct {
	Name     string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CommitId string `protobuf:"bytes,2,opt,name=commitId,proto3" json:"commitId,omitempty"`
	// contains filtered or unexported fields
}

func (*Tag) Descriptor deprecated

func (*Tag) Descriptor() ([]byte, []int)

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetCommitId

func (x *Tag) GetCommitId() string

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

func (x *Tag) ProtoReflect() protoreflect.Message

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

type UnimplementedGitServiceServer

type UnimplementedGitServiceServer struct {
}

UnimplementedGitServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedGitServiceServer) CheckoutBranch

func (UnimplementedGitServiceServer) CloneRepo

func (UnimplementedGitServiceServer) CommitToRepo

func (UnimplementedGitServiceServer) CreateBranch

func (UnimplementedGitServiceServer) CreateRepo

func (UnimplementedGitServiceServer) DeleteBranch

func (UnimplementedGitServiceServer) GetBlob

func (UnimplementedGitServiceServer) GetCommitFiles

func (UnimplementedGitServiceServer) GetRepo

func (UnimplementedGitServiceServer) ListBranches

func (UnimplementedGitServiceServer) StageToRepo

func (UnimplementedGitServiceServer) UnstageFromRepo

type UnsafeGitServiceServer

type UnsafeGitServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeGitServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GitServiceServer will result in compilation errors.

type UnstageFromRepoRequest

type UnstageFromRepoRequest struct {
	RepoId   string   `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	FilePath []string `protobuf:"bytes,2,rep,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	// contains filtered or unexported fields
}

func (*UnstageFromRepoRequest) Descriptor deprecated

func (*UnstageFromRepoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnstageFromRepoRequest.ProtoReflect.Descriptor instead.

func (*UnstageFromRepoRequest) GetFilePath

func (x *UnstageFromRepoRequest) GetFilePath() []string

func (*UnstageFromRepoRequest) GetRepoId

func (x *UnstageFromRepoRequest) GetRepoId() string

func (*UnstageFromRepoRequest) ProtoMessage

func (*UnstageFromRepoRequest) ProtoMessage()

func (*UnstageFromRepoRequest) ProtoReflect

func (x *UnstageFromRepoRequest) ProtoReflect() protoreflect.Message

func (*UnstageFromRepoRequest) Reset

func (x *UnstageFromRepoRequest) Reset()

func (*UnstageFromRepoRequest) String

func (x *UnstageFromRepoRequest) String() string

type UnstageFromRepoResponse

type UnstageFromRepoResponse struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UnstageFromRepoResponse) Descriptor deprecated

func (*UnstageFromRepoResponse) Descriptor() ([]byte, []int)

Deprecated: Use UnstageFromRepoResponse.ProtoReflect.Descriptor instead.

func (*UnstageFromRepoResponse) GetMessage

func (x *UnstageFromRepoResponse) GetMessage() string

func (*UnstageFromRepoResponse) ProtoMessage

func (*UnstageFromRepoResponse) ProtoMessage()

func (*UnstageFromRepoResponse) ProtoReflect

func (x *UnstageFromRepoResponse) ProtoReflect() protoreflect.Message

func (*UnstageFromRepoResponse) Reset

func (x *UnstageFromRepoResponse) Reset()

func (*UnstageFromRepoResponse) String

func (x *UnstageFromRepoResponse) String() string

Jump to

Keyboard shortcuts

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