Documentation ¶
Overview ¶
Package repo is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterRepoHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRepoHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepoClient) error
- func RegisterRepoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRepoHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RepoServer) error
- func RegisterRepoServer(s grpc.ServiceRegistrar, srv RepoServer)
- type AllRequest
- func (*AllRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AllRequest) GetEnabled() bool
- func (*AllRequest) ProtoMessage()
- func (x *AllRequest) ProtoReflect() protoreflect.Message
- func (x *AllRequest) Reset()
- func (x *AllRequest) String() string
- func (m *AllRequest) Validate() error
- func (m *AllRequest) ValidateAll() error
- type AllRequestMultiError
- type AllRequestValidationError
- type AllResponse
- func (*AllResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AllResponse) GetItems() []*types.RepoModel
- func (*AllResponse) ProtoMessage()
- func (x *AllResponse) ProtoReflect() protoreflect.Message
- func (x *AllResponse) Reset()
- func (x *AllResponse) String() string
- func (m *AllResponse) Validate() error
- func (m *AllResponse) ValidateAll() error
- type AllResponseMultiError
- type AllResponseValidationError
- func (e AllResponseValidationError) Cause() error
- func (e AllResponseValidationError) Error() string
- func (e AllResponseValidationError) ErrorName() string
- func (e AllResponseValidationError) Field() string
- func (e AllResponseValidationError) Key() bool
- func (e AllResponseValidationError) Reason() string
- type CloneRequest
- func (*CloneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloneRequest) GetId() int32
- func (x *CloneRequest) GetName() string
- func (*CloneRequest) ProtoMessage()
- func (x *CloneRequest) ProtoReflect() protoreflect.Message
- func (x *CloneRequest) Reset()
- func (x *CloneRequest) String() string
- func (m *CloneRequest) Validate() error
- func (m *CloneRequest) ValidateAll() error
- type CloneRequestMultiError
- type CloneRequestValidationError
- func (e CloneRequestValidationError) Cause() error
- func (e CloneRequestValidationError) Error() string
- func (e CloneRequestValidationError) ErrorName() string
- func (e CloneRequestValidationError) Field() string
- func (e CloneRequestValidationError) Key() bool
- func (e CloneRequestValidationError) Reason() string
- type CloneResponse
- func (*CloneResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CloneResponse) GetItem() *types.RepoModel
- func (*CloneResponse) ProtoMessage()
- func (x *CloneResponse) ProtoReflect() protoreflect.Message
- func (x *CloneResponse) Reset()
- func (x *CloneResponse) String() string
- func (m *CloneResponse) Validate() error
- func (m *CloneResponse) ValidateAll() error
- type CloneResponseMultiError
- type CloneResponseValidationError
- func (e CloneResponseValidationError) Cause() error
- func (e CloneResponseValidationError) Error() string
- func (e CloneResponseValidationError) ErrorName() string
- func (e CloneResponseValidationError) Field() string
- func (e CloneResponseValidationError) Key() bool
- func (e CloneResponseValidationError) Reason() string
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetDescription() string
- func (x *CreateRequest) GetGitProjectId() int32
- func (x *CreateRequest) GetMarsConfig() *mars.Config
- func (x *CreateRequest) GetName() string
- func (x *CreateRequest) GetNeedGitRepo() bool
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- func (m *CreateRequest) Validate() error
- func (m *CreateRequest) ValidateAll() error
- type CreateRequestMultiError
- type CreateRequestValidationError
- func (e CreateRequestValidationError) Cause() error
- func (e CreateRequestValidationError) Error() string
- func (e CreateRequestValidationError) ErrorName() string
- func (e CreateRequestValidationError) Field() string
- func (e CreateRequestValidationError) Key() bool
- func (e CreateRequestValidationError) Reason() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateResponse) GetItem() *types.RepoModel
- func (*CreateResponse) ProtoMessage()
- func (x *CreateResponse) ProtoReflect() protoreflect.Message
- func (x *CreateResponse) Reset()
- func (x *CreateResponse) String() string
- func (m *CreateResponse) Validate() error
- func (m *CreateResponse) ValidateAll() error
- type CreateResponseMultiError
- type CreateResponseValidationError
- func (e CreateResponseValidationError) Cause() error
- func (e CreateResponseValidationError) Error() string
- func (e CreateResponseValidationError) ErrorName() string
- func (e CreateResponseValidationError) Field() string
- func (e CreateResponseValidationError) Key() bool
- func (e CreateResponseValidationError) Reason() string
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() int32
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- func (m *DeleteResponse) Validate() error
- func (m *DeleteResponse) ValidateAll() error
- type DeleteResponseMultiError
- type DeleteResponseValidationError
- func (e DeleteResponseValidationError) Cause() error
- func (e DeleteResponseValidationError) Error() string
- func (e DeleteResponseValidationError) ErrorName() string
- func (e DeleteResponseValidationError) Field() string
- func (e DeleteResponseValidationError) Key() bool
- func (e DeleteResponseValidationError) Reason() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetEnabled() bool
- func (x *ListRequest) GetName() string
- func (x *ListRequest) GetPage() int32
- func (x *ListRequest) GetPageSize() int32
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCount() int32
- func (x *ListResponse) GetItems() []*types.RepoModel
- func (x *ListResponse) GetPage() int32
- func (x *ListResponse) GetPageSize() int32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type RepoClient
- type RepoServer
- type ShowRequest
- func (*ShowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ShowRequest) GetId() int32
- func (*ShowRequest) ProtoMessage()
- func (x *ShowRequest) ProtoReflect() protoreflect.Message
- func (x *ShowRequest) Reset()
- func (x *ShowRequest) String() string
- func (m *ShowRequest) Validate() error
- func (m *ShowRequest) ValidateAll() error
- type ShowRequestMultiError
- type ShowRequestValidationError
- func (e ShowRequestValidationError) Cause() error
- func (e ShowRequestValidationError) Error() string
- func (e ShowRequestValidationError) ErrorName() string
- func (e ShowRequestValidationError) Field() string
- func (e ShowRequestValidationError) Key() bool
- func (e ShowRequestValidationError) Reason() string
- type ShowResponse
- func (*ShowResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ShowResponse) GetItem() *types.RepoModel
- func (*ShowResponse) ProtoMessage()
- func (x *ShowResponse) ProtoReflect() protoreflect.Message
- func (x *ShowResponse) Reset()
- func (x *ShowResponse) String() string
- func (m *ShowResponse) Validate() error
- func (m *ShowResponse) ValidateAll() error
- type ShowResponseMultiError
- type ShowResponseValidationError
- func (e ShowResponseValidationError) Cause() error
- func (e ShowResponseValidationError) Error() string
- func (e ShowResponseValidationError) ErrorName() string
- func (e ShowResponseValidationError) Field() string
- func (e ShowResponseValidationError) Key() bool
- func (e ShowResponseValidationError) Reason() string
- type ToggleEnabledRequest
- func (*ToggleEnabledRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleEnabledRequest) GetEnabled() bool
- func (x *ToggleEnabledRequest) GetId() int32
- func (*ToggleEnabledRequest) ProtoMessage()
- func (x *ToggleEnabledRequest) ProtoReflect() protoreflect.Message
- func (x *ToggleEnabledRequest) Reset()
- func (x *ToggleEnabledRequest) String() string
- func (m *ToggleEnabledRequest) Validate() error
- func (m *ToggleEnabledRequest) ValidateAll() error
- type ToggleEnabledRequestMultiError
- type ToggleEnabledRequestValidationError
- func (e ToggleEnabledRequestValidationError) Cause() error
- func (e ToggleEnabledRequestValidationError) Error() string
- func (e ToggleEnabledRequestValidationError) ErrorName() string
- func (e ToggleEnabledRequestValidationError) Field() string
- func (e ToggleEnabledRequestValidationError) Key() bool
- func (e ToggleEnabledRequestValidationError) Reason() string
- type ToggleEnabledResponse
- func (*ToggleEnabledResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleEnabledResponse) GetItem() *types.RepoModel
- func (*ToggleEnabledResponse) ProtoMessage()
- func (x *ToggleEnabledResponse) ProtoReflect() protoreflect.Message
- func (x *ToggleEnabledResponse) Reset()
- func (x *ToggleEnabledResponse) String() string
- func (m *ToggleEnabledResponse) Validate() error
- func (m *ToggleEnabledResponse) ValidateAll() error
- type ToggleEnabledResponseMultiError
- type ToggleEnabledResponseValidationError
- func (e ToggleEnabledResponseValidationError) Cause() error
- func (e ToggleEnabledResponseValidationError) Error() string
- func (e ToggleEnabledResponseValidationError) ErrorName() string
- func (e ToggleEnabledResponseValidationError) Field() string
- func (e ToggleEnabledResponseValidationError) Key() bool
- func (e ToggleEnabledResponseValidationError) Reason() string
- type UnimplementedRepoServer
- func (UnimplementedRepoServer) Clone(context.Context, *CloneRequest) (*CloneResponse, error)
- func (UnimplementedRepoServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedRepoServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedRepoServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedRepoServer) Show(context.Context, *ShowRequest) (*ShowResponse, error)
- func (UnimplementedRepoServer) ToggleEnabled(context.Context, *ToggleEnabledRequest) (*ToggleEnabledResponse, error)
- func (UnimplementedRepoServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
- type UnsafeRepoServer
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRequest) GetDescription() string
- func (x *UpdateRequest) GetGitProjectId() int32
- func (x *UpdateRequest) GetId() int32
- func (x *UpdateRequest) GetMarsConfig() *mars.Config
- func (x *UpdateRequest) GetName() string
- func (x *UpdateRequest) GetNeedGitRepo() bool
- func (*UpdateRequest) ProtoMessage()
- func (x *UpdateRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRequest) Reset()
- func (x *UpdateRequest) String() string
- func (m *UpdateRequest) Validate() error
- func (m *UpdateRequest) ValidateAll() error
- type UpdateRequestMultiError
- type UpdateRequestValidationError
- func (e UpdateRequestValidationError) Cause() error
- func (e UpdateRequestValidationError) Error() string
- func (e UpdateRequestValidationError) ErrorName() string
- func (e UpdateRequestValidationError) Field() string
- func (e UpdateRequestValidationError) Key() bool
- func (e UpdateRequestValidationError) Reason() string
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateResponse) GetItem() *types.RepoModel
- func (*UpdateResponse) ProtoMessage()
- func (x *UpdateResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateResponse) Reset()
- func (x *UpdateResponse) String() string
- func (m *UpdateResponse) Validate() error
- func (m *UpdateResponse) ValidateAll() error
- type UpdateResponseMultiError
- type UpdateResponseValidationError
- func (e UpdateResponseValidationError) Cause() error
- func (e UpdateResponseValidationError) Error() string
- func (e UpdateResponseValidationError) ErrorName() string
- func (e UpdateResponseValidationError) Field() string
- func (e UpdateResponseValidationError) Key() bool
- func (e UpdateResponseValidationError) Reason() string
Constants ¶
const ( Repo_List_FullMethodName = "/repo.Repo/List" Repo_Create_FullMethodName = "/repo.Repo/Create" Repo_Show_FullMethodName = "/repo.Repo/Show" Repo_Update_FullMethodName = "/repo.Repo/Update" Repo_Delete_FullMethodName = "/repo.Repo/Delete" Repo_ToggleEnabled_FullMethodName = "/repo.Repo/ToggleEnabled" Repo_Clone_FullMethodName = "/repo.Repo/Clone" )
Variables ¶
var File_repo_repo_proto protoreflect.FileDescriptor
var Repo_ServiceDesc = grpc.ServiceDesc{ ServiceName: "repo.Repo", HandlerType: (*RepoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "List", Handler: _Repo_List_Handler, }, { MethodName: "Create", Handler: _Repo_Create_Handler, }, { MethodName: "Show", Handler: _Repo_Show_Handler, }, { MethodName: "Update", Handler: _Repo_Update_Handler, }, { MethodName: "Delete", Handler: _Repo_Delete_Handler, }, { MethodName: "ToggleEnabled", Handler: _Repo_ToggleEnabled_Handler, }, { MethodName: "Clone", Handler: _Repo_Clone_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "repo/repo.proto", }
Repo_ServiceDesc is the grpc.ServiceDesc for Repo service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRepoHandler ¶
RegisterRepoHandler registers the http handlers for service Repo to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRepoHandlerClient ¶
RegisterRepoHandlerClient registers the http handlers for service Repo to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RepoClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RepoClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RepoClient" to call the correct interceptors.
func RegisterRepoHandlerFromEndpoint ¶
func RegisterRepoHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRepoHandlerFromEndpoint is same as RegisterRepoHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRepoHandlerServer ¶
RegisterRepoHandlerServer registers the http handlers for service Repo to "mux". UnaryRPC :call RepoServer 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 RegisterRepoHandlerFromEndpoint instead.
func RegisterRepoServer ¶
func RegisterRepoServer(s grpc.ServiceRegistrar, srv RepoServer)
Types ¶
type AllRequest ¶
type AllRequest struct { Enabled *bool `protobuf:"varint,1,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*AllRequest) Descriptor
deprecated
func (*AllRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllRequest.ProtoReflect.Descriptor instead.
func (*AllRequest) GetEnabled ¶
func (x *AllRequest) GetEnabled() bool
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 ¶
func (e AllRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AllRequestValidationError) ErrorName ¶
func (e AllRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AllRequestValidationError) Field ¶
func (e AllRequestValidationError) Field() string
Field function returns field value.
func (AllRequestValidationError) Key ¶
func (e AllRequestValidationError) Key() bool
Key function returns key value.
func (AllRequestValidationError) Reason ¶
func (e AllRequestValidationError) Reason() string
Reason function returns reason value.
type AllResponse ¶
type AllResponse struct { Items []*types.RepoModel `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() []*types.RepoModel
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 ¶
func (e AllResponseValidationError) Cause() error
Cause function returns cause value.
func (AllResponseValidationError) Error ¶
func (e AllResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AllResponseValidationError) ErrorName ¶
func (e AllResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AllResponseValidationError) Field ¶
func (e AllResponseValidationError) Field() string
Field function returns field value.
func (AllResponseValidationError) Key ¶
func (e AllResponseValidationError) Key() bool
Key function returns key value.
func (AllResponseValidationError) Reason ¶
func (e AllResponseValidationError) Reason() string
Reason function returns reason value.
type CloneRequest ¶
type CloneRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CloneRequest) Descriptor
deprecated
func (*CloneRequest) Descriptor() ([]byte, []int)
Deprecated: Use CloneRequest.ProtoReflect.Descriptor instead.
func (*CloneRequest) GetId ¶
func (x *CloneRequest) GetId() int32
func (*CloneRequest) GetName ¶
func (x *CloneRequest) GetName() string
func (*CloneRequest) ProtoMessage ¶
func (*CloneRequest) ProtoMessage()
func (*CloneRequest) ProtoReflect ¶
func (x *CloneRequest) ProtoReflect() protoreflect.Message
func (*CloneRequest) Reset ¶
func (x *CloneRequest) Reset()
func (*CloneRequest) String ¶
func (x *CloneRequest) String() string
func (*CloneRequest) Validate ¶
func (m *CloneRequest) Validate() error
Validate checks the field values on CloneRequest 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 (*CloneRequest) ValidateAll ¶
func (m *CloneRequest) ValidateAll() error
ValidateAll checks the field values on CloneRequest 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 CloneRequestMultiError, or nil if none found.
type CloneRequestMultiError ¶
type CloneRequestMultiError []error
CloneRequestMultiError is an error wrapping multiple validation errors returned by CloneRequest.ValidateAll() if the designated constraints aren't met.
func (CloneRequestMultiError) AllErrors ¶
func (m CloneRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CloneRequestMultiError) Error ¶
func (m CloneRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CloneRequestValidationError ¶
type CloneRequestValidationError struct {
// contains filtered or unexported fields
}
CloneRequestValidationError is the validation error returned by CloneRequest.Validate if the designated constraints aren't met.
func (CloneRequestValidationError) Cause ¶
func (e CloneRequestValidationError) Cause() error
Cause function returns cause value.
func (CloneRequestValidationError) Error ¶
func (e CloneRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CloneRequestValidationError) ErrorName ¶
func (e CloneRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CloneRequestValidationError) Field ¶
func (e CloneRequestValidationError) Field() string
Field function returns field value.
func (CloneRequestValidationError) Key ¶
func (e CloneRequestValidationError) Key() bool
Key function returns key value.
func (CloneRequestValidationError) Reason ¶
func (e CloneRequestValidationError) Reason() string
Reason function returns reason value.
type CloneResponse ¶
type CloneResponse struct { Item *types.RepoModel `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*CloneResponse) Descriptor
deprecated
func (*CloneResponse) Descriptor() ([]byte, []int)
Deprecated: Use CloneResponse.ProtoReflect.Descriptor instead.
func (*CloneResponse) GetItem ¶
func (x *CloneResponse) GetItem() *types.RepoModel
func (*CloneResponse) ProtoMessage ¶
func (*CloneResponse) ProtoMessage()
func (*CloneResponse) ProtoReflect ¶
func (x *CloneResponse) ProtoReflect() protoreflect.Message
func (*CloneResponse) Reset ¶
func (x *CloneResponse) Reset()
func (*CloneResponse) String ¶
func (x *CloneResponse) String() string
func (*CloneResponse) Validate ¶
func (m *CloneResponse) Validate() error
Validate checks the field values on CloneResponse 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 (*CloneResponse) ValidateAll ¶
func (m *CloneResponse) ValidateAll() error
ValidateAll checks the field values on CloneResponse 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 CloneResponseMultiError, or nil if none found.
type CloneResponseMultiError ¶
type CloneResponseMultiError []error
CloneResponseMultiError is an error wrapping multiple validation errors returned by CloneResponse.ValidateAll() if the designated constraints aren't met.
func (CloneResponseMultiError) AllErrors ¶
func (m CloneResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CloneResponseMultiError) Error ¶
func (m CloneResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CloneResponseValidationError ¶
type CloneResponseValidationError struct {
// contains filtered or unexported fields
}
CloneResponseValidationError is the validation error returned by CloneResponse.Validate if the designated constraints aren't met.
func (CloneResponseValidationError) Cause ¶
func (e CloneResponseValidationError) Cause() error
Cause function returns cause value.
func (CloneResponseValidationError) Error ¶
func (e CloneResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CloneResponseValidationError) ErrorName ¶
func (e CloneResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CloneResponseValidationError) Field ¶
func (e CloneResponseValidationError) Field() string
Field function returns field value.
func (CloneResponseValidationError) Key ¶
func (e CloneResponseValidationError) Key() bool
Key function returns key value.
func (CloneResponseValidationError) Reason ¶
func (e CloneResponseValidationError) Reason() string
Reason function returns reason value.
type CreateRequest ¶
type CreateRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` GitProjectId *int32 `protobuf:"varint,2,opt,name=git_project_id,json=gitProjectId,proto3,oneof" json:"git_project_id,omitempty"` MarsConfig *mars.Config `protobuf:"bytes,3,opt,name=mars_config,json=marsConfig,proto3" json:"mars_config,omitempty"` NeedGitRepo bool `protobuf:"varint,4,opt,name=need_git_repo,json=needGitRepo,proto3" json:"need_git_repo,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetDescription ¶
func (x *CreateRequest) GetDescription() string
func (*CreateRequest) GetGitProjectId ¶
func (x *CreateRequest) GetGitProjectId() int32
func (*CreateRequest) GetMarsConfig ¶
func (x *CreateRequest) GetMarsConfig() *mars.Config
func (*CreateRequest) GetName ¶
func (x *CreateRequest) GetName() string
func (*CreateRequest) GetNeedGitRepo ¶
func (x *CreateRequest) GetNeedGitRepo() bool
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
func (*CreateRequest) Validate ¶
func (m *CreateRequest) Validate() error
Validate checks the field values on CreateRequest 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 (*CreateRequest) ValidateAll ¶
func (m *CreateRequest) ValidateAll() error
ValidateAll checks the field values on CreateRequest 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 CreateRequestMultiError, or nil if none found.
type CreateRequestMultiError ¶
type CreateRequestMultiError []error
CreateRequestMultiError is an error wrapping multiple validation errors returned by CreateRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRequestMultiError) AllErrors ¶
func (m CreateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRequestMultiError) Error ¶
func (m CreateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRequestValidationError ¶
type CreateRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.
func (CreateRequestValidationError) Cause ¶
func (e CreateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRequestValidationError) Error ¶
func (e CreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequestValidationError) ErrorName ¶
func (e CreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequestValidationError) Field ¶
func (e CreateRequestValidationError) Field() string
Field function returns field value.
func (CreateRequestValidationError) Key ¶
func (e CreateRequestValidationError) Key() bool
Key function returns key value.
func (CreateRequestValidationError) Reason ¶
func (e CreateRequestValidationError) Reason() string
Reason function returns reason value.
type CreateResponse ¶
type CreateResponse struct { Item *types.RepoModel `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetItem ¶
func (x *CreateResponse) GetItem() *types.RepoModel
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
func (*CreateResponse) Validate ¶
func (m *CreateResponse) Validate() error
Validate checks the field values on CreateResponse 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 (*CreateResponse) ValidateAll ¶
func (m *CreateResponse) ValidateAll() error
ValidateAll checks the field values on CreateResponse 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 CreateResponseMultiError, or nil if none found.
type CreateResponseMultiError ¶
type CreateResponseMultiError []error
CreateResponseMultiError is an error wrapping multiple validation errors returned by CreateResponse.ValidateAll() if the designated constraints aren't met.
func (CreateResponseMultiError) AllErrors ¶
func (m CreateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateResponseMultiError) Error ¶
func (m CreateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateResponseValidationError ¶
type CreateResponseValidationError struct {
// contains filtered or unexported fields
}
CreateResponseValidationError is the validation error returned by CreateResponse.Validate if the designated constraints aren't met.
func (CreateResponseValidationError) Cause ¶
func (e CreateResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateResponseValidationError) Error ¶
func (e CreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateResponseValidationError) ErrorName ¶
func (e CreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateResponseValidationError) Field ¶
func (e CreateResponseValidationError) Field() string
Field function returns field value.
func (CreateResponseValidationError) Key ¶
func (e CreateResponseValidationError) Key() bool
Key function returns key value.
func (CreateResponseValidationError) Reason ¶
func (e CreateResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteRequest ¶
type DeleteRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() int32
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest 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 (*DeleteRequest) ValidateAll ¶
func (m *DeleteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRequest 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 DeleteRequestMultiError, or nil if none found.
type DeleteRequestMultiError ¶
type DeleteRequestMultiError []error
DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRequestMultiError) AllErrors ¶
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) Validate ¶
func (m *DeleteResponse) Validate() error
Validate checks the field values on DeleteResponse 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 (*DeleteResponse) ValidateAll ¶
func (m *DeleteResponse) ValidateAll() error
ValidateAll checks the field values on DeleteResponse 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 DeleteResponseMultiError, or nil if none found.
type DeleteResponseMultiError ¶
type DeleteResponseMultiError []error
DeleteResponseMultiError is an error wrapping multiple validation errors returned by DeleteResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteResponseMultiError) AllErrors ¶
func (m DeleteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteResponseMultiError) Error ¶
func (m DeleteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteResponseValidationError ¶
type DeleteResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.
func (DeleteResponseValidationError) Cause ¶
func (e DeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteResponseValidationError) Error ¶
func (e DeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteResponseValidationError) ErrorName ¶
func (e DeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteResponseValidationError) Field ¶
func (e DeleteResponseValidationError) Field() string
Field function returns field value.
func (DeleteResponseValidationError) Key ¶
func (e DeleteResponseValidationError) Key() bool
Key function returns key value.
func (DeleteResponseValidationError) Reason ¶
func (e DeleteResponseValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct { Page *int32 `protobuf:"varint,1,opt,name=page,proto3,oneof" json:"page,omitempty"` PageSize *int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3,oneof" json:"page_size,omitempty"` Enabled *bool `protobuf:"varint,3,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetEnabled ¶
func (x *ListRequest) GetEnabled() bool
func (*ListRequest) GetName ¶
func (x *ListRequest) GetName() string
func (*ListRequest) GetPage ¶
func (x *ListRequest) GetPage() int32
func (*ListRequest) GetPageSize ¶
func (x *ListRequest) GetPageSize() int32
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest 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 (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest 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 ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Items []*types.RepoModel `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCount ¶
func (x *ListResponse) GetCount() int32
func (*ListResponse) GetItems ¶
func (x *ListResponse) GetItems() []*types.RepoModel
func (*ListResponse) GetPage ¶
func (x *ListResponse) GetPage() int32
func (*ListResponse) GetPageSize ¶
func (x *ListResponse) GetPageSize() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse 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 (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse 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 ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type RepoClient ¶
type RepoClient interface { List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) Show(ctx context.Context, in *ShowRequest, opts ...grpc.CallOption) (*ShowResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) ToggleEnabled(ctx context.Context, in *ToggleEnabledRequest, opts ...grpc.CallOption) (*ToggleEnabledResponse, error) Clone(ctx context.Context, in *CloneRequest, opts ...grpc.CallOption) (*CloneResponse, error) }
RepoClient is the client API for Repo 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 NewRepoClient ¶
func NewRepoClient(cc grpc.ClientConnInterface) RepoClient
type RepoServer ¶
type RepoServer interface { List(context.Context, *ListRequest) (*ListResponse, error) Create(context.Context, *CreateRequest) (*CreateResponse, error) Show(context.Context, *ShowRequest) (*ShowResponse, error) Update(context.Context, *UpdateRequest) (*UpdateResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) ToggleEnabled(context.Context, *ToggleEnabledRequest) (*ToggleEnabledResponse, error) Clone(context.Context, *CloneRequest) (*CloneResponse, error) // contains filtered or unexported methods }
RepoServer is the server API for Repo service. All implementations must embed UnimplementedRepoServer for forward compatibility
type ShowRequest ¶
type ShowRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ShowRequest) Descriptor
deprecated
func (*ShowRequest) Descriptor() ([]byte, []int)
Deprecated: Use ShowRequest.ProtoReflect.Descriptor instead.
func (*ShowRequest) GetId ¶
func (x *ShowRequest) GetId() int32
func (*ShowRequest) ProtoMessage ¶
func (*ShowRequest) ProtoMessage()
func (*ShowRequest) ProtoReflect ¶
func (x *ShowRequest) ProtoReflect() protoreflect.Message
func (*ShowRequest) Reset ¶
func (x *ShowRequest) Reset()
func (*ShowRequest) String ¶
func (x *ShowRequest) String() string
func (*ShowRequest) Validate ¶
func (m *ShowRequest) Validate() error
Validate checks the field values on ShowRequest 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 (*ShowRequest) ValidateAll ¶
func (m *ShowRequest) ValidateAll() error
ValidateAll checks the field values on ShowRequest 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 ShowRequestMultiError, or nil if none found.
type ShowRequestMultiError ¶
type ShowRequestMultiError []error
ShowRequestMultiError is an error wrapping multiple validation errors returned by ShowRequest.ValidateAll() if the designated constraints aren't met.
func (ShowRequestMultiError) AllErrors ¶
func (m ShowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShowRequestMultiError) Error ¶
func (m ShowRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShowRequestValidationError ¶
type ShowRequestValidationError struct {
// contains filtered or unexported fields
}
ShowRequestValidationError is the validation error returned by ShowRequest.Validate if the designated constraints aren't met.
func (ShowRequestValidationError) Cause ¶
func (e ShowRequestValidationError) Cause() error
Cause function returns cause value.
func (ShowRequestValidationError) Error ¶
func (e ShowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ShowRequestValidationError) ErrorName ¶
func (e ShowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ShowRequestValidationError) Field ¶
func (e ShowRequestValidationError) Field() string
Field function returns field value.
func (ShowRequestValidationError) Key ¶
func (e ShowRequestValidationError) Key() bool
Key function returns key value.
func (ShowRequestValidationError) Reason ¶
func (e ShowRequestValidationError) Reason() string
Reason function returns reason value.
type ShowResponse ¶
type ShowResponse struct { Item *types.RepoModel `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*ShowResponse) Descriptor
deprecated
func (*ShowResponse) Descriptor() ([]byte, []int)
Deprecated: Use ShowResponse.ProtoReflect.Descriptor instead.
func (*ShowResponse) GetItem ¶
func (x *ShowResponse) GetItem() *types.RepoModel
func (*ShowResponse) ProtoMessage ¶
func (*ShowResponse) ProtoMessage()
func (*ShowResponse) ProtoReflect ¶
func (x *ShowResponse) ProtoReflect() protoreflect.Message
func (*ShowResponse) Reset ¶
func (x *ShowResponse) Reset()
func (*ShowResponse) String ¶
func (x *ShowResponse) String() string
func (*ShowResponse) Validate ¶
func (m *ShowResponse) Validate() error
Validate checks the field values on ShowResponse 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 (*ShowResponse) ValidateAll ¶
func (m *ShowResponse) ValidateAll() error
ValidateAll checks the field values on ShowResponse 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 ShowResponseMultiError, or nil if none found.
type ShowResponseMultiError ¶
type ShowResponseMultiError []error
ShowResponseMultiError is an error wrapping multiple validation errors returned by ShowResponse.ValidateAll() if the designated constraints aren't met.
func (ShowResponseMultiError) AllErrors ¶
func (m ShowResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ShowResponseMultiError) Error ¶
func (m ShowResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ShowResponseValidationError ¶
type ShowResponseValidationError struct {
// contains filtered or unexported fields
}
ShowResponseValidationError is the validation error returned by ShowResponse.Validate if the designated constraints aren't met.
func (ShowResponseValidationError) Cause ¶
func (e ShowResponseValidationError) Cause() error
Cause function returns cause value.
func (ShowResponseValidationError) Error ¶
func (e ShowResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ShowResponseValidationError) ErrorName ¶
func (e ShowResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ShowResponseValidationError) Field ¶
func (e ShowResponseValidationError) Field() string
Field function returns field value.
func (ShowResponseValidationError) Key ¶
func (e ShowResponseValidationError) Key() bool
Key function returns key value.
func (ShowResponseValidationError) Reason ¶
func (e ShowResponseValidationError) Reason() string
Reason function returns reason value.
type ToggleEnabledRequest ¶
type ToggleEnabledRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*ToggleEnabledRequest) Descriptor
deprecated
func (*ToggleEnabledRequest) Descriptor() ([]byte, []int)
Deprecated: Use ToggleEnabledRequest.ProtoReflect.Descriptor instead.
func (*ToggleEnabledRequest) GetEnabled ¶
func (x *ToggleEnabledRequest) GetEnabled() bool
func (*ToggleEnabledRequest) GetId ¶
func (x *ToggleEnabledRequest) GetId() int32
func (*ToggleEnabledRequest) ProtoMessage ¶
func (*ToggleEnabledRequest) ProtoMessage()
func (*ToggleEnabledRequest) ProtoReflect ¶
func (x *ToggleEnabledRequest) ProtoReflect() protoreflect.Message
func (*ToggleEnabledRequest) Reset ¶
func (x *ToggleEnabledRequest) Reset()
func (*ToggleEnabledRequest) String ¶
func (x *ToggleEnabledRequest) String() string
func (*ToggleEnabledRequest) Validate ¶
func (m *ToggleEnabledRequest) Validate() error
Validate checks the field values on ToggleEnabledRequest 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 (*ToggleEnabledRequest) ValidateAll ¶
func (m *ToggleEnabledRequest) ValidateAll() error
ValidateAll checks the field values on ToggleEnabledRequest 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 ToggleEnabledRequestMultiError, or nil if none found.
type ToggleEnabledRequestMultiError ¶
type ToggleEnabledRequestMultiError []error
ToggleEnabledRequestMultiError is an error wrapping multiple validation errors returned by ToggleEnabledRequest.ValidateAll() if the designated constraints aren't met.
func (ToggleEnabledRequestMultiError) AllErrors ¶
func (m ToggleEnabledRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ToggleEnabledRequestMultiError) Error ¶
func (m ToggleEnabledRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ToggleEnabledRequestValidationError ¶
type ToggleEnabledRequestValidationError struct {
// contains filtered or unexported fields
}
ToggleEnabledRequestValidationError is the validation error returned by ToggleEnabledRequest.Validate if the designated constraints aren't met.
func (ToggleEnabledRequestValidationError) Cause ¶
func (e ToggleEnabledRequestValidationError) Cause() error
Cause function returns cause value.
func (ToggleEnabledRequestValidationError) Error ¶
func (e ToggleEnabledRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ToggleEnabledRequestValidationError) ErrorName ¶
func (e ToggleEnabledRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ToggleEnabledRequestValidationError) Field ¶
func (e ToggleEnabledRequestValidationError) Field() string
Field function returns field value.
func (ToggleEnabledRequestValidationError) Key ¶
func (e ToggleEnabledRequestValidationError) Key() bool
Key function returns key value.
func (ToggleEnabledRequestValidationError) Reason ¶
func (e ToggleEnabledRequestValidationError) Reason() string
Reason function returns reason value.
type ToggleEnabledResponse ¶
type ToggleEnabledResponse struct { Item *types.RepoModel `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*ToggleEnabledResponse) Descriptor
deprecated
func (*ToggleEnabledResponse) Descriptor() ([]byte, []int)
Deprecated: Use ToggleEnabledResponse.ProtoReflect.Descriptor instead.
func (*ToggleEnabledResponse) GetItem ¶
func (x *ToggleEnabledResponse) GetItem() *types.RepoModel
func (*ToggleEnabledResponse) ProtoMessage ¶
func (*ToggleEnabledResponse) ProtoMessage()
func (*ToggleEnabledResponse) ProtoReflect ¶
func (x *ToggleEnabledResponse) ProtoReflect() protoreflect.Message
func (*ToggleEnabledResponse) Reset ¶
func (x *ToggleEnabledResponse) Reset()
func (*ToggleEnabledResponse) String ¶
func (x *ToggleEnabledResponse) String() string
func (*ToggleEnabledResponse) Validate ¶
func (m *ToggleEnabledResponse) Validate() error
Validate checks the field values on ToggleEnabledResponse 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 (*ToggleEnabledResponse) ValidateAll ¶
func (m *ToggleEnabledResponse) ValidateAll() error
ValidateAll checks the field values on ToggleEnabledResponse 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 ToggleEnabledResponseMultiError, or nil if none found.
type ToggleEnabledResponseMultiError ¶
type ToggleEnabledResponseMultiError []error
ToggleEnabledResponseMultiError is an error wrapping multiple validation errors returned by ToggleEnabledResponse.ValidateAll() if the designated constraints aren't met.
func (ToggleEnabledResponseMultiError) AllErrors ¶
func (m ToggleEnabledResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ToggleEnabledResponseMultiError) Error ¶
func (m ToggleEnabledResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ToggleEnabledResponseValidationError ¶
type ToggleEnabledResponseValidationError struct {
// contains filtered or unexported fields
}
ToggleEnabledResponseValidationError is the validation error returned by ToggleEnabledResponse.Validate if the designated constraints aren't met.
func (ToggleEnabledResponseValidationError) Cause ¶
func (e ToggleEnabledResponseValidationError) Cause() error
Cause function returns cause value.
func (ToggleEnabledResponseValidationError) Error ¶
func (e ToggleEnabledResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ToggleEnabledResponseValidationError) ErrorName ¶
func (e ToggleEnabledResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ToggleEnabledResponseValidationError) Field ¶
func (e ToggleEnabledResponseValidationError) Field() string
Field function returns field value.
func (ToggleEnabledResponseValidationError) Key ¶
func (e ToggleEnabledResponseValidationError) Key() bool
Key function returns key value.
func (ToggleEnabledResponseValidationError) Reason ¶
func (e ToggleEnabledResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedRepoServer ¶
type UnimplementedRepoServer struct { }
UnimplementedRepoServer must be embedded to have forward compatible implementations.
func (UnimplementedRepoServer) Clone ¶
func (UnimplementedRepoServer) Clone(context.Context, *CloneRequest) (*CloneResponse, error)
func (UnimplementedRepoServer) Create ¶
func (UnimplementedRepoServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedRepoServer) Delete ¶
func (UnimplementedRepoServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedRepoServer) List ¶
func (UnimplementedRepoServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedRepoServer) Show ¶
func (UnimplementedRepoServer) Show(context.Context, *ShowRequest) (*ShowResponse, error)
func (UnimplementedRepoServer) ToggleEnabled ¶
func (UnimplementedRepoServer) ToggleEnabled(context.Context, *ToggleEnabledRequest) (*ToggleEnabledResponse, error)
func (UnimplementedRepoServer) Update ¶
func (UnimplementedRepoServer) Update(context.Context, *UpdateRequest) (*UpdateResponse, error)
type UnsafeRepoServer ¶
type UnsafeRepoServer interface {
// contains filtered or unexported methods
}
UnsafeRepoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RepoServer will result in compilation errors.
type UpdateRequest ¶
type UpdateRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` GitProjectId *int32 `protobuf:"varint,3,opt,name=git_project_id,json=gitProjectId,proto3,oneof" json:"git_project_id,omitempty"` MarsConfig *mars.Config `protobuf:"bytes,4,opt,name=mars_config,json=marsConfig,proto3" json:"mars_config,omitempty"` NeedGitRepo bool `protobuf:"varint,5,opt,name=need_git_repo,json=needGitRepo,proto3" json:"need_git_repo,omitempty"` Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateRequest) Descriptor
deprecated
func (*UpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRequest.ProtoReflect.Descriptor instead.
func (*UpdateRequest) GetDescription ¶
func (x *UpdateRequest) GetDescription() string
func (*UpdateRequest) GetGitProjectId ¶
func (x *UpdateRequest) GetGitProjectId() int32
func (*UpdateRequest) GetId ¶
func (x *UpdateRequest) GetId() int32
func (*UpdateRequest) GetMarsConfig ¶
func (x *UpdateRequest) GetMarsConfig() *mars.Config
func (*UpdateRequest) GetName ¶
func (x *UpdateRequest) GetName() string
func (*UpdateRequest) GetNeedGitRepo ¶
func (x *UpdateRequest) GetNeedGitRepo() bool
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) ProtoReflect ¶
func (x *UpdateRequest) ProtoReflect() protoreflect.Message
func (*UpdateRequest) Reset ¶
func (x *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (x *UpdateRequest) String() string
func (*UpdateRequest) Validate ¶
func (m *UpdateRequest) Validate() error
Validate checks the field values on UpdateRequest 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 (*UpdateRequest) ValidateAll ¶
func (m *UpdateRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRequest 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 UpdateRequestMultiError, or nil if none found.
type UpdateRequestMultiError ¶
type UpdateRequestMultiError []error
UpdateRequestMultiError is an error wrapping multiple validation errors returned by UpdateRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRequestMultiError) AllErrors ¶
func (m UpdateRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRequestMultiError) Error ¶
func (m UpdateRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRequestValidationError ¶
type UpdateRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRequestValidationError is the validation error returned by UpdateRequest.Validate if the designated constraints aren't met.
func (UpdateRequestValidationError) Cause ¶
func (e UpdateRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRequestValidationError) Error ¶
func (e UpdateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRequestValidationError) ErrorName ¶
func (e UpdateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRequestValidationError) Field ¶
func (e UpdateRequestValidationError) Field() string
Field function returns field value.
func (UpdateRequestValidationError) Key ¶
func (e UpdateRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRequestValidationError) Reason ¶
func (e UpdateRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateResponse ¶
type UpdateResponse struct { Item *types.RepoModel `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` // contains filtered or unexported fields }
func (*UpdateResponse) Descriptor
deprecated
func (*UpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateResponse.ProtoReflect.Descriptor instead.
func (*UpdateResponse) GetItem ¶
func (x *UpdateResponse) GetItem() *types.RepoModel
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) ProtoReflect ¶
func (x *UpdateResponse) ProtoReflect() protoreflect.Message
func (*UpdateResponse) Reset ¶
func (x *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (x *UpdateResponse) String() string
func (*UpdateResponse) Validate ¶
func (m *UpdateResponse) Validate() error
Validate checks the field values on UpdateResponse 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 (*UpdateResponse) ValidateAll ¶
func (m *UpdateResponse) ValidateAll() error
ValidateAll checks the field values on UpdateResponse 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 UpdateResponseMultiError, or nil if none found.
type UpdateResponseMultiError ¶
type UpdateResponseMultiError []error
UpdateResponseMultiError is an error wrapping multiple validation errors returned by UpdateResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateResponseMultiError) AllErrors ¶
func (m UpdateResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateResponseMultiError) Error ¶
func (m UpdateResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateResponseValidationError ¶
type UpdateResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateResponseValidationError is the validation error returned by UpdateResponse.Validate if the designated constraints aren't met.
func (UpdateResponseValidationError) Cause ¶
func (e UpdateResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateResponseValidationError) Error ¶
func (e UpdateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateResponseValidationError) ErrorName ¶
func (e UpdateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateResponseValidationError) Field ¶
func (e UpdateResponseValidationError) Field() string
Field function returns field value.
func (UpdateResponseValidationError) Key ¶
func (e UpdateResponseValidationError) Key() bool
Key function returns key value.
func (UpdateResponseValidationError) Reason ¶
func (e UpdateResponseValidationError) Reason() string
Reason function returns reason value.