git

package
v4.25.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package git is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Git_EnableProject_FullMethodName  = "/git.Git/EnableProject"
	Git_DisableProject_FullMethodName = "/git.Git/DisableProject"
	Git_All_FullMethodName            = "/git.Git/All"
	Git_ProjectOptions_FullMethodName = "/git.Git/ProjectOptions"
	Git_BranchOptions_FullMethodName  = "/git.Git/BranchOptions"
	Git_CommitOptions_FullMethodName  = "/git.Git/CommitOptions"
	Git_Commit_FullMethodName         = "/git.Git/Commit"
	Git_PipelineInfo_FullMethodName   = "/git.Git/PipelineInfo"
	Git_MarsConfigFile_FullMethodName = "/git.Git/MarsConfigFile"
)

Variables

View Source
var File_git_git_proto protoreflect.FileDescriptor
View Source
var Git_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "git.Git",
	HandlerType: (*GitServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "EnableProject",
			Handler:    _Git_EnableProject_Handler,
		},
		{
			MethodName: "DisableProject",
			Handler:    _Git_DisableProject_Handler,
		},
		{
			MethodName: "All",
			Handler:    _Git_All_Handler,
		},
		{
			MethodName: "ProjectOptions",
			Handler:    _Git_ProjectOptions_Handler,
		},
		{
			MethodName: "BranchOptions",
			Handler:    _Git_BranchOptions_Handler,
		},
		{
			MethodName: "CommitOptions",
			Handler:    _Git_CommitOptions_Handler,
		},
		{
			MethodName: "Commit",
			Handler:    _Git_Commit_Handler,
		},
		{
			MethodName: "PipelineInfo",
			Handler:    _Git_PipelineInfo_Handler,
		},
		{
			MethodName: "MarsConfigFile",
			Handler:    _Git_MarsConfigFile_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "git/git.proto",
}

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

Functions

func RegisterGitHandler

func RegisterGitHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterGitHandler registers the http handlers for service Git to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterGitHandlerClient

func RegisterGitHandlerClient(ctx context.Context, mux *runtime.ServeMux, client GitClient) error

RegisterGitHandlerClient registers the http handlers for service Git to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "GitClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "GitClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "GitClient" to call the correct interceptors.

func RegisterGitHandlerFromEndpoint

func RegisterGitHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterGitHandlerFromEndpoint is same as RegisterGitHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterGitHandlerServer

func RegisterGitHandlerServer(ctx context.Context, mux *runtime.ServeMux, server GitServer) error

RegisterGitHandlerServer registers the http handlers for service Git to "mux". UnaryRPC :call GitServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterGitHandlerFromEndpoint instead.

func RegisterGitServer

func RegisterGitServer(s grpc.ServiceRegistrar, srv GitServer)

Types

type AllRequest

type AllRequest struct {
	// contains filtered or unexported fields
}

func (*AllRequest) Descriptor deprecated

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

Deprecated: Use AllRequest.ProtoReflect.Descriptor instead.

func (*AllRequest) ProtoMessage

func (*AllRequest) ProtoMessage()

func (*AllRequest) ProtoReflect

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

func (*AllRequest) Reset

func (x *AllRequest) Reset()

func (*AllRequest) String

func (x *AllRequest) String() string

func (*AllRequest) Validate

func (m *AllRequest) Validate() error

Validate checks the field values on AllRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AllRequest) ValidateAll

func (m *AllRequest) ValidateAll() error

ValidateAll checks the field values on AllRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllRequestMultiError, or nil if none found.

type AllRequestMultiError

type AllRequestMultiError []error

AllRequestMultiError is an error wrapping multiple validation errors returned by AllRequest.ValidateAll() if the designated constraints aren't met.

func (AllRequestMultiError) AllErrors

func (m AllRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllRequestMultiError) Error

func (m AllRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AllRequestValidationError

type AllRequestValidationError struct {
	// contains filtered or unexported fields
}

AllRequestValidationError is the validation error returned by AllRequest.Validate if the designated constraints aren't met.

func (AllRequestValidationError) Cause

func (e AllRequestValidationError) Cause() error

Cause function returns cause value.

func (AllRequestValidationError) Error

Error satisfies the builtin error interface

func (AllRequestValidationError) ErrorName

func (e AllRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AllRequestValidationError) Field

Field function returns field value.

func (AllRequestValidationError) Key

Key function returns key value.

func (AllRequestValidationError) Reason

func (e AllRequestValidationError) Reason() string

Reason function returns reason value.

type AllResponse

type AllResponse struct {
	Items []*ProjectItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AllResponse) Descriptor deprecated

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

Deprecated: Use AllResponse.ProtoReflect.Descriptor instead.

func (*AllResponse) GetItems

func (x *AllResponse) GetItems() []*ProjectItem

func (*AllResponse) ProtoMessage

func (*AllResponse) ProtoMessage()

func (*AllResponse) ProtoReflect

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

func (*AllResponse) Reset

func (x *AllResponse) Reset()

func (*AllResponse) String

func (x *AllResponse) String() string

func (*AllResponse) Validate

func (m *AllResponse) Validate() error

Validate checks the field values on AllResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AllResponse) ValidateAll

func (m *AllResponse) ValidateAll() error

ValidateAll checks the field values on AllResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllResponseMultiError, or nil if none found.

type AllResponseMultiError

type AllResponseMultiError []error

AllResponseMultiError is an error wrapping multiple validation errors returned by AllResponse.ValidateAll() if the designated constraints aren't met.

func (AllResponseMultiError) AllErrors

func (m AllResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllResponseMultiError) Error

