v1

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationProductDeleteProduct = "/api.product.v1.Product/DeleteProduct"
View Source
const OperationProductGetProduct = "/api.product.v1.Product/GetProduct"
View Source
const OperationProductListProducts = "/api.product.v1.Product/ListProducts"
View Source
const OperationProductSaveProduct = "/api.product.v1.Product/SaveProduct"

Variables

View Source
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.

View Source
var File_api_product_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_api_product_v1_product_proto protoreflect.FileDescriptor
View Source
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 ErrorDeleteProductError(format string, args ...interface{}) *errors.Error

func ErrorDeleteProjectError

func ErrorDeleteProjectError(format string, args ...interface{}) *errors.Error

func ErrorProviderNotFound

func ErrorProviderNotFound(format string, args ...interface{}) *errors.Error

func ErrorSaveProductError

func ErrorSaveProductError(format string, args ...interface{}) *errors.Error

func ErrorSaveProjectError

func ErrorSaveProjectError(format string, args ...interface{}) *errors.Error

func ErrorTokenNotFound

func ErrorTokenNotFound(format string, args ...interface{}) *errors.Error

func ErrorUserNotFound

func ErrorUserNotFound(format string, args ...interface{}) *errors.Error

func IsDeleteProductError

func IsDeleteProductError(err error) bool

func IsDeleteProjectError

func IsDeleteProjectError(err error) bool

func IsProviderNotFound

func IsProviderNotFound(err error) bool

func IsSaveProductError

func IsSaveProductError(err error) bool

func IsSaveProjectError

func IsSaveProjectError(err error) bool

func IsTokenNotFound

func IsTokenNotFound(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

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

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

Cause function returns cause value.

func (DeleteProductReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductReplyValidationError) Field

Field function returns field value.

func (DeleteProductReplyValidationError) Key

Key function returns key value.

func (DeleteProductReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteProductRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductRequestValidationError) Field

Field function returns field value.

func (DeleteProductRequestValidationError) Key

Key function returns key value.

func (DeleteProductRequestValidationError) Reason

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) 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

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

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

Cause function returns cause value.

func (GetProductReplyValidationError) Error

Error satisfies the builtin error interface

func (GetProductReplyValidationError) ErrorName

func (e GetProductReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetProductReplyValidationError) Field

Field function returns field value.

func (GetProductReplyValidationError) Key

Key function returns key value.

func (GetProductReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetProductRequestValidationError) Error

Error satisfies the builtin error interface

func (GetProductRequestValidationError) ErrorName

ErrorName returns error name.

func (GetProductRequestValidationError) Field

Field function returns field value.

func (GetProductRequestValidationError) Key

Key function returns key value.

func (GetProductRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Git.ProtoReflect.Descriptor instead.

func (*Git) GetGithub

func (x *Git) GetGithub() *Github

func (*Git) GetGitlab

func (x *Git) GetGitlab() *Gitlab

func (*Git) ProtoMessage

func (*Git) ProtoMessage()

func (*Git) ProtoReflect

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

func (*Git) Reset

func (x *Git) Reset()

func (*Git) String

func (x *Git) String() string

func (*Git) Validate

func (m *Git) Validate() error

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

func (m *Git) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use GitGroup.ProtoReflect.Descriptor instead.

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) Reset

func (x *GitGroup) Reset()

func (*GitGroup) String

func (x *GitGroup) String() string

func (*GitGroup) Validate

func (m *GitGroup) Validate() error

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

func (m *GitGroup) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Github.ProtoReflect.Descriptor instead.

func (*Github) GetDescription

func (x *Github) GetDescription() string

func (*Github) GetName

func (x *Github) GetName() string

func (*Github) GetPath

func (x *Github) GetPath() string

func (*Github) GetVisibility

func (x *Github) GetVisibility() string

func (*Github) ProtoMessage

func (*Github) ProtoMessage()

