Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorDeleteProductError(format string, args ...interface{}) *errors.Error
- func ErrorDeleteProjectError(format string, args ...interface{}) *errors.Error
- func ErrorProviderNotFound(format string, args ...interface{}) *errors.Error
- func ErrorSaveProductError(format string, args ...interface{}) *errors.Error
- func ErrorSaveProjectError(format string, args ...interface{}) *errors.Error
- func ErrorTokenNotFound(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func IsDeleteProductError(err error) bool
- func IsDeleteProjectError(err error) bool
- func IsProviderNotFound(err error) bool
- func IsSaveProductError(err error) bool
- func IsSaveProjectError(err error) bool
- func IsTokenNotFound(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterProductHTTPServer(s *http.Server, srv ProductHTTPServer)
- func RegisterProductServer(s grpc.ServiceRegistrar, srv ProductServer)
- type DeleteProductReply
- func (*DeleteProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductReply) GetMsg() string
- func (*DeleteProductReply) ProtoMessage()
- func (x *DeleteProductReply) ProtoReflect() protoreflect.Message
- func (x *DeleteProductReply) Reset()
- func (x *DeleteProductReply) String() string
- func (m *DeleteProductReply) Validate() error
- func (m *DeleteProductReply) ValidateAll() error
- type DeleteProductReplyMultiError
- type DeleteProductReplyValidationError
- func (e DeleteProductReplyValidationError) Cause() error
- func (e DeleteProductReplyValidationError) Error() string
- func (e DeleteProductReplyValidationError) ErrorName() string
- func (e DeleteProductReplyValidationError) Field() string
- func (e DeleteProductReplyValidationError) Key() bool
- func (e DeleteProductReplyValidationError) Reason() string
- type DeleteProductRequest
- func (*DeleteProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductRequest) GetProductName() string
- func (*DeleteProductRequest) ProtoMessage()
- func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProductRequest) Reset()
- func (x *DeleteProductRequest) String() string
- func (m *DeleteProductRequest) Validate() error
- func (m *DeleteProductRequest) ValidateAll() error
- type DeleteProductRequestMultiError
- type DeleteProductRequestValidationError
- func (e DeleteProductRequestValidationError) Cause() error
- func (e DeleteProductRequestValidationError) Error() string
- func (e DeleteProductRequestValidationError) ErrorName() string
- func (e DeleteProductRequestValidationError) Field() string
- func (e DeleteProductRequestValidationError) Key() bool
- func (e DeleteProductRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetProductReply
- func (*GetProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductReply) GetGit() *GitGroup
- func (x *GetProductReply) GetName() string
- func (*GetProductReply) ProtoMessage()
- func (x *GetProductReply) ProtoReflect() protoreflect.Message
- func (x *GetProductReply) Reset()
- func (x *GetProductReply) String() string
- func (m *GetProductReply) Validate() error
- func (m *GetProductReply) ValidateAll() error
- type GetProductReplyMultiError
- type GetProductReplyValidationError
- func (e GetProductReplyValidationError) Cause() error
- func (e GetProductReplyValidationError) Error() string
- func (e GetProductReplyValidationError) ErrorName() string
- func (e GetProductReplyValidationError) Field() string
- func (e GetProductReplyValidationError) Key() bool
- func (e GetProductReplyValidationError) Reason() string
- type GetProductRequest
- func (*GetProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductRequest) GetProductName() string
- func (*GetProductRequest) ProtoMessage()
- func (x *GetProductRequest) ProtoReflect() protoreflect.Message
- func (x *GetProductRequest) Reset()
- func (x *GetProductRequest) String() string
- func (m *GetProductRequest) Validate() error
- func (m *GetProductRequest) ValidateAll() error
- type GetProductRequestMultiError
- type GetProductRequestValidationError
- func (e GetProductRequestValidationError) Cause() error
- func (e GetProductRequestValidationError) Error() string
- func (e GetProductRequestValidationError) ErrorName() string
- func (e GetProductRequestValidationError) Field() string
- func (e GetProductRequestValidationError) Key() bool
- func (e GetProductRequestValidationError) Reason() string
- type Git
- func (*Git) Descriptor() ([]byte, []int)deprecated
- func (x *Git) GetGithub() *Github
- func (x *Git) GetGitlab() *Gitlab
- func (*Git) ProtoMessage()
- func (x *Git) ProtoReflect() protoreflect.Message
- func (x *Git) Reset()
- func (x *Git) String() string
- func (m *Git) Validate() error
- func (m *Git) ValidateAll() error
- type GitGroup
- func (*GitGroup) Descriptor() ([]byte, []int)deprecated
- func (x *GitGroup) GetGithub() *GithubGroup
- func (x *GitGroup) GetGitlab() *GitlabGroup
- func (*GitGroup) ProtoMessage()
- func (x *GitGroup) ProtoReflect() protoreflect.Message
- func (x *GitGroup) Reset()
- func (x *GitGroup) String() string
- func (m *GitGroup) Validate() error
- func (m *GitGroup) ValidateAll() error
- type GitGroupMultiError
- type GitGroupValidationError
- type GitMultiError
- type GitValidationError
- type Github
- func (*Github) Descriptor() ([]byte, []int)deprecated
- func (x *Github) GetDescription() string
- func (x *Github) GetName() string
- func (x *Github) GetPath() string
- func (x *Github) GetVisibility() string
- func (*Github) ProtoMessage()
- func (x *Github) ProtoReflect() protoreflect.Message
- func (x *Github) Reset()
- func (x *Github) String() string
- func (m *Github) Validate() error
- func (m *Github) ValidateAll() error
- type GithubGroup
- func (*GithubGroup) Descriptor() ([]byte, []int)deprecated
- func (x *GithubGroup) GetDescription() string
- func (x *GithubGroup) GetPath() string
- func (x *GithubGroup) GetVisibility() string
- func (*GithubGroup) ProtoMessage()
- func (x *GithubGroup) ProtoReflect() protoreflect.Message
- func (x *GithubGroup) Reset()
- func (x *GithubGroup) String() string
- func (m *GithubGroup) Validate() error
- func (m *GithubGroup) ValidateAll() error
- type GithubGroupMultiError
- type GithubGroupValidationError
- func (e GithubGroupValidationError) Cause() error
- func (e GithubGroupValidationError) Error() string
- func (e GithubGroupValidationError) ErrorName() string
- func (e GithubGroupValidationError) Field() string
- func (e GithubGroupValidationError) Key() bool
- func (e GithubGroupValidationError) Reason() string
- type GithubMultiError
- type GithubValidationError
- type Gitlab
- func (*Gitlab) Descriptor() ([]byte, []int)deprecated
- func (x *Gitlab) GetDescription() string
- func (x *Gitlab) GetName() string
- func (x *Gitlab) GetPath() string
- func (x *Gitlab) GetVisibility() string
- func (*Gitlab) ProtoMessage()
- func (x *Gitlab) ProtoReflect() protoreflect.Message
- func (x *Gitlab) Reset()
- func (x *Gitlab) String() string
- func (m *Gitlab) Validate() error
- func (m *Gitlab) ValidateAll() error
- type GitlabGroup
- func (*GitlabGroup) Descriptor() ([]byte, []int)deprecated
- func (x *GitlabGroup) GetDescription() string
- func (x *GitlabGroup) GetPath() string
- func (x *GitlabGroup) GetVisibility() string
- func (*GitlabGroup) ProtoMessage()
- func (x *GitlabGroup) ProtoReflect() protoreflect.Message
- func (x *GitlabGroup) Reset()
- func (x *GitlabGroup) String() string
- func (m *GitlabGroup) Validate() error
- func (m *GitlabGroup) ValidateAll() error
- type GitlabGroupMultiError
- type GitlabGroupValidationError
- func (e GitlabGroupValidationError) Cause() error
- func (e GitlabGroupValidationError) Error() string
- func (e GitlabGroupValidationError) ErrorName() string
- func (e GitlabGroupValidationError) Field() string
- func (e GitlabGroupValidationError) Key() bool
- func (e GitlabGroupValidationError) Reason() string
- type GitlabMultiError
- type GitlabValidationError
- type ListProductsReply
- func (*ListProductsReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsReply) GetItems() []*GetProductReply
- func (*ListProductsReply) ProtoMessage()
- func (x *ListProductsReply) ProtoReflect() protoreflect.Message
- func (x *ListProductsReply) Reset()
- func (x *ListProductsReply) String() string
- func (m *ListProductsReply) Validate() error
- func (m *ListProductsReply) ValidateAll() error
- type ListProductsReplyMultiError
- type ListProductsReplyValidationError
- func (e ListProductsReplyValidationError) Cause() error
- func (e ListProductsReplyValidationError) Error() string
- func (e ListProductsReplyValidationError) ErrorName() string
- func (e ListProductsReplyValidationError) Field() string
- func (e ListProductsReplyValidationError) Key() bool
- func (e ListProductsReplyValidationError) Reason() string
- type ListProductsRequest
- func (*ListProductsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListProductsRequest) GetFieldSelector() string
- func (*ListProductsRequest) ProtoMessage()
- func (x *ListProductsRequest) ProtoReflect() protoreflect.Message
- func (x *ListProductsRequest) Reset()
- func (x *ListProductsRequest) String() string
- func (m *ListProductsRequest) Validate() error
- func (m *ListProductsRequest) ValidateAll() error
- type ListProductsRequestMultiError
- type ListProductsRequestValidationError
- func (e ListProductsRequestValidationError) Cause() error
- func (e ListProductsRequestValidationError) Error() string
- func (e ListProductsRequestValidationError) ErrorName() string
- func (e ListProductsRequestValidationError) Field() string
- func (e ListProductsRequestValidationError) Key() bool
- func (e ListProductsRequestValidationError) Reason() string
- type ProductClient
- type ProductHTTPClient
- type ProductHTTPClientImpl
- func (c *ProductHTTPClientImpl) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...http.CallOption) (*DeleteProductReply, error)
- func (c *ProductHTTPClientImpl) GetProduct(ctx context.Context, in *GetProductRequest, opts ...http.CallOption) (*GetProductReply, error)
- func (c *ProductHTTPClientImpl) ListProducts(ctx context.Context, in *ListProductsRequest, opts ...http.CallOption) (*ListProductsReply, error)
- func (c *ProductHTTPClientImpl) SaveProduct(ctx context.Context, in *SaveProductRequest, opts ...http.CallOption) (*SaveProductReply, error)
- type ProductHTTPServer
- type ProductServer
- type SaveProductReply
- func (*SaveProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *SaveProductReply) GetMsg() string
- func (*SaveProductReply) ProtoMessage()
- func (x *SaveProductReply) ProtoReflect() protoreflect.Message
- func (x *SaveProductReply) Reset()
- func (x *SaveProductReply) String() string
- func (m *SaveProductReply) Validate() error
- func (m *SaveProductReply) ValidateAll() error
- type SaveProductReplyMultiError
- type SaveProductReplyValidationError
- func (e SaveProductReplyValidationError) Cause() error
- func (e SaveProductReplyValidationError) Error() string
- func (e SaveProductReplyValidationError) ErrorName() string
- func (e SaveProductReplyValidationError) Field() string
- func (e SaveProductReplyValidationError) Key() bool
- func (e SaveProductReplyValidationError) Reason() string
- type SaveProductRequest
- func (*SaveProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SaveProductRequest) GetGit() *Git
- func (x *SaveProductRequest) GetProductName() string
- func (*SaveProductRequest) ProtoMessage()
- func (x *SaveProductRequest) ProtoReflect() protoreflect.Message
- func (x *SaveProductRequest) Reset()
- func (x *SaveProductRequest) String() string
- func (m *SaveProductRequest) Validate() error
- func (m *SaveProductRequest) ValidateAll() error
- type SaveProductRequestMultiError
- type SaveProductRequestValidationError
- func (e SaveProductRequestValidationError) Cause() error
- func (e SaveProductRequestValidationError) Error() string
- func (e SaveProductRequestValidationError) ErrorName() string
- func (e SaveProductRequestValidationError) Field() string
- func (e SaveProductRequestValidationError) Key() bool
- func (e SaveProductRequestValidationError) Reason() string
- type UnimplementedProductServer
- func (UnimplementedProductServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductReply, error)
- func (UnimplementedProductServer) GetProduct(context.Context, *GetProductRequest) (*GetProductReply, error)
- func (UnimplementedProductServer) ListProducts(context.Context, *ListProductsRequest) (*ListProductsReply, error)
- func (UnimplementedProductServer) SaveProduct(context.Context, *SaveProductRequest) (*SaveProductReply, error)
- type UnsafeProductServer
Constants ¶
const ( Product_GetProduct_FullMethodName = "/api.product.v1.Product/GetProduct" Product_ListProducts_FullMethodName = "/api.product.v1.Product/ListProducts" Product_SaveProduct_FullMethodName = "/api.product.v1.Product/SaveProduct" Product_DeleteProduct_FullMethodName = "/api.product.v1.Product/DeleteProduct" )
const OperationProductDeleteProduct = "/api.product.v1.Product/DeleteProduct"
const OperationProductGetProduct = "/api.product.v1.Product/GetProduct"
const OperationProductListProducts = "/api.product.v1.Product/ListProducts"
const OperationProductSaveProduct = "/api.product.v1.Product/SaveProduct"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "USER_NOT_FOUND", 1: "PROVIDER_NOT_FOUND", 2: "TOKEN_NOT_FOUND", 3: "SAVE_PRODUCT_ERROR", 4: "DELETE_PRODUCT_ERROR", 5: "SAVE_PROJECT_ERROR", 6: "DELETE_PROJECT_ERROR", } ErrorReason_value = map[string]int32{ "USER_NOT_FOUND": 0, "PROVIDER_NOT_FOUND": 1, "TOKEN_NOT_FOUND": 2, "SAVE_PRODUCT_ERROR": 3, "DELETE_PRODUCT_ERROR": 4, "SAVE_PROJECT_ERROR": 5, "DELETE_PROJECT_ERROR": 6, } )
Enum value maps for ErrorReason.
var File_product_v1_error_reason_proto protoreflect.FileDescriptor
var File_product_v1_product_proto protoreflect.FileDescriptor
var Product_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.product.v1.Product", HandlerType: (*ProductServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProduct", Handler: _Product_GetProduct_Handler, }, { MethodName: "ListProducts", Handler: _Product_ListProducts_Handler, }, { MethodName: "SaveProduct", Handler: _Product_SaveProduct_Handler, }, { MethodName: "DeleteProduct", Handler: _Product_DeleteProduct_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "product/v1/product.proto", }
Product_ServiceDesc is the grpc.ServiceDesc for Product service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorDeleteProductError ¶
func ErrorDeleteProjectError ¶
func ErrorProviderNotFound ¶
func ErrorSaveProductError ¶
func ErrorSaveProjectError ¶
func ErrorTokenNotFound ¶
func ErrorUserNotFound ¶
func IsDeleteProductError ¶
func IsDeleteProjectError ¶
func IsProviderNotFound ¶
func IsSaveProductError ¶
func IsSaveProjectError ¶
func IsTokenNotFound ¶
func IsUserNotFound ¶
func RegisterProductHTTPServer ¶
func RegisterProductHTTPServer(s *http.Server, srv ProductHTTPServer)
func RegisterProductServer ¶
func RegisterProductServer(s grpc.ServiceRegistrar, srv ProductServer)
Types ¶
type DeleteProductReply ¶
type DeleteProductReply struct { // The message returned after deleting the product Msg string `protobuf:"bytes,1,opt,name=msg,json=message,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*DeleteProductReply) Descriptor
deprecated
func (*DeleteProductReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReply.ProtoReflect.Descriptor instead.
func (*DeleteProductReply) GetMsg ¶
func (x *DeleteProductReply) GetMsg() string
func (*DeleteProductReply) ProtoMessage ¶
func (*DeleteProductReply) ProtoMessage()
func (*DeleteProductReply) ProtoReflect ¶
func (x *DeleteProductReply) ProtoReflect() protoreflect.Message
func (*DeleteProductReply) Reset ¶
func (x *DeleteProductReply) Reset()
func (*DeleteProductReply) String ¶
func (x *DeleteProductReply) String() string
func (*DeleteProductReply) Validate ¶
func (m *DeleteProductReply) Validate() error
Validate checks the field values on DeleteProductReply 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 (*DeleteProductReply) ValidateAll ¶
func (m *DeleteProductReply) ValidateAll() error
ValidateAll checks the field values on DeleteProductReply 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 DeleteProductReplyMultiError, or nil if none found.
type DeleteProductReplyMultiError ¶
type DeleteProductReplyMultiError []error
DeleteProductReplyMultiError is an error wrapping multiple validation errors returned by DeleteProductReply.ValidateAll() if the designated constraints aren't met.
func (DeleteProductReplyMultiError) AllErrors ¶
func (m DeleteProductReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteProductReplyMultiError) Error ¶
func (m DeleteProductReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteProductReplyValidationError ¶
type DeleteProductReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteProductReplyValidationError is the validation error returned by DeleteProductReply.Validate if the designated constraints aren't met.
func (DeleteProductReplyValidationError) Cause ¶
func (e DeleteProductReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductReplyValidationError) Error ¶
func (e DeleteProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductReplyValidationError) ErrorName ¶
func (e DeleteProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductReplyValidationError) Field ¶
func (e DeleteProductReplyValidationError) Field() string
Field function returns field value.
func (DeleteProductReplyValidationError) Key ¶
func (e DeleteProductReplyValidationError) Key() bool
Key function returns key value.
func (DeleteProductReplyValidationError) Reason ¶
func (e DeleteProductReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteProductRequest ¶
type DeleteProductRequest struct { // The name of the product to delete ProductName string `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"` // contains filtered or unexported fields }
func (*DeleteProductRequest) Descriptor
deprecated
func (*DeleteProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.
func (*DeleteProductRequest) GetProductName ¶
func (x *DeleteProductRequest) GetProductName() string
func (*DeleteProductRequest) ProtoMessage ¶
func (*DeleteProductRequest) ProtoMessage()
func (*DeleteProductRequest) ProtoReflect ¶
func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message
func (*DeleteProductRequest) Reset ¶
func (x *DeleteProductRequest) Reset()
func (*DeleteProductRequest) String ¶
func (x *DeleteProductRequest) String() string
func (*DeleteProductRequest) Validate ¶
func (m *DeleteProductRequest) Validate() error
Validate checks the field values on DeleteProductRequest 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 (*DeleteProductRequest) ValidateAll ¶
func (m *DeleteProductRequest) ValidateAll() error
ValidateAll checks the field values on DeleteProductRequest 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 DeleteProductRequestMultiError, or nil if none found.
type DeleteProductRequestMultiError ¶
type DeleteProductRequestMultiError []error
DeleteProductRequestMultiError is an error wrapping multiple validation errors returned by DeleteProductRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteProductRequestMultiError) AllErrors ¶
func (m DeleteProductRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteProductRequestMultiError) Error ¶
func (m DeleteProductRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteProductRequestValidationError ¶
type DeleteProductRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteProductRequestValidationError is the validation error returned by DeleteProductRequest.Validate if the designated constraints aren't met.
func (DeleteProductRequestValidationError) Cause ¶
func (e DeleteProductRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductRequestValidationError) Error ¶
func (e DeleteProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductRequestValidationError) ErrorName ¶
func (e DeleteProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductRequestValidationError) Field ¶
func (e DeleteProductRequestValidationError) Field() string
Field function returns field value.
func (DeleteProductRequestValidationError) Key ¶
func (e DeleteProductRequestValidationError) Key() bool
Key function returns key value.
func (DeleteProductRequestValidationError) Reason ¶
func (e DeleteProductRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_USER_NOT_FOUND ErrorReason = 0 ErrorReason_PROVIDER_NOT_FOUND ErrorReason = 1 ErrorReason_TOKEN_NOT_FOUND ErrorReason = 2 ErrorReason_SAVE_PRODUCT_ERROR ErrorReason = 3 ErrorReason_DELETE_PRODUCT_ERROR ErrorReason = 4 ErrorReason_SAVE_PROJECT_ERROR ErrorReason = 5 ErrorReason_DELETE_PROJECT_ERROR ErrorReason = 6 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetProductReply ¶
type GetProductReply struct { // The name of the product Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"` // The Git group of the product Git *GitGroup `protobuf:"bytes,2,opt,name=git,proto3" json:"git,omitempty"` // contains filtered or unexported fields }
func (*GetProductReply) Descriptor
deprecated
func (*GetProductReply) Descriptor() ([]byte, []int)
Deprecated: Use GetProductReply.ProtoReflect.Descriptor instead.
func (*GetProductReply) GetGit ¶
func (x *GetProductReply) GetGit() *GitGroup
func (*GetProductReply) GetName ¶
func (x *GetProductReply) GetName() string
func (*GetProductReply) ProtoMessage ¶
func (*GetProductReply) ProtoMessage()
func (*GetProductReply) ProtoReflect ¶
func (x *GetProductReply) ProtoReflect() protoreflect.Message
func (*GetProductReply) Reset ¶
func (x *GetProductReply) Reset()
func (*GetProductReply) String ¶
func (x *GetProductReply) String() string
func (*GetProductReply) Validate ¶
func (m *GetProductReply) Validate() error
Validate checks the field values on GetProductReply 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 (*GetProductReply) ValidateAll ¶
func (m *GetProductReply) ValidateAll() error
ValidateAll checks the field values on GetProductReply 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 GetProductReplyMultiError, or nil if none found.
type GetProductReplyMultiError ¶
type GetProductReplyMultiError []error
GetProductReplyMultiError is an error wrapping multiple validation errors returned by GetProductReply.ValidateAll() if the designated constraints aren't met.
func (GetProductReplyMultiError) AllErrors ¶
func (m GetProductReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetProductReplyMultiError) Error ¶
func (m GetProductReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetProductReplyValidationError ¶
type GetProductReplyValidationError struct {
// contains filtered or unexported fields
}
GetProductReplyValidationError is the validation error returned by GetProductReply.Validate if the designated constraints aren't met.
func (GetProductReplyValidationError) Cause ¶
func (e GetProductReplyValidationError) Cause() error
Cause function returns cause value.
func (GetProductReplyValidationError) Error ¶
func (e GetProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductReplyValidationError) ErrorName ¶
func (e GetProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductReplyValidationError) Field ¶
func (e GetProductReplyValidationError) Field() string
Field function returns field value.
func (GetProductReplyValidationError) Key ¶
func (e GetProductReplyValidationError) Key() bool
Key function returns key value.
func (GetProductReplyValidationError) Reason ¶
func (e GetProductReplyValidationError) Reason() string
Reason function returns reason value.
type GetProductRequest ¶
type GetProductRequest struct { // The name of the product to get ProductName string `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"` // contains filtered or unexported fields }
func (*GetProductRequest) Descriptor
deprecated
func (*GetProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.
func (*GetProductRequest) GetProductName ¶
func (x *GetProductRequest) GetProductName() string
func (*GetProductRequest) ProtoMessage ¶
func (*GetProductRequest) ProtoMessage()
func (*GetProductRequest) ProtoReflect ¶
func (x *GetProductRequest) ProtoReflect() protoreflect.Message
func (*GetProductRequest) Reset ¶
func (x *GetProductRequest) Reset()
func (*GetProductRequest) String ¶
func (x *GetProductRequest) String() string
func (*GetProductRequest) Validate ¶
func (m *GetProductRequest) Validate() error
Validate checks the field values on GetProductRequest 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 (*GetProductRequest) ValidateAll ¶
func (m *GetProductRequest) ValidateAll() error
ValidateAll checks the field values on GetProductRequest 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 GetProductRequestMultiError, or nil if none found.
type GetProductRequestMultiError ¶
type GetProductRequestMultiError []error
GetProductRequestMultiError is an error wrapping multiple validation errors returned by GetProductRequest.ValidateAll() if the designated constraints aren't met.
func (GetProductRequestMultiError) AllErrors ¶
func (m GetProductRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetProductRequestMultiError) Error ¶
func (m GetProductRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetProductRequestValidationError ¶
type GetProductRequestValidationError struct {
// contains filtered or unexported fields
}
GetProductRequestValidationError is the validation error returned by GetProductRequest.Validate if the designated constraints aren't met.
func (GetProductRequestValidationError) Cause ¶
func (e GetProductRequestValidationError) Cause() error
Cause function returns cause value.
func (GetProductRequestValidationError) Error ¶
func (e GetProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductRequestValidationError) ErrorName ¶
func (e GetProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductRequestValidationError) Field ¶
func (e GetProductRequestValidationError) Field() string
Field function returns field value.
func (GetProductRequestValidationError) Key ¶
func (e GetProductRequestValidationError) Key() bool
Key function returns key value.
func (GetProductRequestValidationError) Reason ¶
func (e GetProductRequestValidationError) Reason() string
Reason function returns reason value.
type Git ¶
type Git struct { // The Gitlab repository of the Git group Gitlab *Gitlab `protobuf:"bytes,1,opt,name=gitlab,proto3" json:"gitlab,omitempty"` // The Github repository of the Git group Github *Github `protobuf:"bytes,2,opt,name=github,proto3" json:"github,omitempty"` // contains filtered or unexported fields }
func (*Git) Descriptor
deprecated
func (*Git) ProtoMessage ¶
func (*Git) ProtoMessage()
func (*Git) ProtoReflect ¶
func (x *Git) ProtoReflect() protoreflect.Message
func (*Git) Validate ¶
Validate checks the field values on Git 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 (*Git) ValidateAll ¶
ValidateAll checks the field values on Git 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 GitMultiError, or nil if none found.
type GitGroup ¶
type GitGroup struct { // The Gitlab group of the Git group Gitlab *GitlabGroup `protobuf:"bytes,1,opt,name=gitlab,proto3" json:"gitlab,omitempty"` // The Github group of the Git group Github *GithubGroup `protobuf:"bytes,2,opt,name=github,proto3" json:"github,omitempty"` // contains filtered or unexported fields }
func (*GitGroup) Descriptor
deprecated
func (*GitGroup) GetGithub ¶
func (x *GitGroup) GetGithub() *GithubGroup
func (*GitGroup) GetGitlab ¶
func (x *GitGroup) GetGitlab() *GitlabGroup
func (*GitGroup) ProtoMessage ¶
func (*GitGroup) ProtoMessage()
func (*GitGroup) ProtoReflect ¶
func (x *GitGroup) ProtoReflect() protoreflect.Message
func (*GitGroup) Validate ¶
Validate checks the field values on GitGroup 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 (*GitGroup) ValidateAll ¶
ValidateAll checks the field values on GitGroup 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 GitGroupMultiError, or nil if none found.
type GitGroupMultiError ¶
type GitGroupMultiError []error
GitGroupMultiError is an error wrapping multiple validation errors returned by GitGroup.ValidateAll() if the designated constraints aren't met.
func (GitGroupMultiError) AllErrors ¶
func (m GitGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GitGroupMultiError) Error ¶
func (m GitGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GitGroupValidationError ¶
type GitGroupValidationError struct {
// contains filtered or unexported fields
}
GitGroupValidationError is the validation error returned by GitGroup.Validate if the designated constraints aren't met.
func (GitGroupValidationError) Cause ¶
func (e GitGroupValidationError) Cause() error
Cause function returns cause value.
func (GitGroupValidationError) Error ¶
func (e GitGroupValidationError) Error() string
Error satisfies the builtin error interface
func (GitGroupValidationError) ErrorName ¶
func (e GitGroupValidationError) ErrorName() string
ErrorName returns error name.
func (GitGroupValidationError) Field ¶
func (e GitGroupValidationError) Field() string
Field function returns field value.
func (GitGroupValidationError) Key ¶
func (e GitGroupValidationError) Key() bool
Key function returns key value.
func (GitGroupValidationError) Reason ¶
func (e GitGroupValidationError) Reason() string
Reason function returns reason value.
type GitMultiError ¶
type GitMultiError []error
GitMultiError is an error wrapping multiple validation errors returned by Git.ValidateAll() if the designated constraints aren't met.
func (GitMultiError) AllErrors ¶
func (m GitMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GitMultiError) Error ¶
func (m GitMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GitValidationError ¶
type GitValidationError struct {
// contains filtered or unexported fields
}
GitValidationError is the validation error returned by Git.Validate if the designated constraints aren't met.
func (GitValidationError) Cause ¶
func (e GitValidationError) Cause() error
Cause function returns cause value.
func (GitValidationError) Error ¶
func (e GitValidationError) Error() string
Error satisfies the builtin error interface
func (GitValidationError) ErrorName ¶
func (e GitValidationError) ErrorName() string
ErrorName returns error name.
func (GitValidationError) Field ¶
func (e GitValidationError) Field() string
Field function returns field value.
func (GitValidationError) Key ¶
func (e GitValidationError) Key() bool
Key function returns key value.
func (GitValidationError) Reason ¶
func (e GitValidationError) Reason() string
Reason function returns reason value.
type Github ¶
type Github struct { // The name of the Github repository Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The path of the Github repository Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The visibility of the Github repository, which can only be "public" or "private" Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"` // The description of the Github repository Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Github) Descriptor
deprecated
func (*Github) GetDescription ¶
func (*Github) GetVisibility ¶
func (*Github) ProtoMessage ¶
func (*Github) ProtoMessage()
func (*Github) ProtoReflect ¶
func (x *Github) ProtoReflect() protoreflect.Message
func (*Github) Validate ¶
Validate checks the field values on Github 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 (*Github) ValidateAll ¶
ValidateAll checks the field values on Github 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 GithubMultiError, or nil if none found.
type GithubGroup ¶
type GithubGroup struct { // The path of the Github group Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The visibility of the Github group Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"` // The description of the Github group Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*GithubGroup) Descriptor
deprecated
func (*GithubGroup) Descriptor() ([]byte, []int)
Deprecated: Use GithubGroup.ProtoReflect.Descriptor instead.
func (*GithubGroup) GetDescription ¶
func (x *GithubGroup) GetDescription() string
func (*GithubGroup) GetPath ¶
func (x *GithubGroup) GetPath() string
func (*GithubGroup) GetVisibility ¶
func (x *GithubGroup) GetVisibility() string
func (*GithubGroup) ProtoMessage ¶
func (*GithubGroup) ProtoMessage()
func (*GithubGroup) ProtoReflect ¶
func (x *GithubGroup) ProtoReflect() protoreflect.Message
func (*GithubGroup) Reset ¶
func (x *GithubGroup) Reset()
func (*GithubGroup) String ¶
func (x *GithubGroup) String() string
func (*GithubGroup) Validate ¶
func (m *GithubGroup) Validate() error
Validate checks the field values on GithubGroup 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 (*GithubGroup) ValidateAll ¶
func (m *GithubGroup) ValidateAll() error
ValidateAll checks the field values on GithubGroup 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 GithubGroupMultiError, or nil if none found.
type GithubGroupMultiError ¶
type GithubGroupMultiError []error
GithubGroupMultiError is an error wrapping multiple validation errors returned by GithubGroup.ValidateAll() if the designated constraints aren't met.
func (GithubGroupMultiError) AllErrors ¶
func (m GithubGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GithubGroupMultiError) Error ¶
func (m GithubGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GithubGroupValidationError ¶
type GithubGroupValidationError struct {
// contains filtered or unexported fields
}
GithubGroupValidationError is the validation error returned by GithubGroup.Validate if the designated constraints aren't met.
func (GithubGroupValidationError) Cause ¶
func (e GithubGroupValidationError) Cause() error
Cause function returns cause value.
func (GithubGroupValidationError) Error ¶
func (e GithubGroupValidationError) Error() string
Error satisfies the builtin error interface
func (GithubGroupValidationError) ErrorName ¶
func (e GithubGroupValidationError) ErrorName() string
ErrorName returns error name.
func (GithubGroupValidationError) Field ¶
func (e GithubGroupValidationError) Field() string
Field function returns field value.
func (GithubGroupValidationError) Key ¶
func (e GithubGroupValidationError) Key() bool
Key function returns key value.
func (GithubGroupValidationError) Reason ¶
func (e GithubGroupValidationError) Reason() string
Reason function returns reason value.
type GithubMultiError ¶
type GithubMultiError []error
GithubMultiError is an error wrapping multiple validation errors returned by Github.ValidateAll() if the designated constraints aren't met.
func (GithubMultiError) AllErrors ¶
func (m GithubMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GithubMultiError) Error ¶
func (m GithubMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GithubValidationError ¶
type GithubValidationError struct {
// contains filtered or unexported fields
}
GithubValidationError is the validation error returned by Github.Validate if the designated constraints aren't met.
func (GithubValidationError) Cause ¶
func (e GithubValidationError) Cause() error
Cause function returns cause value.
func (GithubValidationError) Error ¶
func (e GithubValidationError) Error() string
Error satisfies the builtin error interface
func (GithubValidationError) ErrorName ¶
func (e GithubValidationError) ErrorName() string
ErrorName returns error name.
func (GithubValidationError) Field ¶
func (e GithubValidationError) Field() string
Field function returns field value.
func (GithubValidationError) Key ¶
func (e GithubValidationError) Key() bool
Key function returns key value.
func (GithubValidationError) Reason ¶
func (e GithubValidationError) Reason() string
Reason function returns reason value.
type Gitlab ¶
type Gitlab struct { // The name of the Gitlab repository Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The path of the Gitlab repository Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The visibility of the Gitlab repository, which can only be "public" or "private" Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"` // The description of the Gitlab repository Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Gitlab) Descriptor
deprecated
func (*Gitlab) GetDescription ¶
func (*Gitlab) GetVisibility ¶
func (*Gitlab) ProtoMessage ¶
func (*Gitlab) ProtoMessage()
func (*Gitlab) ProtoReflect ¶
func (x *Gitlab) ProtoReflect() protoreflect.Message
func (*Gitlab) Validate ¶
Validate checks the field values on Gitlab 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 (*Gitlab) ValidateAll ¶
ValidateAll checks the field values on Gitlab 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 GitlabMultiError, or nil if none found.
type GitlabGroup ¶
type GitlabGroup struct { // The path of the Gitlab group Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The visibility of the Gitlab group Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"` // The description of the Gitlab group Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*GitlabGroup) Descriptor
deprecated
func (*GitlabGroup) Descriptor() ([]byte, []int)
Deprecated: Use GitlabGroup.ProtoReflect.Descriptor instead.
func (*GitlabGroup) GetDescription ¶
func (x *GitlabGroup) GetDescription() string
func (*GitlabGroup) GetPath ¶
func (x *GitlabGroup) GetPath() string
func (*GitlabGroup) GetVisibility ¶
func (x *GitlabGroup) GetVisibility() string
func (*GitlabGroup) ProtoMessage ¶
func (*GitlabGroup) ProtoMessage()
func (*GitlabGroup) ProtoReflect ¶
func (x *GitlabGroup) ProtoReflect() protoreflect.Message
func (*GitlabGroup) Reset ¶
func (x *GitlabGroup) Reset()
func (*GitlabGroup) String ¶
func (x *GitlabGroup) String() string
func (*GitlabGroup) Validate ¶
func (m *GitlabGroup) Validate() error
Validate checks the field values on GitlabGroup 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 (*GitlabGroup) ValidateAll ¶
func (m *GitlabGroup) ValidateAll() error
ValidateAll checks the field values on GitlabGroup 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 GitlabGroupMultiError, or nil if none found.
type GitlabGroupMultiError ¶
type GitlabGroupMultiError []error
GitlabGroupMultiError is an error wrapping multiple validation errors returned by GitlabGroup.ValidateAll() if the designated constraints aren't met.
func (GitlabGroupMultiError) AllErrors ¶
func (m GitlabGroupMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GitlabGroupMultiError) Error ¶
func (m GitlabGroupMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GitlabGroupValidationError ¶
type GitlabGroupValidationError struct {
// contains filtered or unexported fields
}
GitlabGroupValidationError is the validation error returned by GitlabGroup.Validate if the designated constraints aren't met.
func (GitlabGroupValidationError) Cause ¶
func (e GitlabGroupValidationError) Cause() error
Cause function returns cause value.
func (GitlabGroupValidationError) Error ¶
func (e GitlabGroupValidationError) Error() string
Error satisfies the builtin error interface
func (GitlabGroupValidationError) ErrorName ¶
func (e GitlabGroupValidationError) ErrorName() string
ErrorName returns error name.
func (GitlabGroupValidationError) Field ¶
func (e GitlabGroupValidationError) Field() string
Field function returns field value.
func (GitlabGroupValidationError) Key ¶
func (e GitlabGroupValidationError) Key() bool
Key function returns key value.
func (GitlabGroupValidationError) Reason ¶
func (e GitlabGroupValidationError) Reason() string
Reason function returns reason value.
type GitlabMultiError ¶
type GitlabMultiError []error
GitlabMultiError is an error wrapping multiple validation errors returned by Gitlab.ValidateAll() if the designated constraints aren't met.
func (GitlabMultiError) AllErrors ¶
func (m GitlabMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GitlabMultiError) Error ¶
func (m GitlabMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GitlabValidationError ¶
type GitlabValidationError struct {
// contains filtered or unexported fields
}
GitlabValidationError is the validation error returned by Gitlab.Validate if the designated constraints aren't met.
func (GitlabValidationError) Cause ¶
func (e GitlabValidationError) Cause() error
Cause function returns cause value.
func (GitlabValidationError) Error ¶
func (e GitlabValidationError) Error() string
Error satisfies the builtin error interface
func (GitlabValidationError) ErrorName ¶
func (e GitlabValidationError) ErrorName() string
ErrorName returns error name.
func (GitlabValidationError) Field ¶
func (e GitlabValidationError) Field() string
Field function returns field value.
func (GitlabValidationError) Key ¶
func (e GitlabValidationError) Key() bool
Key function returns key value.
func (GitlabValidationError) Reason ¶
func (e GitlabValidationError) Reason() string
Reason function returns reason value.
type ListProductsReply ¶
type ListProductsReply struct { // The list of products Items []*GetProductReply `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListProductsReply) Descriptor
deprecated
func (*ListProductsReply) Descriptor() ([]byte, []int)
Deprecated: Use ListProductsReply.ProtoReflect.Descriptor instead.
func (*ListProductsReply) GetItems ¶
func (x *ListProductsReply) GetItems() []*GetProductReply
func (*ListProductsReply) ProtoMessage ¶
func (*ListProductsReply) ProtoMessage()
func (*ListProductsReply) ProtoReflect ¶
func (x *ListProductsReply) ProtoReflect() protoreflect.Message
func (*ListProductsReply) Reset ¶
func (x *ListProductsReply) Reset()
func (*ListProductsReply) String ¶
func (x *ListProductsReply) String() string
func (*ListProductsReply) Validate ¶
func (m *ListProductsReply) Validate() error
Validate checks the field values on ListProductsReply 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 (*ListProductsReply) ValidateAll ¶
func (m *ListProductsReply) ValidateAll() error
ValidateAll checks the field values on ListProductsReply 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 ListProductsReplyMultiError, or nil if none found.
type ListProductsReplyMultiError ¶
type ListProductsReplyMultiError []error
ListProductsReplyMultiError is an error wrapping multiple validation errors returned by ListProductsReply.ValidateAll() if the designated constraints aren't met.
func (ListProductsReplyMultiError) AllErrors ¶
func (m ListProductsReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListProductsReplyMultiError) Error ¶
func (m ListProductsReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListProductsReplyValidationError ¶
type ListProductsReplyValidationError struct {
// contains filtered or unexported fields
}
ListProductsReplyValidationError is the validation error returned by ListProductsReply.Validate if the designated constraints aren't met.
func (ListProductsReplyValidationError) Cause ¶
func (e ListProductsReplyValidationError) Cause() error
Cause function returns cause value.
func (ListProductsReplyValidationError) Error ¶
func (e ListProductsReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListProductsReplyValidationError) ErrorName ¶
func (e ListProductsReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListProductsReplyValidationError) Field ¶
func (e ListProductsReplyValidationError) Field() string
Field function returns field value.
func (ListProductsReplyValidationError) Key ¶
func (e ListProductsReplyValidationError) Key() bool
Key function returns key value.
func (ListProductsReplyValidationError) Reason ¶
func (e ListProductsReplyValidationError) Reason() string
Reason function returns reason value.
type ListProductsRequest ¶
type ListProductsRequest struct { // Filter the list by field. // eg: field_selector=product_name=test // Field Support: // product_name: exact match FieldSelector string `protobuf:"bytes,1,opt,name=field_selector,proto3" json:"field_selector,omitempty"` // contains filtered or unexported fields }
func (*ListProductsRequest) Descriptor
deprecated
func (*ListProductsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.
func (*ListProductsRequest) GetFieldSelector ¶ added in v0.4.2
func (x *ListProductsRequest) GetFieldSelector() string
func (*ListProductsRequest) ProtoMessage ¶
func (*ListProductsRequest) ProtoMessage()
func (*ListProductsRequest) ProtoReflect ¶
func (x *ListProductsRequest) ProtoReflect() protoreflect.Message
func (*ListProductsRequest) Reset ¶
func (x *ListProductsRequest) Reset()
func (*ListProductsRequest) String ¶
func (x *ListProductsRequest) String() string
func (*ListProductsRequest) Validate ¶
func (m *ListProductsRequest) Validate() error
Validate checks the field values on ListProductsRequest 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 (*ListProductsRequest) ValidateAll ¶
func (m *ListProductsRequest) ValidateAll() error
ValidateAll checks the field values on ListProductsRequest 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 ListProductsRequestMultiError, or nil if none found.
type ListProductsRequestMultiError ¶
type ListProductsRequestMultiError []error
ListProductsRequestMultiError is an error wrapping multiple validation errors returned by ListProductsRequest.ValidateAll() if the designated constraints aren't met.
func (ListProductsRequestMultiError) AllErrors ¶
func (m ListProductsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListProductsRequestMultiError) Error ¶
func (m ListProductsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListProductsRequestValidationError ¶
type ListProductsRequestValidationError struct {
// contains filtered or unexported fields
}
ListProductsRequestValidationError is the validation error returned by ListProductsRequest.Validate if the designated constraints aren't met.
func (ListProductsRequestValidationError) Cause ¶
func (e ListProductsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListProductsRequestValidationError) Error ¶
func (e ListProductsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListProductsRequestValidationError) ErrorName ¶
func (e ListProductsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListProductsRequestValidationError) Field ¶
func (e ListProductsRequestValidationError) Field() string
Field function returns field value.
func (ListProductsRequestValidationError) Key ¶
func (e ListProductsRequestValidationError) Key() bool
Key function returns key value.
func (ListProductsRequestValidationError) Reason ¶
func (e ListProductsRequestValidationError) Reason() string
Reason function returns reason value.
type ProductClient ¶
type ProductClient interface { GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*GetProductReply, error) ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsReply, error) SaveProduct(ctx context.Context, in *SaveProductRequest, opts ...grpc.CallOption) (*SaveProductReply, error) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*DeleteProductReply, error) }
ProductClient is the client API for Product 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 NewProductClient ¶
func NewProductClient(cc grpc.ClientConnInterface) ProductClient
type ProductHTTPClient ¶
type ProductHTTPClient interface { DeleteProduct(ctx context.Context, req *DeleteProductRequest, opts ...http.CallOption) (rsp *DeleteProductReply, err error) GetProduct(ctx context.Context, req *GetProductRequest, opts ...http.CallOption) (rsp *GetProductReply, err error) ListProducts(ctx context.Context, req *ListProductsRequest, opts ...http.CallOption) (rsp *ListProductsReply, err error) SaveProduct(ctx context.Context, req *SaveProductRequest, opts ...http.CallOption) (rsp *SaveProductReply, err error) }
func NewProductHTTPClient ¶
func NewProductHTTPClient(client *http.Client) ProductHTTPClient
type ProductHTTPClientImpl ¶
type ProductHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ProductHTTPClientImpl) DeleteProduct ¶
func (c *ProductHTTPClientImpl) DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...http.CallOption) (*DeleteProductReply, error)
func (*ProductHTTPClientImpl) GetProduct ¶
func (c *ProductHTTPClientImpl) GetProduct(ctx context.Context, in *GetProductRequest, opts ...http.CallOption) (*GetProductReply, error)
func (*ProductHTTPClientImpl) ListProducts ¶
func (c *ProductHTTPClientImpl) ListProducts(ctx context.Context, in *ListProductsRequest, opts ...http.CallOption) (*ListProductsReply, error)
func (*ProductHTTPClientImpl) SaveProduct ¶
func (c *ProductHTTPClientImpl) SaveProduct(ctx context.Context, in *SaveProductRequest, opts ...http.CallOption) (*SaveProductReply, error)
type ProductHTTPServer ¶
type ProductHTTPServer interface { DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductReply, error) GetProduct(context.Context, *GetProductRequest) (*GetProductReply, error) ListProducts(context.Context, *ListProductsRequest) (*ListProductsReply, error) SaveProduct(context.Context, *SaveProductRequest) (*SaveProductReply, error) }
type ProductServer ¶
type ProductServer interface { GetProduct(context.Context, *GetProductRequest) (*GetProductReply, error) ListProducts(context.Context, *ListProductsRequest) (*ListProductsReply, error) SaveProduct(context.Context, *SaveProductRequest) (*SaveProductReply, error) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductReply, error) // contains filtered or unexported methods }
ProductServer is the server API for Product service. All implementations must embed UnimplementedProductServer for forward compatibility
type SaveProductReply ¶
type SaveProductReply struct { // The message returned after saving the product Msg string `protobuf:"bytes,1,opt,name=msg,json=message,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*SaveProductReply) Descriptor
deprecated
func (*SaveProductReply) Descriptor() ([]byte, []int)
Deprecated: Use SaveProductReply.ProtoReflect.Descriptor instead.
func (*SaveProductReply) GetMsg ¶
func (x *SaveProductReply) GetMsg() string
func (*SaveProductReply) ProtoMessage ¶
func (*SaveProductReply) ProtoMessage()
func (*SaveProductReply) ProtoReflect ¶
func (x *SaveProductReply) ProtoReflect() protoreflect.Message
func (*SaveProductReply) Reset ¶
func (x *SaveProductReply) Reset()
func (*SaveProductReply) String ¶
func (x *SaveProductReply) String() string
func (*SaveProductReply) Validate ¶
func (m *SaveProductReply) Validate() error
Validate checks the field values on SaveProductReply 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 (*SaveProductReply) ValidateAll ¶
func (m *SaveProductReply) ValidateAll() error
ValidateAll checks the field values on SaveProductReply 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 SaveProductReplyMultiError, or nil if none found.
type SaveProductReplyMultiError ¶
type SaveProductReplyMultiError []error
SaveProductReplyMultiError is an error wrapping multiple validation errors returned by SaveProductReply.ValidateAll() if the designated constraints aren't met.
func (SaveProductReplyMultiError) AllErrors ¶
func (m SaveProductReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveProductReplyMultiError) Error ¶
func (m SaveProductReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveProductReplyValidationError ¶
type SaveProductReplyValidationError struct {
// contains filtered or unexported fields
}
SaveProductReplyValidationError is the validation error returned by SaveProductReply.Validate if the designated constraints aren't met.
func (SaveProductReplyValidationError) Cause ¶
func (e SaveProductReplyValidationError) Cause() error
Cause function returns cause value.
func (SaveProductReplyValidationError) Error ¶
func (e SaveProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SaveProductReplyValidationError) ErrorName ¶
func (e SaveProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SaveProductReplyValidationError) Field ¶
func (e SaveProductReplyValidationError) Field() string
Field function returns field value.
func (SaveProductReplyValidationError) Key ¶
func (e SaveProductReplyValidationError) Key() bool
Key function returns key value.
func (SaveProductReplyValidationError) Reason ¶
func (e SaveProductReplyValidationError) Reason() string
Reason function returns reason value.
type SaveProductRequest ¶
type SaveProductRequest struct { // The name of the product to save ProductName string `protobuf:"bytes,1,opt,name=product_name,proto3" json:"product_name,omitempty"` // The Git group of the product Git *Git `protobuf:"bytes,2,opt,name=git,proto3" json:"git,omitempty"` // contains filtered or unexported fields }
func (*SaveProductRequest) Descriptor
deprecated
func (*SaveProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use SaveProductRequest.ProtoReflect.Descriptor instead.
func (*SaveProductRequest) GetGit ¶
func (x *SaveProductRequest) GetGit() *Git
func (*SaveProductRequest) GetProductName ¶
func (x *SaveProductRequest) GetProductName() string
func (*SaveProductRequest) ProtoMessage ¶
func (*SaveProductRequest) ProtoMessage()
func (*SaveProductRequest) ProtoReflect ¶
func (x *SaveProductRequest) ProtoReflect() protoreflect.Message
func (*SaveProductRequest) Reset ¶
func (x *SaveProductRequest) Reset()
func (*SaveProductRequest) String ¶
func (x *SaveProductRequest) String() string
func (*SaveProductRequest) Validate ¶
func (m *SaveProductRequest) Validate() error
Validate checks the field values on SaveProductRequest 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 (*SaveProductRequest) ValidateAll ¶
func (m *SaveProductRequest) ValidateAll() error
ValidateAll checks the field values on SaveProductRequest 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 SaveProductRequestMultiError, or nil if none found.
type SaveProductRequestMultiError ¶
type SaveProductRequestMultiError []error
SaveProductRequestMultiError is an error wrapping multiple validation errors returned by SaveProductRequest.ValidateAll() if the designated constraints aren't met.
func (SaveProductRequestMultiError) AllErrors ¶
func (m SaveProductRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SaveProductRequestMultiError) Error ¶
func (m SaveProductRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SaveProductRequestValidationError ¶
type SaveProductRequestValidationError struct {
// contains filtered or unexported fields
}
SaveProductRequestValidationError is the validation error returned by SaveProductRequest.Validate if the designated constraints aren't met.
func (SaveProductRequestValidationError) Cause ¶
func (e SaveProductRequestValidationError) Cause() error
Cause function returns cause value.
func (SaveProductRequestValidationError) Error ¶
func (e SaveProductRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SaveProductRequestValidationError) ErrorName ¶
func (e SaveProductRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SaveProductRequestValidationError) Field ¶
func (e SaveProductRequestValidationError) Field() string
Field function returns field value.
func (SaveProductRequestValidationError) Key ¶
func (e SaveProductRequestValidationError) Key() bool
Key function returns key value.
func (SaveProductRequestValidationError) Reason ¶
func (e SaveProductRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedProductServer ¶
type UnimplementedProductServer struct { }
UnimplementedProductServer must be embedded to have forward compatible implementations.
func (UnimplementedProductServer) DeleteProduct ¶
func (UnimplementedProductServer) DeleteProduct(context.Context, *DeleteProductRequest) (*DeleteProductReply, error)
func (UnimplementedProductServer) GetProduct ¶
func (UnimplementedProductServer) GetProduct(context.Context, *GetProductRequest) (*GetProductReply, error)
func (UnimplementedProductServer) ListProducts ¶
func (UnimplementedProductServer) ListProducts(context.Context, *ListProductsRequest) (*ListProductsReply, error)
func (UnimplementedProductServer) SaveProduct ¶
func (UnimplementedProductServer) SaveProduct(context.Context, *SaveProductRequest) (*SaveProductReply, error)
type UnsafeProductServer ¶
type UnsafeProductServer interface {
// contains filtered or unexported methods
}
UnsafeProductServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProductServer will result in compilation errors.