Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPodHTTPServer(s *http.Server, srv PodHTTPServer)
- func RegisterPodServer(s grpc.ServiceRegistrar, srv PodServer)
- type AllPod
- func (*AllPod) Descriptor() ([]byte, []int)deprecated
- func (x *AllPod) GetPodInfo() []*PodInfo
- func (*AllPod) ProtoMessage()
- func (x *AllPod) ProtoReflect() protoreflect.Message
- func (x *AllPod) Reset()
- func (x *AllPod) String() string
- func (m *AllPod) Validate() error
- func (m *AllPod) ValidateAll() error
- type AllPodMultiError
- type AllPodValidationError
- type FindAll
- type FindAllMultiError
- type FindAllValidationError
- type PodClient
- type PodEnv
- func (*PodEnv) Descriptor() ([]byte, []int)deprecated
- func (x *PodEnv) GetEnvKey() string
- func (x *PodEnv) GetEnvValue() string
- func (x *PodEnv) GetPodId() int64
- func (*PodEnv) ProtoMessage()
- func (x *PodEnv) ProtoReflect() protoreflect.Message
- func (x *PodEnv) Reset()
- func (x *PodEnv) String() string
- func (m *PodEnv) Validate() error
- func (m *PodEnv) ValidateAll() error
- type PodEnvMultiError
- type PodEnvValidationError
- type PodHTTPClient
- type PodHTTPClientImpl
- func (c *PodHTTPClientImpl) AddPod(ctx context.Context, in *PodInfo, opts ...http.CallOption) (*Response, error)
- func (c *PodHTTPClientImpl) DeletePod(ctx context.Context, in *PodId, opts ...http.CallOption) (*Response, error)
- func (c *PodHTTPClientImpl) FindAllPod(ctx context.Context, in *FindAll, opts ...http.CallOption) (*AllPod, error)
- func (c *PodHTTPClientImpl) FindPodByID(ctx context.Context, in *PodId, opts ...http.CallOption) (*PodInfo, error)
- func (c *PodHTTPClientImpl) UpdatePod(ctx context.Context, in *PodInfo, opts ...http.CallOption) (*Response, error)
- type PodHTTPServer
- type PodId
- type PodIdMultiError
- type PodIdValidationError
- type PodInfo
- func (*PodInfo) Descriptor() ([]byte, []int)deprecated
- func (x *PodInfo) GetId() int64
- func (x *PodInfo) GetPodCpuMax() float32
- func (x *PodInfo) GetPodCpuMin() float32
- func (x *PodInfo) GetPodEnv() []*PodEnv
- func (x *PodInfo) GetPodImage() string
- func (x *PodInfo) GetPodMemoryMax() float32
- func (x *PodInfo) GetPodMemoryMin() float32
- func (x *PodInfo) GetPodName() string
- func (x *PodInfo) GetPodNamespace() string
- func (x *PodInfo) GetPodPort() []*PodPort
- func (x *PodInfo) GetPodPullPolicy() string
- func (x *PodInfo) GetPodReplicas() int32
- func (x *PodInfo) GetPodRestart() string
- func (x *PodInfo) GetPodTeamId() string
- func (x *PodInfo) GetPodType() string
- func (*PodInfo) ProtoMessage()
- func (x *PodInfo) ProtoReflect() protoreflect.Message
- func (x *PodInfo) Reset()
- func (x *PodInfo) String() string
- func (m *PodInfo) Validate() error
- func (m *PodInfo) ValidateAll() error
- type PodInfoMultiError
- type PodInfoValidationError
- type PodPort
- func (*PodPort) Descriptor() ([]byte, []int)deprecated
- func (x *PodPort) GetContainerPort() int32
- func (x *PodPort) GetPodId() int64
- func (x *PodPort) GetProtocol() string
- func (*PodPort) ProtoMessage()
- func (x *PodPort) ProtoReflect() protoreflect.Message
- func (x *PodPort) Reset()
- func (x *PodPort) String() string
- func (m *PodPort) Validate() error
- func (m *PodPort) ValidateAll() error
- type PodPortMultiError
- type PodPortValidationError
- type PodServer
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetMsg() string
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- func (m *Response) Validate() error
- func (m *Response) ValidateAll() error
- type ResponseMultiError
- type ResponseValidationError
- type UnimplementedPodServer
- func (UnimplementedPodServer) AddPod(context.Context, *PodInfo) (*Response, error)
- func (UnimplementedPodServer) DeletePod(context.Context, *PodId) (*Response, error)
- func (UnimplementedPodServer) FindAllPod(context.Context, *FindAll) (*AllPod, error)
- func (UnimplementedPodServer) FindPodByID(context.Context, *PodId) (*PodInfo, error)
- func (UnimplementedPodServer) UpdatePod(context.Context, *PodInfo) (*Response, error)
- type UnsafePodServer
Constants ¶
const ( Pod_AddPod_FullMethodName = "/api.pod.v1.Pod/AddPod" Pod_DeletePod_FullMethodName = "/api.pod.v1.Pod/DeletePod" Pod_FindPodByID_FullMethodName = "/api.pod.v1.Pod/FindPodByID" Pod_UpdatePod_FullMethodName = "/api.pod.v1.Pod/UpdatePod" Pod_FindAllPod_FullMethodName = "/api.pod.v1.Pod/FindAllPod" )
const OperationPodAddPod = "/api.pod.v1.Pod/AddPod"
const OperationPodDeletePod = "/api.pod.v1.Pod/DeletePod"
const OperationPodFindAllPod = "/api.pod.v1.Pod/FindAllPod"
const OperationPodFindPodByID = "/api.pod.v1.Pod/FindPodByID"
const OperationPodUpdatePod = "/api.pod.v1.Pod/UpdatePod"
Variables ¶
var File_pod_v1_pod_proto protoreflect.FileDescriptor
var Pod_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.pod.v1.Pod", HandlerType: (*PodServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddPod", Handler: _Pod_AddPod_Handler, }, { MethodName: "DeletePod", Handler: _Pod_DeletePod_Handler, }, { MethodName: "FindPodByID", Handler: _Pod_FindPodByID_Handler, }, { MethodName: "UpdatePod", Handler: _Pod_UpdatePod_Handler, }, { MethodName: "FindAllPod", Handler: _Pod_FindAllPod_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pod/v1/pod.proto", }
Pod_ServiceDesc is the grpc.ServiceDesc for Pod service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPodHTTPServer ¶
func RegisterPodHTTPServer(s *http.Server, srv PodHTTPServer)
func RegisterPodServer ¶
func RegisterPodServer(s grpc.ServiceRegistrar, srv PodServer)
Types ¶
type AllPod ¶
type AllPod struct { PodInfo []*PodInfo `protobuf:"bytes,1,rep,name=pod_info,json=podInfo,proto3" json:"pod_info,omitempty"` // contains filtered or unexported fields }
func (*AllPod) Descriptor
deprecated
func (*AllPod) GetPodInfo ¶
func (*AllPod) ProtoMessage ¶
func (*AllPod) ProtoMessage()
func (*AllPod) ProtoReflect ¶
func (x *AllPod) ProtoReflect() protoreflect.Message
func (*AllPod) Validate ¶
Validate checks the field values on AllPod 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 (*AllPod) ValidateAll ¶
ValidateAll checks the field values on AllPod 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 AllPodMultiError, or nil if none found.
type AllPodMultiError ¶
type AllPodMultiError []error
AllPodMultiError is an error wrapping multiple validation errors returned by AllPod.ValidateAll() if the designated constraints aren't met.
func (AllPodMultiError) AllErrors ¶
func (m AllPodMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllPodMultiError) Error ¶
func (m AllPodMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllPodValidationError ¶
type AllPodValidationError struct {
// contains filtered or unexported fields
}
AllPodValidationError is the validation error returned by AllPod.Validate if the designated constraints aren't met.
func (AllPodValidationError) Cause ¶
func (e AllPodValidationError) Cause() error
Cause function returns cause value.
func (AllPodValidationError) Error ¶
func (e AllPodValidationError) Error() string
Error satisfies the builtin error interface
func (AllPodValidationError) ErrorName ¶
func (e AllPodValidationError) ErrorName() string
ErrorName returns error name.
func (AllPodValidationError) Field ¶
func (e AllPodValidationError) Field() string
Field function returns field value.
func (AllPodValidationError) Key ¶
func (e AllPodValidationError) Key() bool
Key function returns key value.
func (AllPodValidationError) Reason ¶
func (e AllPodValidationError) Reason() string
Reason function returns reason value.
type FindAll ¶
type FindAll struct {
// contains filtered or unexported fields
}
func (*FindAll) Descriptor
deprecated
func (*FindAll) ProtoMessage ¶
func (*FindAll) ProtoMessage()
func (*FindAll) ProtoReflect ¶
func (x *FindAll) ProtoReflect() protoreflect.Message
func (*FindAll) Validate ¶
Validate checks the field values on FindAll 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 (*FindAll) ValidateAll ¶
ValidateAll checks the field values on FindAll 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 FindAllMultiError, or nil if none found.
type FindAllMultiError ¶
type FindAllMultiError []error
FindAllMultiError is an error wrapping multiple validation errors returned by FindAll.ValidateAll() if the designated constraints aren't met.
func (FindAllMultiError) AllErrors ¶
func (m FindAllMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FindAllMultiError) Error ¶
func (m FindAllMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FindAllValidationError ¶
type FindAllValidationError struct {
// contains filtered or unexported fields
}
FindAllValidationError is the validation error returned by FindAll.Validate if the designated constraints aren't met.
func (FindAllValidationError) Cause ¶
func (e FindAllValidationError) Cause() error
Cause function returns cause value.
func (FindAllValidationError) Error ¶
func (e FindAllValidationError) Error() string
Error satisfies the builtin error interface
func (FindAllValidationError) ErrorName ¶
func (e FindAllValidationError) ErrorName() string
ErrorName returns error name.
func (FindAllValidationError) Field ¶
func (e FindAllValidationError) Field() string
Field function returns field value.
func (FindAllValidationError) Key ¶
func (e FindAllValidationError) Key() bool
Key function returns key value.
func (FindAllValidationError) Reason ¶
func (e FindAllValidationError) Reason() string
Reason function returns reason value.
type PodClient ¶
type PodClient interface { AddPod(ctx context.Context, in *PodInfo, opts ...grpc.CallOption) (*Response, error) DeletePod(ctx context.Context, in *PodId, opts ...grpc.CallOption) (*Response, error) FindPodByID(ctx context.Context, in *PodId, opts ...grpc.CallOption) (*PodInfo, error) UpdatePod(ctx context.Context, in *PodInfo, opts ...grpc.CallOption) (*Response, error) FindAllPod(ctx context.Context, in *FindAll, opts ...grpc.CallOption) (*AllPod, error) }
PodClient is the client API for Pod 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 NewPodClient ¶
func NewPodClient(cc grpc.ClientConnInterface) PodClient
type PodEnv ¶
type PodEnv struct { PodId int64 `protobuf:"varint,1,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` EnvKey string `protobuf:"bytes,2,opt,name=env_key,json=envKey,proto3" json:"env_key,omitempty"` EnvValue string `protobuf:"bytes,3,opt,name=env_value,json=envValue,proto3" json:"env_value,omitempty"` // contains filtered or unexported fields }
func (*PodEnv) Descriptor
deprecated
func (*PodEnv) GetEnvValue ¶
func (*PodEnv) ProtoMessage ¶
func (*PodEnv) ProtoMessage()
func (*PodEnv) ProtoReflect ¶
func (x *PodEnv) ProtoReflect() protoreflect.Message
func (*PodEnv) Validate ¶
Validate checks the field values on PodEnv 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 (*PodEnv) ValidateAll ¶
ValidateAll checks the field values on PodEnv 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 PodEnvMultiError, or nil if none found.
type PodEnvMultiError ¶
type PodEnvMultiError []error
PodEnvMultiError is an error wrapping multiple validation errors returned by PodEnv.ValidateAll() if the designated constraints aren't met.
func (PodEnvMultiError) AllErrors ¶
func (m PodEnvMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PodEnvMultiError) Error ¶
func (m PodEnvMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PodEnvValidationError ¶
type PodEnvValidationError struct {
// contains filtered or unexported fields
}
PodEnvValidationError is the validation error returned by PodEnv.Validate if the designated constraints aren't met.
func (PodEnvValidationError) Cause ¶
func (e PodEnvValidationError) Cause() error
Cause function returns cause value.
func (PodEnvValidationError) Error ¶
func (e PodEnvValidationError) Error() string
Error satisfies the builtin error interface
func (PodEnvValidationError) ErrorName ¶
func (e PodEnvValidationError) ErrorName() string
ErrorName returns error name.
func (PodEnvValidationError) Field ¶
func (e PodEnvValidationError) Field() string
Field function returns field value.
func (PodEnvValidationError) Key ¶
func (e PodEnvValidationError) Key() bool
Key function returns key value.
func (PodEnvValidationError) Reason ¶
func (e PodEnvValidationError) Reason() string
Reason function returns reason value.
type PodHTTPClient ¶
type PodHTTPClient interface { AddPod(ctx context.Context, req *PodInfo, opts ...http.CallOption) (rsp *Response, err error) DeletePod(ctx context.Context, req *PodId, opts ...http.CallOption) (rsp *Response, err error) FindAllPod(ctx context.Context, req *FindAll, opts ...http.CallOption) (rsp *AllPod, err error) FindPodByID(ctx context.Context, req *PodId, opts ...http.CallOption) (rsp *PodInfo, err error) UpdatePod(ctx context.Context, req *PodInfo, opts ...http.CallOption) (rsp *Response, err error) }
func NewPodHTTPClient ¶
func NewPodHTTPClient(client *http.Client) PodHTTPClient
type PodHTTPClientImpl ¶
type PodHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*PodHTTPClientImpl) AddPod ¶
func (c *PodHTTPClientImpl) AddPod(ctx context.Context, in *PodInfo, opts ...http.CallOption) (*Response, error)
func (*PodHTTPClientImpl) DeletePod ¶
func (c *PodHTTPClientImpl) DeletePod(ctx context.Context, in *PodId, opts ...http.CallOption) (*Response, error)
func (*PodHTTPClientImpl) FindAllPod ¶
func (c *PodHTTPClientImpl) FindAllPod(ctx context.Context, in *FindAll, opts ...http.CallOption) (*AllPod, error)
func (*PodHTTPClientImpl) FindPodByID ¶
func (c *PodHTTPClientImpl) FindPodByID(ctx context.Context, in *PodId, opts ...http.CallOption) (*PodInfo, error)
func (*PodHTTPClientImpl) UpdatePod ¶
func (c *PodHTTPClientImpl) UpdatePod(ctx context.Context, in *PodInfo, opts ...http.CallOption) (*Response, error)
type PodHTTPServer ¶
type PodHTTPServer interface { AddPod(context.Context, *PodInfo) (*Response, error) DeletePod(context.Context, *PodId) (*Response, error) FindAllPod(context.Context, *FindAll) (*AllPod, error) FindPodByID(context.Context, *PodId) (*PodInfo, error) UpdatePod(context.Context, *PodInfo) (*Response, error) }
type PodId ¶
type PodId struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*PodId) Descriptor
deprecated
func (*PodId) ProtoMessage ¶
func (*PodId) ProtoMessage()
func (*PodId) ProtoReflect ¶
func (x *PodId) ProtoReflect() protoreflect.Message
func (*PodId) Validate ¶
Validate checks the field values on PodId 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 (*PodId) ValidateAll ¶
ValidateAll checks the field values on PodId 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 PodIdMultiError, or nil if none found.
type PodIdMultiError ¶
type PodIdMultiError []error
PodIdMultiError is an error wrapping multiple validation errors returned by PodId.ValidateAll() if the designated constraints aren't met.
func (PodIdMultiError) AllErrors ¶
func (m PodIdMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PodIdMultiError) Error ¶
func (m PodIdMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PodIdValidationError ¶
type PodIdValidationError struct {
// contains filtered or unexported fields
}
PodIdValidationError is the validation error returned by PodId.Validate if the designated constraints aren't met.
func (PodIdValidationError) Cause ¶
func (e PodIdValidationError) Cause() error
Cause function returns cause value.
func (PodIdValidationError) Error ¶
func (e PodIdValidationError) Error() string
Error satisfies the builtin error interface
func (PodIdValidationError) ErrorName ¶
func (e PodIdValidationError) ErrorName() string
ErrorName returns error name.
func (PodIdValidationError) Field ¶
func (e PodIdValidationError) Field() string
Field function returns field value.
func (PodIdValidationError) Key ¶
func (e PodIdValidationError) Key() bool
Key function returns key value.
func (PodIdValidationError) Reason ¶
func (e PodIdValidationError) Reason() string
Reason function returns reason value.
type PodInfo ¶
type PodInfo struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` PodNamespace string `protobuf:"bytes,2,opt,name=pod_namespace,json=podNamespace,proto3" json:"pod_namespace,omitempty"` PodName string `protobuf:"bytes,3,opt,name=pod_name,json=podName,proto3" json:"pod_name,omitempty"` PodTeamId string `protobuf:"bytes,4,opt,name=pod_team_id,json=podTeamId,proto3" json:"pod_team_id,omitempty"` PodCpuMax float32 `protobuf:"fixed32,5,opt,name=pod_cpu_max,json=podCpuMax,proto3" json:"pod_cpu_max,omitempty"` PodReplicas int32 `protobuf:"varint,6,opt,name=pod_replicas,json=podReplicas,proto3" json:"pod_replicas,omitempty"` PodMemoryMax float32 `protobuf:"fixed32,7,opt,name=pod_memory_max,json=podMemoryMax,proto3" json:"pod_memory_max,omitempty"` PodPort []*PodPort `protobuf:"bytes,8,rep,name=pod_port,json=podPort,proto3" json:"pod_port,omitempty"` PodEnv []*PodEnv `protobuf:"bytes,9,rep,name=pod_env,json=podEnv,proto3" json:"pod_env,omitempty"` PodPullPolicy string `protobuf:"bytes,10,opt,name=pod_pull_policy,json=podPullPolicy,proto3" json:"pod_pull_policy,omitempty"` PodRestart string `protobuf:"bytes,11,opt,name=pod_restart,json=podRestart,proto3" json:"pod_restart,omitempty"` PodType string `protobuf:"bytes,12,opt,name=pod_type,json=podType,proto3" json:"pod_type,omitempty"` PodImage string `protobuf:"bytes,13,opt,name=pod_image,json=podImage,proto3" json:"pod_image,omitempty"` PodCpuMin float32 `protobuf:"fixed32,14,opt,name=pod_cpu_min,json=podCpuMin,proto3" json:"pod_cpu_min,omitempty"` PodMemoryMin float32 `protobuf:"fixed32,15,opt,name=pod_memory_min,json=podMemoryMin,proto3" json:"pod_memory_min,omitempty"` // contains filtered or unexported fields }
func (*PodInfo) Descriptor
deprecated
func (*PodInfo) GetPodCpuMax ¶
func (*PodInfo) GetPodCpuMin ¶
func (*PodInfo) GetPodImage ¶
func (*PodInfo) GetPodMemoryMax ¶
func (*PodInfo) GetPodMemoryMin ¶
func (*PodInfo) GetPodName ¶
func (*PodInfo) GetPodNamespace ¶
func (*PodInfo) GetPodPort ¶
func (*PodInfo) GetPodPullPolicy ¶
func (*PodInfo) GetPodReplicas ¶
func (*PodInfo) GetPodRestart ¶
func (*PodInfo) GetPodTeamId ¶
func (*PodInfo) GetPodType ¶
func (*PodInfo) ProtoMessage ¶
func (*PodInfo) ProtoMessage()
func (*PodInfo) ProtoReflect ¶
func (x *PodInfo) ProtoReflect() protoreflect.Message
func (*PodInfo) Validate ¶
Validate checks the field values on PodInfo 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 (*PodInfo) ValidateAll ¶
ValidateAll checks the field values on PodInfo 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 PodInfoMultiError, or nil if none found.
type PodInfoMultiError ¶
type PodInfoMultiError []error
PodInfoMultiError is an error wrapping multiple validation errors returned by PodInfo.ValidateAll() if the designated constraints aren't met.
func (PodInfoMultiError) AllErrors ¶
func (m PodInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PodInfoMultiError) Error ¶
func (m PodInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PodInfoValidationError ¶
type PodInfoValidationError struct {
// contains filtered or unexported fields
}
PodInfoValidationError is the validation error returned by PodInfo.Validate if the designated constraints aren't met.
func (PodInfoValidationError) Cause ¶
func (e PodInfoValidationError) Cause() error
Cause function returns cause value.
func (PodInfoValidationError) Error ¶
func (e PodInfoValidationError) Error() string
Error satisfies the builtin error interface
func (PodInfoValidationError) ErrorName ¶
func (e PodInfoValidationError) ErrorName() string
ErrorName returns error name.
func (PodInfoValidationError) Field ¶
func (e PodInfoValidationError) Field() string
Field function returns field value.
func (PodInfoValidationError) Key ¶
func (e PodInfoValidationError) Key() bool
Key function returns key value.
func (PodInfoValidationError) Reason ¶
func (e PodInfoValidationError) Reason() string
Reason function returns reason value.
type PodPort ¶
type PodPort struct { PodId int64 `protobuf:"varint,1,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"` ContainerPort int32 `protobuf:"varint,2,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` Protocol string `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"` // contains filtered or unexported fields }
func (*PodPort) Descriptor
deprecated
func (*PodPort) GetContainerPort ¶
func (*PodPort) GetProtocol ¶
func (*PodPort) ProtoMessage ¶
func (*PodPort) ProtoMessage()
func (*PodPort) ProtoReflect ¶
func (x *PodPort) ProtoReflect() protoreflect.Message
func (*PodPort) Validate ¶
Validate checks the field values on PodPort 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 (*PodPort) ValidateAll ¶
ValidateAll checks the field values on PodPort 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 PodPortMultiError, or nil if none found.
type PodPortMultiError ¶
type PodPortMultiError []error
PodPortMultiError is an error wrapping multiple validation errors returned by PodPort.ValidateAll() if the designated constraints aren't met.
func (PodPortMultiError) AllErrors ¶
func (m PodPortMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PodPortMultiError) Error ¶
func (m PodPortMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PodPortValidationError ¶
type PodPortValidationError struct {
// contains filtered or unexported fields
}
PodPortValidationError is the validation error returned by PodPort.Validate if the designated constraints aren't met.
func (PodPortValidationError) Cause ¶
func (e PodPortValidationError) Cause() error
Cause function returns cause value.
func (PodPortValidationError) Error ¶
func (e PodPortValidationError) Error() string
Error satisfies the builtin error interface
func (PodPortValidationError) ErrorName ¶
func (e PodPortValidationError) ErrorName() string
ErrorName returns error name.
func (PodPortValidationError) Field ¶
func (e PodPortValidationError) Field() string
Field function returns field value.
func (PodPortValidationError) Key ¶
func (e PodPortValidationError) Key() bool
Key function returns key value.
func (PodPortValidationError) Reason ¶
func (e PodPortValidationError) Reason() string
Reason function returns reason value.
type PodServer ¶
type PodServer interface { AddPod(context.Context, *PodInfo) (*Response, error) DeletePod(context.Context, *PodId) (*Response, error) FindPodByID(context.Context, *PodId) (*PodInfo, error) UpdatePod(context.Context, *PodInfo) (*Response, error) FindAllPod(context.Context, *FindAll) (*AllPod, error) // contains filtered or unexported methods }
PodServer is the server API for Pod service. All implementations must embed UnimplementedPodServer for forward compatibility
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) Validate ¶
Validate checks the field values on Response 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 (*Response) ValidateAll ¶
ValidateAll checks the field values on Response 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 ResponseMultiError, or nil if none found.
type ResponseMultiError ¶
type ResponseMultiError []error
ResponseMultiError is an error wrapping multiple validation errors returned by Response.ValidateAll() if the designated constraints aren't met.
func (ResponseMultiError) AllErrors ¶
func (m ResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseMultiError) Error ¶
func (m ResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseValidationError ¶
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedPodServer ¶
type UnimplementedPodServer struct { }
UnimplementedPodServer must be embedded to have forward compatible implementations.
func (UnimplementedPodServer) FindAllPod ¶
func (UnimplementedPodServer) FindPodByID ¶
type UnsafePodServer ¶
type UnsafePodServer interface {
// contains filtered or unexported methods
}
UnsafePodServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PodServer will result in compilation errors.