func (*Github) ProtoReflect

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

func (*Github) Reset

func (x *Github) Reset()

func (*Github) String

func (x *Github) String() string

func (*Github) Validate

func (m *Github) Validate() error

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

func (m *Github) ValidateAll() error

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

Cause function returns cause value.

func (GithubGroupValidationError) Error

Error satisfies the builtin error interface

func (GithubGroupValidationError) ErrorName

func (e GithubGroupValidationError) ErrorName() string

ErrorName returns error name.

func (GithubGroupValidationError) Field

Field function returns field value.

func (GithubGroupValidationError) Key

Key function returns key value.

func (GithubGroupValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Gitlab.ProtoReflect.Descriptor instead.

func (*Gitlab) GetDescription

func (x *Gitlab) GetDescription() string

func (*Gitlab) GetName

func (x *Gitlab) GetName() string

func (*Gitlab) GetPath

func (x *Gitlab) GetPath() string

func (*Gitlab) GetVisibility

func (x *Gitlab) GetVisibility() string

func (*Gitlab) ProtoMessage

func (*Gitlab) ProtoMessage()

func (*Gitlab) ProtoReflect

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

func (*Gitlab) Reset

func (x *Gitlab) Reset()

func (*Gitlab) String

func (x *Gitlab) String() string

func (*Gitlab) Validate

func (m *Gitlab) Validate() error

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

func (m *Gitlab) ValidateAll() error

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

Cause function returns cause value.

func (GitlabGroupValidationError) Error

Error satisfies the builtin error interface

func (GitlabGroupValidationError) ErrorName

func (e GitlabGroupValidationError) ErrorName() string

ErrorName returns error name.

func (GitlabGroupValidationError) Field

Field function returns field value.

func (GitlabGroupValidationError) Key

Key function returns key value.

func (GitlabGroupValidationError) Reason

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

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

Cause function returns cause value.

func (ListProductsReplyValidationError) Error

Error satisfies the builtin error interface

func (ListProductsReplyValidationError) ErrorName

ErrorName returns error name.

func (ListProductsReplyValidationError) Field

Field function returns field value.

func (ListProductsReplyValidationError) Key

Key function returns key value.

func (ListProductsReplyValidationError) Reason

Reason function returns reason value.

type ListProductsRequest

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

func (*ListProductsRequest) Descriptor deprecated

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

Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.

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

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

Cause function returns cause value.

func (ListProductsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListProductsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListProductsRequestValidationError) Field

Field function returns field value.

func (ListProductsRequestValidationError) Key

Key function returns key value.

func (ListProductsRequestValidationError) Reason

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 (*ProductHTTPClientImpl) GetProduct

func (*ProductHTTPClientImpl) ListProducts

func (*ProductHTTPClientImpl) SaveProduct

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

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

Cause function returns cause value.

func (SaveProductReplyValidationError) Error

Error satisfies the builtin error interface

func (SaveProductReplyValidationError) ErrorName

ErrorName returns error name.

func (SaveProductReplyValidationError) Field

Field function returns field value.

func (SaveProductReplyValidationError) Key

Key function returns key value.

func (SaveProductReplyValidationError) Reason

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

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

Cause function returns cause value.

func (SaveProductRequestValidationError) Error

Error satisfies the builtin error interface

func (SaveProductRequestValidationError) ErrorName

ErrorName returns error name.

func (SaveProductRequestValidationError) Field

Field function returns field value.

func (SaveProductRequestValidationError) Key

Key function returns key value.

func (SaveProductRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedProductServer

type UnimplementedProductServer struct {
}

UnimplementedProductServer must be embedded to have forward compatible implementations.

func (UnimplementedProductServer) DeleteProduct

func (UnimplementedProductServer) GetProduct

func (UnimplementedProductServer) ListProducts

func (UnimplementedProductServer) SaveProduct

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.

Jump to

Keyboard shortcuts

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