func (m AllResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AllResponseValidationError

type AllResponseValidationError struct {
	// contains filtered or unexported fields
}

AllResponseValidationError is the validation error returned by AllResponse.Validate if the designated constraints aren't met.

func (AllResponseValidationError) Cause

Cause function returns cause value.

func (AllResponseValidationError) Error

Error satisfies the builtin error interface

func (AllResponseValidationError) ErrorName

func (e AllResponseValidationError) ErrorName() string

ErrorName returns error name.

func (AllResponseValidationError) Field

Field function returns field value.

func (AllResponseValidationError) Key

Key function returns key value.

func (AllResponseValidationError) Reason

Reason function returns reason value.

type BranchOptionsRequest

type BranchOptionsRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	All          bool   `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
	// contains filtered or unexported fields
}

func (*BranchOptionsRequest) Descriptor deprecated

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

Deprecated: Use BranchOptionsRequest.ProtoReflect.Descriptor instead.

func (*BranchOptionsRequest) GetAll

func (x *BranchOptionsRequest) GetAll() bool

func (*BranchOptionsRequest) GetGitProjectId

func (x *BranchOptionsRequest) GetGitProjectId() string

func (*BranchOptionsRequest) ProtoMessage

func (*BranchOptionsRequest) ProtoMessage()

func (*BranchOptionsRequest) ProtoReflect

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

func (*BranchOptionsRequest) Reset

func (x *BranchOptionsRequest) Reset()

func (*BranchOptionsRequest) String

func (x *BranchOptionsRequest) String() string

func (*BranchOptionsRequest) Validate

func (m *BranchOptionsRequest) Validate() error

Validate checks the field values on BranchOptionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BranchOptionsRequest) ValidateAll

func (m *BranchOptionsRequest) ValidateAll() error

ValidateAll checks the field values on BranchOptionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BranchOptionsRequestMultiError, or nil if none found.

type BranchOptionsRequestMultiError

type BranchOptionsRequestMultiError []error

BranchOptionsRequestMultiError is an error wrapping multiple validation errors returned by BranchOptionsRequest.ValidateAll() if the designated constraints aren't met.

func (BranchOptionsRequestMultiError) AllErrors

func (m BranchOptionsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BranchOptionsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BranchOptionsRequestValidationError

type BranchOptionsRequestValidationError struct {
	// contains filtered or unexported fields
}

BranchOptionsRequestValidationError is the validation error returned by BranchOptionsRequest.Validate if the designated constraints aren't met.

func (BranchOptionsRequestValidationError) Cause

Cause function returns cause value.

func (BranchOptionsRequestValidationError) Error

Error satisfies the builtin error interface

func (BranchOptionsRequestValidationError) ErrorName

ErrorName returns error name.

func (BranchOptionsRequestValidationError) Field

Field function returns field value.

func (BranchOptionsRequestValidationError) Key

Key function returns key value.

func (BranchOptionsRequestValidationError) Reason

Reason function returns reason value.

type BranchOptionsResponse

type BranchOptionsResponse struct {
	Items []*Option `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*BranchOptionsResponse) Descriptor deprecated

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

Deprecated: Use BranchOptionsResponse.ProtoReflect.Descriptor instead.

func (*BranchOptionsResponse) GetItems

func (x *BranchOptionsResponse) GetItems() []*Option

func (*BranchOptionsResponse) ProtoMessage

func (*BranchOptionsResponse) ProtoMessage()

func (*BranchOptionsResponse) ProtoReflect

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

func (*BranchOptionsResponse) Reset

func (x *BranchOptionsResponse) Reset()

func (*BranchOptionsResponse) String

func (x *BranchOptionsResponse) String() string

func (*BranchOptionsResponse) Validate

func (m *BranchOptionsResponse) Validate() error

Validate checks the field values on BranchOptionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*BranchOptionsResponse) ValidateAll

func (m *BranchOptionsResponse) ValidateAll() error

ValidateAll checks the field values on BranchOptionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BranchOptionsResponseMultiError, or nil if none found.

type BranchOptionsResponseMultiError

type BranchOptionsResponseMultiError []error

BranchOptionsResponseMultiError is an error wrapping multiple validation errors returned by BranchOptionsResponse.ValidateAll() if the designated constraints aren't met.

func (BranchOptionsResponseMultiError) AllErrors

func (m BranchOptionsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BranchOptionsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type BranchOptionsResponseValidationError

type BranchOptionsResponseValidationError struct {
	// contains filtered or unexported fields
}

BranchOptionsResponseValidationError is the validation error returned by BranchOptionsResponse.Validate if the designated constraints aren't met.

func (BranchOptionsResponseValidationError) Cause

Cause function returns cause value.

func (BranchOptionsResponseValidationError) Error

Error satisfies the builtin error interface

func (BranchOptionsResponseValidationError) ErrorName

ErrorName returns error name.

func (BranchOptionsResponseValidationError) Field

Field function returns field value.

func (BranchOptionsResponseValidationError) Key

Key function returns key value.

func (BranchOptionsResponseValidationError) Reason

Reason function returns reason value.

type CommitOptionsRequest

type CommitOptionsRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitOptionsRequest) Descriptor deprecated

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

Deprecated: Use CommitOptionsRequest.ProtoReflect.Descriptor instead.

func (*CommitOptionsRequest) GetBranch

func (x *CommitOptionsRequest) GetBranch() string

func (*CommitOptionsRequest) GetGitProjectId

func (x *CommitOptionsRequest) GetGitProjectId() string

func (*CommitOptionsRequest) ProtoMessage

func (*CommitOptionsRequest) ProtoMessage()

func (*CommitOptionsRequest) ProtoReflect

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

func (*CommitOptionsRequest) Reset

func (x *CommitOptionsRequest) Reset()

func (*CommitOptionsRequest) String

func (x *CommitOptionsRequest) String() string

func (*CommitOptionsRequest) Validate

func (m *CommitOptionsRequest) Validate() error

Validate checks the field values on CommitOptionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CommitOptionsRequest) ValidateAll

func (m *CommitOptionsRequest) ValidateAll() error

ValidateAll checks the field values on CommitOptionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CommitOptionsRequestMultiError, or nil if none found.

type CommitOptionsRequestMultiError

type CommitOptionsRequestMultiError []error

CommitOptionsRequestMultiError is an error wrapping multiple validation errors returned by CommitOptionsRequest.ValidateAll() if the designated constraints aren't met.

func (CommitOptionsRequestMultiError) AllErrors

