v1

package
v0.0.0-...-6fd52d9 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationPodAddPod = "/api.pod.v1.Pod/AddPod"
View Source
const OperationPodDeletePod = "/api.pod.v1.Pod/DeletePod"
View Source
const OperationPodFindAllPod = "/api.pod.v1.Pod/FindAllPod"
View Source
const OperationPodFindPodByID = "/api.pod.v1.Pod/FindPodByID"
View Source
const OperationPodUpdatePod = "/api.pod.v1.Pod/UpdatePod"

Variables

View Source
var File_pod_v1_pod_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AllPod.ProtoReflect.Descriptor instead.

func (*AllPod) GetPodInfo

func (x *AllPod) GetPodInfo() []*PodInfo

func (*AllPod) ProtoMessage

func (*AllPod) ProtoMessage()

func (*AllPod) ProtoReflect

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

func (*AllPod) Reset

func (x *AllPod) Reset()

func (*AllPod) String

func (x *AllPod) String() string

func (*AllPod) Validate

func (m *AllPod) Validate() error

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

func (m *AllPod) ValidateAll() error

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

Deprecated: Use FindAll.ProtoReflect.Descriptor instead.

func (*FindAll) ProtoMessage

func (*FindAll) ProtoMessage()

func (*FindAll) ProtoReflect

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

func (*FindAll) Reset

func (x *FindAll) Reset()

func (*FindAll) String

func (x *FindAll) String() string

func (*FindAll) Validate

func (m *FindAll) Validate() error

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

func (m *FindAll) ValidateAll() error

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

Deprecated: Use PodEnv.ProtoReflect.Descriptor instead.

func (*PodEnv) GetEnvKey

func (x *PodEnv) GetEnvKey() string

func (*PodEnv) GetEnvValue

func (x *PodEnv) GetEnvValue() string

func (*PodEnv) GetPodId

func (x *PodEnv) GetPodId() int64

func (*PodEnv) ProtoMessage

func (*PodEnv) ProtoMessage()

func (*PodEnv) ProtoReflect

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

func (*PodEnv) Reset

func (x *PodEnv) Reset()

func (*PodEnv) String

func (x *PodEnv) String() string

func (*PodEnv) Validate

func (m *PodEnv) Validate() error

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

func (m *PodEnv) ValidateAll() error

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

Deprecated: Use PodId.ProtoReflect.Descriptor instead.

func (*PodId) GetId

func (x *PodId) GetId() int64

func (*PodId) ProtoMessage

func (*PodId) ProtoMessage()

func (*PodId) ProtoReflect

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

func (*PodId) Reset

func (x *PodId) Reset()

func (*PodId) String

func (x *PodId) String() string

func (*PodId) Validate

func (m *PodId) Validate() error

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

func (m *PodId) ValidateAll() error

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

Deprecated: Use PodInfo.ProtoReflect.Descriptor instead.

func (*PodInfo) GetId

func (x *PodInfo) GetId() int64

func (*PodInfo) GetPodCpuMax

func (x *PodInfo) GetPodCpuMax() float32

func (*PodInfo) GetPodCpuMin

func (x *PodInfo) GetPodCpuMin() float32

func (*PodInfo) GetPodEnv

func (x *PodInfo) GetPodEnv() []*PodEnv

func (*PodInfo) GetPodImage

func (x *PodInfo) GetPodImage() string

func (*PodInfo) GetPodMemoryMax

func (x *PodInfo) GetPodMemoryMax() float32

func (*PodInfo) GetPodMemoryMin

func (x *PodInfo) GetPodMemoryMin() float32

func (*PodInfo) GetPodName

func (x *PodInfo) GetPodName() string

func (*PodInfo) GetPodNamespace

func (x *PodInfo) GetPodNamespace() string

func (*PodInfo) GetPodPort

func (x *PodInfo) GetPodPort() []*PodPort

func (*PodInfo) GetPodPullPolicy

func (x *PodInfo) GetPodPullPolicy() string

func (*PodInfo) GetPodReplicas

func (x *PodInfo) GetPodReplicas() int32

func (*PodInfo) GetPodRestart

func (x *PodInfo) GetPodRestart() string

func (*PodInfo) GetPodTeamId

func (x *PodInfo) GetPodTeamId() string

func (*PodInfo) GetPodType

func (x *PodInfo) GetPodType() string

func (*PodInfo) ProtoMessage

func (*PodInfo) ProtoMessage()

func (*PodInfo) ProtoReflect

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

func (*PodInfo) Reset

func (x *PodInfo) Reset()

func (*PodInfo) String

func (x *PodInfo) String() string

func (*PodInfo) Validate

func (m *PodInfo) Validate() error

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

func (m *PodInfo) ValidateAll() error

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

Deprecated: Use PodPort.ProtoReflect.Descriptor instead.

func (*PodPort) GetContainerPort

func (x *PodPort) GetContainerPort() int32

func (*PodPort) GetPodId

func (x *PodPort) GetPodId() int64

func (*PodPort) GetProtocol

func (x *PodPort) GetProtocol() string

func (*PodPort) ProtoMessage

func (*PodPort) ProtoMessage()

func (*PodPort) ProtoReflect

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

func (*PodPort) Reset

func (x *PodPort) Reset()

func (*PodPort) String

func (x *PodPort) String() string

func (*PodPort) Validate

func (m *PodPort) Validate() error

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

func (m *PodPort) ValidateAll() error

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) Validate

func (m *Response) Validate() error

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

func (m *Response) ValidateAll() error

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

func (UnimplementedPodServer) DeletePod

func (UnimplementedPodServer) FindAllPod

func (UnimplementedPodServer) FindPodByID

func (UnimplementedPodServer) UpdatePod

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.

Jump to

Keyboard shortcuts

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