func (m CommitOptionsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CommitOptionsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CommitOptionsRequestValidationError

type CommitOptionsRequestValidationError struct {
	// contains filtered or unexported fields
}

CommitOptionsRequestValidationError is the validation error returned by CommitOptionsRequest.Validate if the designated constraints aren't met.

func (CommitOptionsRequestValidationError) Cause

Cause function returns cause value.

func (CommitOptionsRequestValidationError) Error

Error satisfies the builtin error interface

func (CommitOptionsRequestValidationError) ErrorName

ErrorName returns error name.

func (CommitOptionsRequestValidationError) Field

Field function returns field value.

func (CommitOptionsRequestValidationError) Key

Key function returns key value.

func (CommitOptionsRequestValidationError) Reason

Reason function returns reason value.

type CommitOptionsResponse

type CommitOptionsResponse struct {
	Items []*Option `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitOptionsResponse) Descriptor deprecated

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

Deprecated: Use CommitOptionsResponse.ProtoReflect.Descriptor instead.

func (*CommitOptionsResponse) GetItems

func (x *CommitOptionsResponse) GetItems() []*Option

func (*CommitOptionsResponse) ProtoMessage

func (*CommitOptionsResponse) ProtoMessage()

func (*CommitOptionsResponse) ProtoReflect

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

func (*CommitOptionsResponse) Reset

func (x *CommitOptionsResponse) Reset()

func (*CommitOptionsResponse) String

func (x *CommitOptionsResponse) String() string

func (*CommitOptionsResponse) Validate

func (m *CommitOptionsResponse) Validate() error

Validate checks the field values on CommitOptionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CommitOptionsResponse) ValidateAll

func (m *CommitOptionsResponse) ValidateAll() error

ValidateAll checks the field values on CommitOptionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CommitOptionsResponseMultiError, or nil if none found.

type CommitOptionsResponseMultiError

type CommitOptionsResponseMultiError []error

CommitOptionsResponseMultiError is an error wrapping multiple validation errors returned by CommitOptionsResponse.ValidateAll() if the designated constraints aren't met.

func (CommitOptionsResponseMultiError) AllErrors

func (m CommitOptionsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CommitOptionsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CommitOptionsResponseValidationError

type CommitOptionsResponseValidationError struct {
	// contains filtered or unexported fields
}

CommitOptionsResponseValidationError is the validation error returned by CommitOptionsResponse.Validate if the designated constraints aren't met.

func (CommitOptionsResponseValidationError) Cause

Cause function returns cause value.

func (CommitOptionsResponseValidationError) Error

Error satisfies the builtin error interface

func (CommitOptionsResponseValidationError) ErrorName

ErrorName returns error name.

func (CommitOptionsResponseValidationError) Field

Field function returns field value.

func (CommitOptionsResponseValidationError) Key

Key function returns key value.

func (CommitOptionsResponseValidationError) Reason

Reason function returns reason value.

type CommitRequest

type CommitRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	Commit       string `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitRequest) Descriptor deprecated

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

Deprecated: Use CommitRequest.ProtoReflect.Descriptor instead.

func (*CommitRequest) GetBranch

func (x *CommitRequest) GetBranch() string

func (*CommitRequest) GetCommit

func (x *CommitRequest) GetCommit() string

func (*CommitRequest) GetGitProjectId

func (x *CommitRequest) GetGitProjectId() string

func (*CommitRequest) ProtoMessage

func (*CommitRequest) ProtoMessage()

func (*CommitRequest) ProtoReflect

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

func (*CommitRequest) Reset

func (x *CommitRequest) Reset()

func (*CommitRequest) String

func (x *CommitRequest) String() string

func (*CommitRequest) Validate

func (m *CommitRequest) Validate() error

Validate checks the field values on CommitRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CommitRequest) ValidateAll

func (m *CommitRequest) ValidateAll() error

ValidateAll checks the field values on CommitRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CommitRequestMultiError, or nil if none found.

type CommitRequestMultiError

type CommitRequestMultiError []error

CommitRequestMultiError is an error wrapping multiple validation errors returned by CommitRequest.ValidateAll() if the designated constraints aren't met.

func (CommitRequestMultiError) AllErrors

func (m CommitRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CommitRequestMultiError) Error

func (m CommitRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CommitRequestValidationError

type CommitRequestValidationError struct {
	// contains filtered or unexported fields
}

CommitRequestValidationError is the validation error returned by CommitRequest.Validate if the designated constraints aren't met.

func (CommitRequestValidationError) Cause

Cause function returns cause value.

func (CommitRequestValidationError) Error

Error satisfies the builtin error interface

func (CommitRequestValidationError) ErrorName

func (e CommitRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CommitRequestValidationError) Field

Field function returns field value.

func (CommitRequestValidationError) Key

Key function returns key value.

func (CommitRequestValidationError) Reason

Reason function returns reason value.

type CommitResponse

type CommitResponse struct {
	Id             string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ShortId        string `protobuf:"bytes,2,opt,name=short_id,json=shortId,proto3" json:"short_id,omitempty"`
	GitProjectId   string `protobuf:"bytes,3,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Label          string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	Title          string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Branch         string `protobuf:"bytes,6,opt,name=branch,proto3" json:"branch,omitempty"`
	AuthorName     string `protobuf:"bytes,7,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`
	AuthorEmail    string `protobuf:"bytes,8,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
	CommitterName  string `protobuf:"bytes,9,opt,name=committer_name,json=committerName,proto3" json:"committer_name,omitempty"`
	CommitterEmail string `protobuf:"bytes,10,opt,name=committer_email,json=committerEmail,proto3" json:"committer_email,omitempty"`
	WebUrl         string `protobuf:"bytes,11,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`
	Message        string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"`
	CommittedDate  string `protobuf:"bytes,13,opt,name=committed_date,json=committedDate,proto3" json:"committed_date,omitempty"`
	CreatedAt      string `protobuf:"bytes,14,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitResponse) Descriptor deprecated

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

Deprecated: Use CommitResponse.ProtoReflect.Descriptor instead.

func (*CommitResponse) GetAuthorEmail

func (x *CommitResponse) GetAuthorEmail() string

func (*CommitResponse) GetAuthorName

func (x *CommitResponse) GetAuthorName() string

func (*CommitResponse) GetBranch

func (x *CommitResponse) GetBranch() string

func (*CommitResponse) GetCommittedDate

func (x *CommitResponse) GetCommittedDate() string

func (*CommitResponse) GetCommitterEmail

func (x *CommitResponse) GetCommitterEmail() string

func (*CommitResponse) GetCommitterName

func (x *CommitResponse) GetCommitterName() string

func (*CommitResponse) GetCreatedAt

func (x *CommitResponse) GetCreatedAt() string

func (*CommitResponse) GetGitProjectId

func (x *CommitResponse) GetGitProjectId() string

func (*CommitResponse) GetId

func (x *CommitResponse) GetId() string

func (*CommitResponse) GetLabel

func (x *CommitResponse) GetLabel() string

func (*CommitResponse) GetMessage

func (x *CommitResponse) GetMessage() string

func (*CommitResponse) GetShortId

func (x *CommitResponse) GetShortId() string

func (*CommitResponse) GetTitle

func (x *CommitResponse) GetTitle() string

func (*CommitResponse) GetWebUrl

func (x *CommitResponse) GetWebUrl() string

func (*CommitResponse) ProtoMessage

func (*CommitResponse) ProtoMessage()

func (*CommitResponse) ProtoReflect

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

func (*CommitResponse) Reset

func (x *CommitResponse) Reset()

func (*CommitResponse) String

func (x *CommitResponse) String() string

func (*CommitResponse) Validate

func (m *CommitResponse) Validate() error

Validate checks the field values on CommitResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CommitResponse) ValidateAll

func (m *CommitResponse) ValidateAll() error

ValidateAll checks the field values on CommitResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CommitResponseMultiError, or nil if none found.

type CommitResponseMultiError

type CommitResponseMultiError []error

CommitResponseMultiError is an error wrapping multiple validation errors returned by CommitResponse.ValidateAll() if the designated constraints aren't met.

func (CommitResponseMultiError) AllErrors

func (m CommitResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CommitResponseMultiError) Error

func (m CommitResponseMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type CommitResponseValidationError

type CommitResponseValidationError struct {
	// contains filtered or unexported fields
}

CommitResponseValidationError is the validation error returned by CommitResponse.Validate if the designated constraints aren't met.

func (CommitResponseValidationError) Cause

Cause function returns cause value.

func (CommitResponseValidationError) Error

Error satisfies the builtin error interface

func (CommitResponseValidationError) ErrorName

func (e CommitResponseValidationError) ErrorName() string

ErrorName returns error name.

func (CommitResponseValidationError) Field

Field function returns field value.

func (CommitResponseValidationError) Key

Key function returns key value.

func (CommitResponseValidationError) Reason

Reason function returns reason value.

type DisableProjectRequest

type DisableProjectRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*DisableProjectRequest) Descriptor deprecated

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

Deprecated: Use DisableProjectRequest.ProtoReflect.Descriptor instead.

func (*DisableProjectRequest) GetGitProjectId

func (x *DisableProjectRequest) GetGitProjectId() string

func (*DisableProjectRequest) ProtoMessage

func (*DisableProjectRequest) ProtoMessage()

func (*DisableProjectRequest) ProtoReflect

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

func (*DisableProjectRequest) Reset

func (x *DisableProjectRequest) Reset()

func (*DisableProjectRequest) String

func (x *DisableProjectRequest) String() string

func (*DisableProjectRequest) Validate

func (m *DisableProjectRequest) Validate() error

Validate checks the field values on DisableProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DisableProjectRequest) ValidateAll

func (m *DisableProjectRequest) ValidateAll() error

ValidateAll checks the field values on DisableProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DisableProjectRequestMultiError, or nil if none found.

type DisableProjectRequestMultiError

type DisableProjectRequestMultiError []error

DisableProjectRequestMultiError is an error wrapping multiple validation errors returned by DisableProjectRequest.ValidateAll() if the designated constraints aren't met.

func (DisableProjectRequestMultiError) AllErrors

func (m DisableProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DisableProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DisableProjectRequestValidationError

type DisableProjectRequestValidationError struct {
	// contains filtered or unexported fields
}

DisableProjectRequestValidationError is the validation error returned by DisableProjectRequest.Validate if the designated constraints aren't met.

func (DisableProjectRequestValidationError) Cause

Cause function returns cause value.

func (DisableProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (DisableProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (DisableProjectRequestValidationError) Field

Field function returns field value.

func (DisableProjectRequestValidationError) Key

Key function returns key value.

func (DisableProjectRequestValidationError) Reason

Reason function returns reason value.

type DisableProjectResponse

type DisableProjectResponse struct {
	// contains filtered or unexported fields
}

func (*DisableProjectResponse) Descriptor deprecated

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

Deprecated: Use DisableProjectResponse.ProtoReflect.Descriptor instead.

func (*DisableProjectResponse) ProtoMessage

func (*DisableProjectResponse) ProtoMessage()

func (*DisableProjectResponse) ProtoReflect

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

func (*DisableProjectResponse) Reset

func (x *DisableProjectResponse) Reset()

func (*DisableProjectResponse) String

func (x *DisableProjectResponse) String() string

func (*DisableProjectResponse) Validate

func (m *DisableProjectResponse) Validate() error

Validate checks the field values on DisableProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DisableProjectResponse) ValidateAll

func (m *DisableProjectResponse) ValidateAll() error

ValidateAll checks the field values on DisableProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DisableProjectResponseMultiError, or nil if none found.

type DisableProjectResponseMultiError

type DisableProjectResponseMultiError []error

DisableProjectResponseMultiError is an error wrapping multiple validation errors returned by DisableProjectResponse.ValidateAll() if the designated constraints aren't met.

func (DisableProjectResponseMultiError) AllErrors

func (m DisableProjectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DisableProjectResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DisableProjectResponseValidationError

type DisableProjectResponseValidationError struct {
	// contains filtered or unexported fields
}

DisableProjectResponseValidationError is the validation error returned by DisableProjectResponse.Validate if the designated constraints aren't met.

func (DisableProjectResponseValidationError) Cause

Cause function returns cause value.

func (DisableProjectResponseValidationError) Error

Error satisfies the builtin error interface

func (DisableProjectResponseValidationError) ErrorName

ErrorName returns error name.

func (DisableProjectResponseValidationError) Field

Field function returns field value.

func (DisableProjectResponseValidationError) Key

Key function returns key value.

func (DisableProjectResponseValidationError) Reason

Reason function returns reason value.

type EnableProjectRequest

type EnableProjectRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	// contains filtered or unexported fields
}

func (*EnableProjectRequest) Descriptor deprecated

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

Deprecated: Use EnableProjectRequest.ProtoReflect.Descriptor instead.

func (*EnableProjectRequest) GetGitProjectId

func (x *EnableProjectRequest) GetGitProjectId() string

func (*EnableProjectRequest) ProtoMessage

func (*EnableProjectRequest) ProtoMessage()

func (*EnableProjectRequest) ProtoReflect

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

func (*EnableProjectRequest) Reset

func (x *EnableProjectRequest) Reset()

func (*EnableProjectRequest) String

func (x *EnableProjectRequest) String() string

func (*EnableProjectRequest) Validate

func (m *EnableProjectRequest) Validate() error

Validate checks the field values on EnableProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EnableProjectRequest) ValidateAll

func (m *EnableProjectRequest) ValidateAll() error

ValidateAll checks the field values on EnableProjectRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnableProjectRequestMultiError, or nil if none found.

type EnableProjectRequestMultiError

type EnableProjectRequestMultiError []error

EnableProjectRequestMultiError is an error wrapping multiple validation errors returned by EnableProjectRequest.ValidateAll() if the designated constraints aren't met.

func (EnableProjectRequestMultiError) AllErrors

func (m EnableProjectRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnableProjectRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EnableProjectRequestValidationError

type EnableProjectRequestValidationError struct {
	// contains filtered or unexported fields
}

EnableProjectRequestValidationError is the validation error returned by EnableProjectRequest.Validate if the designated constraints aren't met.

func (EnableProjectRequestValidationError) Cause

Cause function returns cause value.

func (EnableProjectRequestValidationError) Error

Error satisfies the builtin error interface

func (EnableProjectRequestValidationError) ErrorName

ErrorName returns error name.

func (EnableProjectRequestValidationError) Field

Field function returns field value.

func (EnableProjectRequestValidationError) Key

Key function returns key value.

func (EnableProjectRequestValidationError) Reason

Reason function returns reason value.

type EnableProjectResponse

type EnableProjectResponse struct {
	// contains filtered or unexported fields
}

func (*EnableProjectResponse) Descriptor deprecated

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

Deprecated: Use EnableProjectResponse.ProtoReflect.Descriptor instead.

func (*EnableProjectResponse) ProtoMessage

func (*EnableProjectResponse) ProtoMessage()

func (*EnableProjectResponse) ProtoReflect

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

func (*EnableProjectResponse) Reset

func (x *EnableProjectResponse) Reset()

func (*EnableProjectResponse) String

func (x *EnableProjectResponse) String() string

func (*EnableProjectResponse) Validate

func (m *EnableProjectResponse) Validate() error

Validate checks the field values on EnableProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*EnableProjectResponse) ValidateAll

func (m *EnableProjectResponse) ValidateAll() error

ValidateAll checks the field values on EnableProjectResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in EnableProjectResponseMultiError, or nil if none found.

type EnableProjectResponseMultiError

type EnableProjectResponseMultiError []error

EnableProjectResponseMultiError is an error wrapping multiple validation errors returned by EnableProjectResponse.ValidateAll() if the designated constraints aren't met.

func (EnableProjectResponseMultiError) AllErrors

func (m EnableProjectResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EnableProjectResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type EnableProjectResponseValidationError

type EnableProjectResponseValidationError struct {
	// contains filtered or unexported fields
}

EnableProjectResponseValidationError is the validation error returned by EnableProjectResponse.Validate if the designated constraints aren't met.

func (EnableProjectResponseValidationError) Cause

Cause function returns cause value.

func (EnableProjectResponseValidationError) Error

Error satisfies the builtin error interface

func (EnableProjectResponseValidationError) ErrorName

ErrorName returns error name.

func (EnableProjectResponseValidationError) Field

Field function returns field value.

func (EnableProjectResponseValidationError) Key

Key function returns key value.

func (EnableProjectResponseValidationError) Reason

Reason function returns reason value.

type GitClient

type GitClient interface {
	// EnableProject 开启项目,开启后可以在项目列表看到
	EnableProject(ctx context.Context, in *EnableProjectRequest, opts ...grpc.CallOption) (*EnableProjectResponse, error)
	// DisableProject 关闭项目
	DisableProject(ctx context.Context, in *DisableProjectRequest, opts ...grpc.CallOption) (*DisableProjectResponse, error)
	// All 获取所有的 git 项目
	All(ctx context.Context, in *AllRequest, opts ...grpc.CallOption) (*AllResponse, error)
	// ProjectOptions 获取项目信息, 用在级联列表
	ProjectOptions(ctx context.Context, in *ProjectOptionsRequest, opts ...grpc.CallOption) (*ProjectOptionsResponse, error)
	// BranchOptions 获取分支信息, 用在级联列表
	BranchOptions(ctx context.Context, in *BranchOptionsRequest, opts ...grpc.CallOption) (*BranchOptionsResponse, error)
	// CommitOptions 获取commit信息, 用在级联列表
	CommitOptions(ctx context.Context, in *CommitOptionsRequest, opts ...grpc.CallOption) (*CommitOptionsResponse, error)
	// Commit 获取 commit 详情
	Commit(ctx context.Context, in *CommitRequest, opts ...grpc.CallOption) (*CommitResponse, error)
	// PipelineInfo 获取 pipeline 详情
	PipelineInfo(ctx context.Context, in *PipelineInfoRequest, opts ...grpc.CallOption) (*PipelineInfoResponse, error)
	// MarsConfigFile 获取项目 mars 配置详情
	MarsConfigFile(ctx context.Context, in *MarsConfigFileRequest, opts ...grpc.CallOption) (*MarsConfigFileResponse, error)
}

GitClient is the client API for Git 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 NewGitClient

func NewGitClient(cc grpc.ClientConnInterface) GitClient

type GitServer

type GitServer interface {
	// EnableProject 开启项目,开启后可以在项目列表看到
	EnableProject(context.Context, *EnableProjectRequest) (*EnableProjectResponse, error)
	// DisableProject 关闭项目
	DisableProject(context.Context, *DisableProjectRequest) (*DisableProjectResponse, error)
	// All 获取所有的 git 项目
	All(context.Context, *AllRequest) (*AllResponse, error)
	// ProjectOptions 获取项目信息, 用在级联列表
	ProjectOptions(context.Context, *ProjectOptionsRequest) (*ProjectOptionsResponse, error)
	// BranchOptions 获取分支信息, 用在级联列表
	BranchOptions(context.Context, *BranchOptionsRequest) (*BranchOptionsResponse, error)
	// CommitOptions 获取commit信息, 用在级联列表
	CommitOptions(context.Context, *CommitOptionsRequest) (*CommitOptionsResponse, error)
	// Commit 获取 commit 详情
	Commit(context.Context, *CommitRequest) (*CommitResponse, error)
	// PipelineInfo 获取 pipeline 详情
	PipelineInfo(context.Context, *PipelineInfoRequest) (*PipelineInfoResponse, error)
	// MarsConfigFile 获取项目 mars 配置详情
	MarsConfigFile(context.Context, *MarsConfigFileRequest) (*MarsConfigFileResponse, error)
	// contains filtered or unexported methods
}

GitServer is the server API for Git service. All implementations must embed UnimplementedGitServer for forward compatibility

type MarsConfigFileRequest

type MarsConfigFileRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	// contains filtered or unexported fields
}

func (*MarsConfigFileRequest) Descriptor deprecated

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

Deprecated: Use MarsConfigFileRequest.ProtoReflect.Descriptor instead.

func (*MarsConfigFileRequest) GetBranch

func (x *MarsConfigFileRequest) GetBranch() string

func (*MarsConfigFileRequest) GetGitProjectId

func (x *MarsConfigFileRequest) GetGitProjectId() string

func (*MarsConfigFileRequest) ProtoMessage

func (*MarsConfigFileRequest) ProtoMessage()

func (*MarsConfigFileRequest) ProtoReflect

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

func (*MarsConfigFileRequest) Reset

func (x *MarsConfigFileRequest) Reset()

func (*MarsConfigFileRequest) String

func (x *MarsConfigFileRequest) String() string

func (*MarsConfigFileRequest) Validate

func (m *MarsConfigFileRequest) Validate() error

Validate checks the field values on MarsConfigFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MarsConfigFileRequest) ValidateAll

func (m *MarsConfigFileRequest) ValidateAll() error

ValidateAll checks the field values on MarsConfigFileRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MarsConfigFileRequestMultiError, or nil if none found.

type MarsConfigFileRequestMultiError

type MarsConfigFileRequestMultiError []error

MarsConfigFileRequestMultiError is an error wrapping multiple validation errors returned by MarsConfigFileRequest.ValidateAll() if the designated constraints aren't met.

func (MarsConfigFileRequestMultiError) AllErrors

func (m MarsConfigFileRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MarsConfigFileRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MarsConfigFileRequestValidationError

type MarsConfigFileRequestValidationError struct {
	// contains filtered or unexported fields
}

MarsConfigFileRequestValidationError is the validation error returned by MarsConfigFileRequest.Validate if the designated constraints aren't met.

func (MarsConfigFileRequestValidationError) Cause

Cause function returns cause value.

func (MarsConfigFileRequestValidationError) Error

Error satisfies the builtin error interface

func (MarsConfigFileRequestValidationError) ErrorName

ErrorName returns error name.

func (MarsConfigFileRequestValidationError) Field

Field function returns field value.

func (MarsConfigFileRequestValidationError) Key

Key function returns key value.

func (MarsConfigFileRequestValidationError) Reason

Reason function returns reason value.

type MarsConfigFileResponse

type MarsConfigFileResponse struct {
	Data     string          `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Type     string          `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Elements []*mars.Element `protobuf:"bytes,3,rep,name=elements,proto3" json:"elements,omitempty"`
	// contains filtered or unexported fields
}

func (*MarsConfigFileResponse) Descriptor deprecated

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

Deprecated: Use MarsConfigFileResponse.ProtoReflect.Descriptor instead.

func (*MarsConfigFileResponse) GetData

func (x *MarsConfigFileResponse) GetData() string

func (*MarsConfigFileResponse) GetElements

func (x *MarsConfigFileResponse) GetElements() []*mars.Element

func (*MarsConfigFileResponse) GetType

func (x *MarsConfigFileResponse) GetType() string

func (*MarsConfigFileResponse) ProtoMessage

func (*MarsConfigFileResponse) ProtoMessage()

func (*MarsConfigFileResponse) ProtoReflect

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

func (*MarsConfigFileResponse) Reset

func (x *MarsConfigFileResponse) Reset()

func (*MarsConfigFileResponse) String

func (x *MarsConfigFileResponse) String() string

func (*MarsConfigFileResponse) Validate

func (m *MarsConfigFileResponse) Validate() error

Validate checks the field values on MarsConfigFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*MarsConfigFileResponse) ValidateAll

func (m *MarsConfigFileResponse) ValidateAll() error

ValidateAll checks the field values on MarsConfigFileResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MarsConfigFileResponseMultiError, or nil if none found.

type MarsConfigFileResponseMultiError

type MarsConfigFileResponseMultiError []error

MarsConfigFileResponseMultiError is an error wrapping multiple validation errors returned by MarsConfigFileResponse.ValidateAll() if the designated constraints aren't met.

func (MarsConfigFileResponseMultiError) AllErrors

func (m MarsConfigFileResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (MarsConfigFileResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type MarsConfigFileResponseValidationError

type MarsConfigFileResponseValidationError struct {
	// contains filtered or unexported fields
}

MarsConfigFileResponseValidationError is the validation error returned by MarsConfigFileResponse.Validate if the designated constraints aren't met.

func (MarsConfigFileResponseValidationError) Cause

Cause function returns cause value.

func (MarsConfigFileResponseValidationError) Error

Error satisfies the builtin error interface

func (MarsConfigFileResponseValidationError) ErrorName

ErrorName returns error name.

func (MarsConfigFileResponseValidationError) Field

Field function returns field value.

func (MarsConfigFileResponseValidationError) Key

Key function returns key value.

func (MarsConfigFileResponseValidationError) Reason

Reason function returns reason value.

type Option

type Option struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Type  string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	// isLeaf 兼容 antd
	IsLeaf       bool   `protobuf:"varint,4,opt,name=isLeaf,proto3" json:"isLeaf,omitempty"`
	GitProjectId string `protobuf:"bytes,5,opt,name=gitProjectId,proto3" json:"gitProjectId,omitempty"`
	Branch       string `protobuf:"bytes,6,opt,name=branch,proto3" json:"branch,omitempty"`
	DisplayName  string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Option) Descriptor deprecated

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

Deprecated: Use Option.ProtoReflect.Descriptor instead.

func (*Option) GetBranch

func (x *Option) GetBranch() string

func (*Option) GetDisplayName

func (x *Option) GetDisplayName() string

func (*Option) GetGitProjectId

func (x *Option) GetGitProjectId() string

func (*Option) GetIsLeaf

func (x *Option) GetIsLeaf() bool

func (*Option) GetLabel

func (x *Option) GetLabel() string

func (*Option) GetType

func (x *Option) GetType() string

func (*Option) GetValue

func (x *Option) GetValue() string

func (*Option) ProtoMessage

func (*Option) ProtoMessage()

func (*Option) ProtoReflect

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

func (*Option) Reset

func (x *Option) Reset()

func (*Option) String

func (x *Option) String() string

func (*Option) Validate

func (m *Option) Validate() error

Validate checks the field values on Option with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Option) ValidateAll

func (m *Option) ValidateAll() error

ValidateAll checks the field values on Option with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OptionMultiError, or nil if none found.

type OptionMultiError

type OptionMultiError []error

OptionMultiError is an error wrapping multiple validation errors returned by Option.ValidateAll() if the designated constraints aren't met.

func (OptionMultiError) AllErrors

func (m OptionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OptionMultiError) Error

func (m OptionMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OptionValidationError

type OptionValidationError struct {
	// contains filtered or unexported fields
}

OptionValidationError is the validation error returned by Option.Validate if the designated constraints aren't met.

func (OptionValidationError) Cause

func (e OptionValidationError) Cause() error

Cause function returns cause value.

func (OptionValidationError) Error

func (e OptionValidationError) Error() string

Error satisfies the builtin error interface

func (OptionValidationError) ErrorName

func (e OptionValidationError) ErrorName() string

ErrorName returns error name.

func (OptionValidationError) Field

func (e OptionValidationError) Field() string

Field function returns field value.

func (OptionValidationError) Key

func (e OptionValidationError) Key() bool

Key function returns key value.

func (OptionValidationError) Reason

func (e OptionValidationError) Reason() string

Reason function returns reason value.

type PipelineInfoRequest

type PipelineInfoRequest struct {
	GitProjectId string `protobuf:"bytes,1,opt,name=git_project_id,json=gitProjectId,proto3" json:"git_project_id,omitempty"`
	Branch       string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
	Commit       string `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

func (*PipelineInfoRequest) Descriptor deprecated

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

Deprecated: Use PipelineInfoRequest.ProtoReflect.Descriptor instead.

func (*PipelineInfoRequest) GetBranch

func (x *PipelineInfoRequest) GetBranch() string

func (*PipelineInfoRequest) GetCommit

func (x *PipelineInfoRequest) GetCommit() string

func (*PipelineInfoRequest) GetGitProjectId

func (x *PipelineInfoRequest) GetGitProjectId() string

func (*PipelineInfoRequest) ProtoMessage

func (*PipelineInfoRequest) ProtoMessage()

func (*PipelineInfoRequest) ProtoReflect

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

func (*PipelineInfoRequest) Reset

func (x *PipelineInfoRequest) Reset()

func (*PipelineInfoRequest) String

func (x *PipelineInfoRequest) String() string

func (*PipelineInfoRequest) Validate

func (m *PipelineInfoRequest) Validate() error

Validate checks the field values on PipelineInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PipelineInfoRequest) ValidateAll

func (m *PipelineInfoRequest) ValidateAll() error

ValidateAll checks the field values on PipelineInfoRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PipelineInfoRequestMultiError, or nil if none found.

type PipelineInfoRequestMultiError

type PipelineInfoRequestMultiError []error

PipelineInfoRequestMultiError is an error wrapping multiple validation errors returned by PipelineInfoRequest.ValidateAll() if the designated constraints aren't met.

func (PipelineInfoRequestMultiError) AllErrors

func (m PipelineInfoRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PipelineInfoRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PipelineInfoRequestValidationError

type PipelineInfoRequestValidationError struct {
	// contains filtered or unexported fields
}

PipelineInfoRequestValidationError is the validation error returned by PipelineInfoRequest.Validate if the designated constraints aren't met.

func (PipelineInfoRequestValidationError) Cause

Cause function returns cause value.

func (PipelineInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (PipelineInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (PipelineInfoRequestValidationError) Field

Field function returns field value.

func (PipelineInfoRequestValidationError) Key

Key function returns key value.

func (PipelineInfoRequestValidationError) Reason

Reason function returns reason value.

type PipelineInfoResponse

type PipelineInfoResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	WebUrl string `protobuf:"bytes,2,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`
	// contains filtered or unexported fields
}

func (*PipelineInfoResponse) Descriptor deprecated

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

Deprecated: Use PipelineInfoResponse.ProtoReflect.Descriptor instead.

func (*PipelineInfoResponse) GetStatus

func (x *PipelineInfoResponse) GetStatus() string

func (*PipelineInfoResponse) GetWebUrl

func (x *PipelineInfoResponse) GetWebUrl() string

func (*PipelineInfoResponse) ProtoMessage

func (*PipelineInfoResponse) ProtoMessage()

func (*PipelineInfoResponse) ProtoReflect

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

func (*PipelineInfoResponse) Reset

func (x *PipelineInfoResponse) Reset()

func (*PipelineInfoResponse) String

func (x *PipelineInfoResponse) String() string

func (*PipelineInfoResponse) Validate

func (m *PipelineInfoResponse) Validate() error

Validate checks the field values on PipelineInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PipelineInfoResponse) ValidateAll

func (m *PipelineInfoResponse) ValidateAll() error

ValidateAll checks the field values on PipelineInfoResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PipelineInfoResponseMultiError, or nil if none found.

type PipelineInfoResponseMultiError

type PipelineInfoResponseMultiError []error

PipelineInfoResponseMultiError is an error wrapping multiple validation errors returned by PipelineInfoResponse.ValidateAll() if the designated constraints aren't met.

func (PipelineInfoResponseMultiError) AllErrors

func (m PipelineInfoResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PipelineInfoResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PipelineInfoResponseValidationError

type PipelineInfoResponseValidationError struct {
	// contains filtered or unexported fields
}

PipelineInfoResponseValidationError is the validation error returned by PipelineInfoResponse.Validate if the designated constraints aren't met.

func (PipelineInfoResponseValidationError) Cause

Cause function returns cause value.

func (PipelineInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (PipelineInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (PipelineInfoResponseValidationError) Field

Field function returns field value.

func (PipelineInfoResponseValidationError) Key

Key function returns key value.

func (PipelineInfoResponseValidationError) Reason

Reason function returns reason value.

type ProjectItem

type ProjectItem struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Path          string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	WebUrl        string `protobuf:"bytes,4,opt,name=web_url,json=webUrl,proto3" json:"web_url,omitempty"`
	AvatarUrl     string `protobuf:"bytes,5,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
	Description   string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	Enabled       bool   `protobuf:"varint,7,opt,name=enabled,proto3" json:"enabled,omitempty"`
	GlobalEnabled bool   `protobuf:"varint,8,opt,name=global_enabled,json=globalEnabled,proto3" json:"global_enabled,omitempty"`
	DisplayName   string `protobuf:"bytes,9,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectItem) Descriptor deprecated

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

Deprecated: Use ProjectItem.ProtoReflect.Descriptor instead.

func (*ProjectItem) GetAvatarUrl

func (x *ProjectItem) GetAvatarUrl() string

func (*ProjectItem) GetDescription

func (x *ProjectItem) GetDescription() string

func (*ProjectItem) GetDisplayName

func (x *ProjectItem) GetDisplayName() string

func (*ProjectItem) GetEnabled

func (x *ProjectItem) GetEnabled() bool

func (*ProjectItem) GetGlobalEnabled

func (x *ProjectItem) GetGlobalEnabled() bool

func (*ProjectItem) GetId

func (x *ProjectItem) GetId() int64

func (*ProjectItem) GetName

func (x *ProjectItem) GetName() string

func (*ProjectItem) GetPath

func (x *ProjectItem) GetPath() string

func (*ProjectItem) GetWebUrl

func (x *ProjectItem) GetWebUrl() string

func (*ProjectItem) ProtoMessage

func (*ProjectItem) ProtoMessage()

func (*ProjectItem) ProtoReflect

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

func (*ProjectItem) Reset

func (x *ProjectItem) Reset()

func (*ProjectItem) String

func (x *ProjectItem) String() string

func (*ProjectItem) Validate

func (m *ProjectItem) Validate() error

Validate checks the field values on ProjectItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProjectItem) ValidateAll

func (m *ProjectItem) ValidateAll() error

ValidateAll checks the field values on ProjectItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectItemMultiError, or nil if none found.

type ProjectItemMultiError

type ProjectItemMultiError []error

ProjectItemMultiError is an error wrapping multiple validation errors returned by ProjectItem.ValidateAll() if the designated constraints aren't met.

func (ProjectItemMultiError) AllErrors

func (m ProjectItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectItemMultiError) Error

func (m ProjectItemMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ProjectItemValidationError

type ProjectItemValidationError struct {
	// contains filtered or unexported fields
}

ProjectItemValidationError is the validation error returned by ProjectItem.Validate if the designated constraints aren't met.

func (ProjectItemValidationError) Cause

Cause function returns cause value.

func (ProjectItemValidationError) Error

Error satisfies the builtin error interface

func (ProjectItemValidationError) ErrorName

func (e ProjectItemValidationError) ErrorName() string

ErrorName returns error name.

func (ProjectItemValidationError) Field

Field function returns field value.

func (ProjectItemValidationError) Key

Key function returns key value.

func (ProjectItemValidationError) Reason

Reason function returns reason value.

type ProjectOptionsRequest

type ProjectOptionsRequest struct {
	// contains filtered or unexported fields
}

func (*ProjectOptionsRequest) Descriptor deprecated

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

Deprecated: Use ProjectOptionsRequest.ProtoReflect.Descriptor instead.

func (*ProjectOptionsRequest) ProtoMessage

func (*ProjectOptionsRequest) ProtoMessage()

func (*ProjectOptionsRequest) ProtoReflect

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

func (*ProjectOptionsRequest) Reset

func (x *ProjectOptionsRequest) Reset()

func (*ProjectOptionsRequest) String

func (x *ProjectOptionsRequest) String() string

func (*ProjectOptionsRequest) Validate

func (m *ProjectOptionsRequest) Validate() error

Validate checks the field values on ProjectOptionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProjectOptionsRequest) ValidateAll

func (m *ProjectOptionsRequest) ValidateAll() error

ValidateAll checks the field values on ProjectOptionsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectOptionsRequestMultiError, or nil if none found.

type ProjectOptionsRequestMultiError

type ProjectOptionsRequestMultiError []error

ProjectOptionsRequestMultiError is an error wrapping multiple validation errors returned by ProjectOptionsRequest.ValidateAll() if the designated constraints aren't met.

func (ProjectOptionsRequestMultiError) AllErrors

func (m ProjectOptionsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectOptionsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProjectOptionsRequestValidationError

type ProjectOptionsRequestValidationError struct {
	// contains filtered or unexported fields
}

ProjectOptionsRequestValidationError is the validation error returned by ProjectOptionsRequest.Validate if the designated constraints aren't met.

func (ProjectOptionsRequestValidationError) Cause

Cause function returns cause value.

func (ProjectOptionsRequestValidationError) Error

Error satisfies the builtin error interface

func (ProjectOptionsRequestValidationError) ErrorName

ErrorName returns error name.

func (ProjectOptionsRequestValidationError) Field

Field function returns field value.

func (ProjectOptionsRequestValidationError) Key

Key function returns key value.

func (ProjectOptionsRequestValidationError) Reason

Reason function returns reason value.

type ProjectOptionsResponse

type ProjectOptionsResponse struct {
	Items []*Option `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*ProjectOptionsResponse) Descriptor deprecated

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

Deprecated: Use ProjectOptionsResponse.ProtoReflect.Descriptor instead.

func (*ProjectOptionsResponse) GetItems

func (x *ProjectOptionsResponse) GetItems() []*Option

func (*ProjectOptionsResponse) ProtoMessage

func (*ProjectOptionsResponse) ProtoMessage()

func (*ProjectOptionsResponse) ProtoReflect

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

func (*ProjectOptionsResponse) Reset

func (x *ProjectOptionsResponse) Reset()

func (*ProjectOptionsResponse) String

func (x *ProjectOptionsResponse) String() string

func (*ProjectOptionsResponse) Validate

func (m *ProjectOptionsResponse) Validate() error

Validate checks the field values on ProjectOptionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ProjectOptionsResponse) ValidateAll

func (m *ProjectOptionsResponse) ValidateAll() error

ValidateAll checks the field values on ProjectOptionsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ProjectOptionsResponseMultiError, or nil if none found.

type ProjectOptionsResponseMultiError

type ProjectOptionsResponseMultiError []error

ProjectOptionsResponseMultiError is an error wrapping multiple validation errors returned by ProjectOptionsResponse.ValidateAll() if the designated constraints aren't met.

func (ProjectOptionsResponseMultiError) AllErrors

func (m ProjectOptionsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ProjectOptionsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ProjectOptionsResponseValidationError

type ProjectOptionsResponseValidationError struct {
	// contains filtered or unexported fields
}

ProjectOptionsResponseValidationError is the validation error returned by ProjectOptionsResponse.Validate if the designated constraints aren't met.

func (ProjectOptionsResponseValidationError) Cause

Cause function returns cause value.

func (ProjectOptionsResponseValidationError) Error

Error satisfies the builtin error interface

func (ProjectOptionsResponseValidationError) ErrorName

ErrorName returns error name.

func (ProjectOptionsResponseValidationError) Field

Field function returns field value.

func (ProjectOptionsResponseValidationError) Key

Key function returns key value.

func (ProjectOptionsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedGitServer

type UnimplementedGitServer struct {
}

UnimplementedGitServer must be embedded to have forward compatible implementations.

func (UnimplementedGitServer) All

func (UnimplementedGitServer) BranchOptions

func (UnimplementedGitServer) Commit

func (UnimplementedGitServer) CommitOptions

func (UnimplementedGitServer) DisableProject

func (UnimplementedGitServer) EnableProject

func (UnimplementedGitServer) MarsConfigFile

func (UnimplementedGitServer) PipelineInfo

func (UnimplementedGitServer) ProjectOptions

type UnsafeGitServer

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

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

Jump to

Keyboard shortcuts

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