Documentation
¶
Overview ¶
Package resourcev1alpha1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
- func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetId() *ResourceID
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- func (m *DeleteRequest) Validate() error
- func (m *DeleteRequest) ValidateAll() error
- type DeleteRequestMultiError
- type DeleteRequestValidationError
- func (e DeleteRequestValidationError) Cause() error
- func (e DeleteRequestValidationError) Error() string
- func (e DeleteRequestValidationError) ErrorName() string
- func (e DeleteRequestValidationError) Field() string
- func (e DeleteRequestValidationError) Key() bool
- func (e DeleteRequestValidationError) Reason() string
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteResponse) ProtoMessage()
- func (x *DeleteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteResponse) Reset()
- func (x *DeleteResponse) String() string
- func (m *DeleteResponse) Validate() error
- func (m *DeleteResponse) ValidateAll() error
- type DeleteResponseMultiError
- type DeleteResponseValidationError
- func (e DeleteResponseValidationError) Cause() error
- func (e DeleteResponseValidationError) Error() string
- func (e DeleteResponseValidationError) ErrorName() string
- func (e DeleteResponseValidationError) Field() string
- func (e DeleteResponseValidationError) Key() bool
- func (e DeleteResponseValidationError) Reason() string
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetTenancy() *ResourceTenancy
- func (x *ListRequest) GetType() *ResourceType
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- func (m *ListRequest) Validate() error
- func (m *ListRequest) ValidateAll() error
- type ListRequestMultiError
- type ListRequestValidationError
- func (e ListRequestValidationError) Cause() error
- func (e ListRequestValidationError) Error() string
- func (e ListRequestValidationError) ErrorName() string
- func (e ListRequestValidationError) Field() string
- func (e ListRequestValidationError) Key() bool
- func (e ListRequestValidationError) Reason() string
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetResources() []*Resource
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- func (m *ListResponse) Validate() error
- func (m *ListResponse) ValidateAll() error
- type ListResponseMultiError
- type ListResponseValidationError
- func (e ListResponseValidationError) Cause() error
- func (e ListResponseValidationError) Error() string
- func (e ListResponseValidationError) ErrorName() string
- func (e ListResponseValidationError) Field() string
- func (e ListResponseValidationError) Key() bool
- func (e ListResponseValidationError) Reason() string
- type ReadRequest
- func (*ReadRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadRequest) GetId() *ResourceID
- func (*ReadRequest) ProtoMessage()
- func (x *ReadRequest) ProtoReflect() protoreflect.Message
- func (x *ReadRequest) Reset()
- func (x *ReadRequest) String() string
- func (m *ReadRequest) Validate() error
- func (m *ReadRequest) ValidateAll() error
- type ReadRequestMultiError
- type ReadRequestValidationError
- func (e ReadRequestValidationError) Cause() error
- func (e ReadRequestValidationError) Error() string
- func (e ReadRequestValidationError) ErrorName() string
- func (e ReadRequestValidationError) Field() string
- func (e ReadRequestValidationError) Key() bool
- func (e ReadRequestValidationError) Reason() string
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadResponse) GetResource() *Resource
- func (*ReadResponse) ProtoMessage()
- func (x *ReadResponse) ProtoReflect() protoreflect.Message
- func (x *ReadResponse) Reset()
- func (x *ReadResponse) String() string
- func (m *ReadResponse) Validate() error
- func (m *ReadResponse) ValidateAll() error
- type ReadResponseMultiError
- type ReadResponseValidationError
- func (e ReadResponseValidationError) Cause() error
- func (e ReadResponseValidationError) Error() string
- func (e ReadResponseValidationError) ErrorName() string
- func (e ReadResponseValidationError) Field() string
- func (e ReadResponseValidationError) Key() bool
- func (e ReadResponseValidationError) Reason() string
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetData() int32
- func (x *Resource) GetId() *ResourceID
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- func (m *Resource) Validate() error
- func (m *Resource) ValidateAll() error
- type ResourceID
- func (*ResourceID) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceID) GetName() string
- func (x *ResourceID) GetTenancy() *ResourceTenancy
- func (x *ResourceID) GetType() *ResourceType
- func (*ResourceID) ProtoMessage()
- func (x *ResourceID) ProtoReflect() protoreflect.Message
- func (x *ResourceID) Reset()
- func (x *ResourceID) String() string
- func (m *ResourceID) Validate() error
- func (m *ResourceID) ValidateAll() error
- type ResourceIDMultiError
- type ResourceIDValidationError
- type ResourceMultiError
- type ResourceServiceClient
- type ResourceServiceServer
- type ResourceService_WatchClient
- type ResourceService_WatchServer
- type ResourceTenancy
- func (*ResourceTenancy) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceTenancy) GetNamespace() string
- func (x *ResourceTenancy) GetPartition() string
- func (x *ResourceTenancy) GetPeer() string
- func (*ResourceTenancy) ProtoMessage()
- func (x *ResourceTenancy) ProtoReflect() protoreflect.Message
- func (x *ResourceTenancy) Reset()
- func (x *ResourceTenancy) String() string
- func (m *ResourceTenancy) Validate() error
- func (m *ResourceTenancy) ValidateAll() error
- type ResourceTenancyMultiError
- type ResourceTenancyValidationError
- func (e ResourceTenancyValidationError) Cause() error
- func (e ResourceTenancyValidationError) Error() string
- func (e ResourceTenancyValidationError) ErrorName() string
- func (e ResourceTenancyValidationError) Field() string
- func (e ResourceTenancyValidationError) Key() bool
- func (e ResourceTenancyValidationError) Reason() string
- type ResourceType
- func (*ResourceType) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceType) GetGroup() string
- func (x *ResourceType) GetKind() string
- func (x *ResourceType) GetVersion() string
- func (*ResourceType) ProtoMessage()
- func (x *ResourceType) ProtoReflect() protoreflect.Message
- func (x *ResourceType) Reset()
- func (x *ResourceType) String() string
- func (m *ResourceType) Validate() error
- func (m *ResourceType) ValidateAll() error
- type ResourceTypeMultiError
- type ResourceTypeValidationError
- func (e ResourceTypeValidationError) Cause() error
- func (e ResourceTypeValidationError) Error() string
- func (e ResourceTypeValidationError) ErrorName() string
- func (e ResourceTypeValidationError) Field() string
- func (e ResourceTypeValidationError) Key() bool
- func (e ResourceTypeValidationError) Reason() string
- type ResourceValidationError
- type UnimplementedResourceServiceServer
- func (UnimplementedResourceServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
- func (UnimplementedResourceServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (UnimplementedResourceServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
- func (UnimplementedResourceServiceServer) Watch(*WatchRequest, ResourceService_WatchServer) error
- func (UnimplementedResourceServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
- type UnsafeResourceServiceServer
- type WatchRequest
- func (*WatchRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WatchRequest) GetId() *ResourceID
- func (*WatchRequest) ProtoMessage()
- func (x *WatchRequest) ProtoReflect() protoreflect.Message
- func (x *WatchRequest) Reset()
- func (x *WatchRequest) String() string
- func (m *WatchRequest) Validate() error
- func (m *WatchRequest) ValidateAll() error
- type WatchRequestMultiError
- type WatchRequestValidationError
- func (e WatchRequestValidationError) Cause() error
- func (e WatchRequestValidationError) Error() string
- func (e WatchRequestValidationError) ErrorName() string
- func (e WatchRequestValidationError) Field() string
- func (e WatchRequestValidationError) Key() bool
- func (e WatchRequestValidationError) Reason() string
- type WatchResponse
- func (*WatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WatchResponse) GetOperation() WatchResponse_Operation
- func (x *WatchResponse) GetResource() *Resource
- func (*WatchResponse) ProtoMessage()
- func (x *WatchResponse) ProtoReflect() protoreflect.Message
- func (x *WatchResponse) Reset()
- func (x *WatchResponse) String() string
- func (m *WatchResponse) Validate() error
- func (m *WatchResponse) ValidateAll() error
- type WatchResponseMultiError
- type WatchResponseValidationError
- func (e WatchResponseValidationError) Cause() error
- func (e WatchResponseValidationError) Error() string
- func (e WatchResponseValidationError) ErrorName() string
- func (e WatchResponseValidationError) Field() string
- func (e WatchResponseValidationError) Key() bool
- func (e WatchResponseValidationError) Reason() string
- type WatchResponse_Operation
- func (WatchResponse_Operation) Descriptor() protoreflect.EnumDescriptor
- func (x WatchResponse_Operation) Enum() *WatchResponse_Operation
- func (WatchResponse_Operation) EnumDescriptor() ([]byte, []int)deprecated
- func (x WatchResponse_Operation) Number() protoreflect.EnumNumber
- func (x WatchResponse_Operation) String() string
- func (WatchResponse_Operation) Type() protoreflect.EnumType
- type WriteRequest
- func (*WriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *WriteRequest) GetResource() *Resource
- func (*WriteRequest) ProtoMessage()
- func (x *WriteRequest) ProtoReflect() protoreflect.Message
- func (x *WriteRequest) Reset()
- func (x *WriteRequest) String() string
- func (m *WriteRequest) Validate() error
- func (m *WriteRequest) ValidateAll() error
- type WriteRequestMultiError
- type WriteRequestValidationError
- func (e WriteRequestValidationError) Cause() error
- func (e WriteRequestValidationError) Error() string
- func (e WriteRequestValidationError) ErrorName() string
- func (e WriteRequestValidationError) Field() string
- func (e WriteRequestValidationError) Key() bool
- func (e WriteRequestValidationError) Reason() string
- type WriteResponse
- func (*WriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WriteResponse) GetResource() *Resource
- func (*WriteResponse) ProtoMessage()
- func (x *WriteResponse) ProtoReflect() protoreflect.Message
- func (x *WriteResponse) Reset()
- func (x *WriteResponse) String() string
- func (m *WriteResponse) Validate() error
- func (m *WriteResponse) ValidateAll() error
- type WriteResponseMultiError
- type WriteResponseValidationError
- func (e WriteResponseValidationError) Cause() error
- func (e WriteResponseValidationError) Error() string
- func (e WriteResponseValidationError) ErrorName() string
- func (e WriteResponseValidationError) Field() string
- func (e WriteResponseValidationError) Key() bool
- func (e WriteResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( WatchResponse_Operation_name = map[int32]string{ 0: "OPERATION_UNSPECIFIED", 1: "OPERATION_UPSERT", 2: "OPERATION_DELETE", } WatchResponse_Operation_value = map[string]int32{ "OPERATION_UNSPECIFIED": 0, "OPERATION_UPSERT": 1, "OPERATION_DELETE": 2, } )
Enum value maps for WatchResponse_Operation.
var File_resource_v1alpha1_resource_proto protoreflect.FileDescriptor
var ResourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "resource.v1alpha1.ResourceService", HandlerType: (*ResourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Read", Handler: _ResourceService_Read_Handler, }, { MethodName: "Write", Handler: _ResourceService_Write_Handler, }, { MethodName: "List", Handler: _ResourceService_List_Handler, }, { MethodName: "Delete", Handler: _ResourceService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Watch", Handler: _ResourceService_Watch_Handler, ServerStreams: true, }, }, Metadata: "resource/v1alpha1/resource.proto", }
ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterResourceServiceHandler ¶
func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterResourceServiceHandler registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterResourceServiceHandlerClient ¶
func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
RegisterResourceServiceHandlerClient registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResourceServiceClient" to call the correct interceptors.
func RegisterResourceServiceHandlerFromEndpoint ¶
func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterResourceServiceServer ¶
func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
Types ¶
type DeleteRequest ¶
type DeleteRequest struct { Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() *ResourceID
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
func (*DeleteRequest) Validate ¶
func (m *DeleteRequest) Validate() error
Validate checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteRequest) ValidateAll ¶
func (m *DeleteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteRequestMultiError, or nil if none found.
type DeleteRequestMultiError ¶
type DeleteRequestMultiError []error
DeleteRequestMultiError is an error wrapping multiple validation errors returned by DeleteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRequestMultiError) AllErrors ¶
func (m DeleteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRequestMultiError) Error ¶
func (m DeleteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRequestValidationError ¶
type DeleteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRequestValidationError is the validation error returned by DeleteRequest.Validate if the designated constraints aren't met.
func (DeleteRequestValidationError) Cause ¶
func (e DeleteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRequestValidationError) Error ¶
func (e DeleteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRequestValidationError) ErrorName ¶
func (e DeleteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRequestValidationError) Field ¶
func (e DeleteRequestValidationError) Field() string
Field function returns field value.
func (DeleteRequestValidationError) Key ¶
func (e DeleteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRequestValidationError) Reason ¶
func (e DeleteRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteResponse ¶
type DeleteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
func (*DeleteResponse) Validate ¶
func (m *DeleteResponse) Validate() error
Validate checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteResponse) ValidateAll ¶
func (m *DeleteResponse) ValidateAll() error
ValidateAll checks the field values on DeleteResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteResponseMultiError, or nil if none found.
type DeleteResponseMultiError ¶
type DeleteResponseMultiError []error
DeleteResponseMultiError is an error wrapping multiple validation errors returned by DeleteResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteResponseMultiError) AllErrors ¶
func (m DeleteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteResponseMultiError) Error ¶
func (m DeleteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteResponseValidationError ¶
type DeleteResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteResponseValidationError is the validation error returned by DeleteResponse.Validate if the designated constraints aren't met.
func (DeleteResponseValidationError) Cause ¶
func (e DeleteResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteResponseValidationError) Error ¶
func (e DeleteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteResponseValidationError) ErrorName ¶
func (e DeleteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteResponseValidationError) Field ¶
func (e DeleteResponseValidationError) Field() string
Field function returns field value.
func (DeleteResponseValidationError) Key ¶
func (e DeleteResponseValidationError) Key() bool
Key function returns key value.
func (DeleteResponseValidationError) Reason ¶
func (e DeleteResponseValidationError) Reason() string
Reason function returns reason value.
type ListRequest ¶
type ListRequest struct { Type *ResourceType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Tenancy *ResourceTenancy `protobuf:"bytes,2,opt,name=tenancy,proto3" json:"tenancy,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetTenancy ¶
func (x *ListRequest) GetTenancy() *ResourceTenancy
func (*ListRequest) GetType ¶
func (x *ListRequest) GetType() *ResourceType
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
func (*ListRequest) Validate ¶
func (m *ListRequest) Validate() error
Validate checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListRequest) ValidateAll ¶
func (m *ListRequest) ValidateAll() error
ValidateAll checks the field values on ListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListRequestMultiError, or nil if none found.
type ListRequestMultiError ¶
type ListRequestMultiError []error
ListRequestMultiError is an error wrapping multiple validation errors returned by ListRequest.ValidateAll() if the designated constraints aren't met.
func (ListRequestMultiError) AllErrors ¶
func (m ListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRequestMultiError) Error ¶
func (m ListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRequestValidationError ¶
type ListRequestValidationError struct {
// contains filtered or unexported fields
}
ListRequestValidationError is the validation error returned by ListRequest.Validate if the designated constraints aren't met.
func (ListRequestValidationError) Cause ¶
func (e ListRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRequestValidationError) Error ¶
func (e ListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRequestValidationError) ErrorName ¶
func (e ListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRequestValidationError) Field ¶
func (e ListRequestValidationError) Field() string
Field function returns field value.
func (ListRequestValidationError) Key ¶
func (e ListRequestValidationError) Key() bool
Key function returns key value.
func (ListRequestValidationError) Reason ¶
func (e ListRequestValidationError) Reason() string
Reason function returns reason value.
type ListResponse ¶
type ListResponse struct { Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetResources ¶
func (x *ListResponse) GetResources() []*Resource
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
func (*ListResponse) Validate ¶
func (m *ListResponse) Validate() error
Validate checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListResponse) ValidateAll ¶
func (m *ListResponse) ValidateAll() error
ValidateAll checks the field values on ListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListResponseMultiError, or nil if none found.
type ListResponseMultiError ¶
type ListResponseMultiError []error
ListResponseMultiError is an error wrapping multiple validation errors returned by ListResponse.ValidateAll() if the designated constraints aren't met.
func (ListResponseMultiError) AllErrors ¶
func (m ListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListResponseMultiError) Error ¶
func (m ListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListResponseValidationError ¶
type ListResponseValidationError struct {
// contains filtered or unexported fields
}
ListResponseValidationError is the validation error returned by ListResponse.Validate if the designated constraints aren't met.
func (ListResponseValidationError) Cause ¶
func (e ListResponseValidationError) Cause() error
Cause function returns cause value.
func (ListResponseValidationError) Error ¶
func (e ListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListResponseValidationError) ErrorName ¶
func (e ListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListResponseValidationError) Field ¶
func (e ListResponseValidationError) Field() string
Field function returns field value.
func (ListResponseValidationError) Key ¶
func (e ListResponseValidationError) Key() bool
Key function returns key value.
func (ListResponseValidationError) Reason ¶
func (e ListResponseValidationError) Reason() string
Reason function returns reason value.
type ReadRequest ¶
type ReadRequest struct { Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*ReadRequest) Descriptor
deprecated
func (*ReadRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadRequest.ProtoReflect.Descriptor instead.
func (*ReadRequest) GetId ¶
func (x *ReadRequest) GetId() *ResourceID
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) ProtoReflect ¶
func (x *ReadRequest) ProtoReflect() protoreflect.Message
func (*ReadRequest) Reset ¶
func (x *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (x *ReadRequest) String() string
func (*ReadRequest) Validate ¶
func (m *ReadRequest) Validate() error
Validate checks the field values on ReadRequest 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 (*ReadRequest) ValidateAll ¶
func (m *ReadRequest) ValidateAll() error
ValidateAll checks the field values on ReadRequest 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 ReadRequestMultiError, or nil if none found.
type ReadRequestMultiError ¶
type ReadRequestMultiError []error
ReadRequestMultiError is an error wrapping multiple validation errors returned by ReadRequest.ValidateAll() if the designated constraints aren't met.
func (ReadRequestMultiError) AllErrors ¶
func (m ReadRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadRequestMultiError) Error ¶
func (m ReadRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadRequestValidationError ¶
type ReadRequestValidationError struct {
// contains filtered or unexported fields
}
ReadRequestValidationError is the validation error returned by ReadRequest.Validate if the designated constraints aren't met.
func (ReadRequestValidationError) Cause ¶
func (e ReadRequestValidationError) Cause() error
Cause function returns cause value.
func (ReadRequestValidationError) Error ¶
func (e ReadRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReadRequestValidationError) ErrorName ¶
func (e ReadRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReadRequestValidationError) Field ¶
func (e ReadRequestValidationError) Field() string
Field function returns field value.
func (ReadRequestValidationError) Key ¶
func (e ReadRequestValidationError) Key() bool
Key function returns key value.
func (ReadRequestValidationError) Reason ¶
func (e ReadRequestValidationError) Reason() string
Reason function returns reason value.
type ReadResponse ¶
type ReadResponse struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*ReadResponse) Descriptor
deprecated
func (*ReadResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadResponse.ProtoReflect.Descriptor instead.
func (*ReadResponse) GetResource ¶
func (x *ReadResponse) GetResource() *Resource
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) ProtoReflect ¶
func (x *ReadResponse) ProtoReflect() protoreflect.Message
func (*ReadResponse) Reset ¶
func (x *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (x *ReadResponse) String() string
func (*ReadResponse) Validate ¶
func (m *ReadResponse) Validate() error
Validate checks the field values on ReadResponse 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 (*ReadResponse) ValidateAll ¶
func (m *ReadResponse) ValidateAll() error
ValidateAll checks the field values on ReadResponse 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 ReadResponseMultiError, or nil if none found.
type ReadResponseMultiError ¶
type ReadResponseMultiError []error
ReadResponseMultiError is an error wrapping multiple validation errors returned by ReadResponse.ValidateAll() if the designated constraints aren't met.
func (ReadResponseMultiError) AllErrors ¶
func (m ReadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReadResponseMultiError) Error ¶
func (m ReadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReadResponseValidationError ¶
type ReadResponseValidationError struct {
// contains filtered or unexported fields
}
ReadResponseValidationError is the validation error returned by ReadResponse.Validate if the designated constraints aren't met.
func (ReadResponseValidationError) Cause ¶
func (e ReadResponseValidationError) Cause() error
Cause function returns cause value.
func (ReadResponseValidationError) Error ¶
func (e ReadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ReadResponseValidationError) ErrorName ¶
func (e ReadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ReadResponseValidationError) Field ¶
func (e ReadResponseValidationError) Field() string
Field function returns field value.
func (ReadResponseValidationError) Key ¶
func (e ReadResponseValidationError) Key() bool
Key function returns key value.
func (ReadResponseValidationError) Reason ¶
func (e ReadResponseValidationError) Reason() string
Reason function returns reason value.
type Resource ¶
type Resource struct { Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Data int32 `protobuf:"varint,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetId ¶
func (x *Resource) GetId() *ResourceID
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
func (*Resource) Validate ¶
Validate checks the field values on Resource 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 (*Resource) ValidateAll ¶
ValidateAll checks the field values on Resource 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 ResourceMultiError, or nil if none found.
type ResourceID ¶
type ResourceID struct { Type *ResourceType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Tenancy *ResourceTenancy `protobuf:"bytes,2,opt,name=tenancy,proto3" json:"tenancy,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ResourceID) Descriptor
deprecated
func (*ResourceID) Descriptor() ([]byte, []int)
Deprecated: Use ResourceID.ProtoReflect.Descriptor instead.
func (*ResourceID) GetName ¶
func (x *ResourceID) GetName() string
func (*ResourceID) GetTenancy ¶
func (x *ResourceID) GetTenancy() *ResourceTenancy
func (*ResourceID) GetType ¶
func (x *ResourceID) GetType() *ResourceType
func (*ResourceID) ProtoMessage ¶
func (*ResourceID) ProtoMessage()
func (*ResourceID) ProtoReflect ¶
func (x *ResourceID) ProtoReflect() protoreflect.Message
func (*ResourceID) Reset ¶
func (x *ResourceID) Reset()
func (*ResourceID) String ¶
func (x *ResourceID) String() string
func (*ResourceID) Validate ¶
func (m *ResourceID) Validate() error
Validate checks the field values on ResourceID 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 (*ResourceID) ValidateAll ¶
func (m *ResourceID) ValidateAll() error
ValidateAll checks the field values on ResourceID 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 ResourceIDMultiError, or nil if none found.
type ResourceIDMultiError ¶
type ResourceIDMultiError []error
ResourceIDMultiError is an error wrapping multiple validation errors returned by ResourceID.ValidateAll() if the designated constraints aren't met.
func (ResourceIDMultiError) AllErrors ¶
func (m ResourceIDMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceIDMultiError) Error ¶
func (m ResourceIDMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceIDValidationError ¶
type ResourceIDValidationError struct {
// contains filtered or unexported fields
}
ResourceIDValidationError is the validation error returned by ResourceID.Validate if the designated constraints aren't met.
func (ResourceIDValidationError) Cause ¶
func (e ResourceIDValidationError) Cause() error
Cause function returns cause value.
func (ResourceIDValidationError) Error ¶
func (e ResourceIDValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceIDValidationError) ErrorName ¶
func (e ResourceIDValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceIDValidationError) Field ¶
func (e ResourceIDValidationError) Field() string
Field function returns field value.
func (ResourceIDValidationError) Key ¶
func (e ResourceIDValidationError) Key() bool
Key function returns key value.
func (ResourceIDValidationError) Reason ¶
func (e ResourceIDValidationError) Reason() string
Reason function returns reason value.
type ResourceMultiError ¶
type ResourceMultiError []error
ResourceMultiError is an error wrapping multiple validation errors returned by Resource.ValidateAll() if the designated constraints aren't met.
func (ResourceMultiError) AllErrors ¶
func (m ResourceMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceMultiError) Error ¶
func (m ResourceMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceServiceClient ¶
type ResourceServiceClient interface { Read(ctx context.Context, in *ReadRequest, opts ...grpc.CallOption) (*ReadResponse, error) Write(ctx context.Context, in *WriteRequest, opts ...grpc.CallOption) (*WriteResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) Watch(ctx context.Context, in *WatchRequest, opts ...grpc.CallOption) (ResourceService_WatchClient, error) }
ResourceServiceClient is the client API for ResourceService 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 NewResourceServiceClient ¶
func NewResourceServiceClient(cc grpc.ClientConnInterface) ResourceServiceClient
type ResourceServiceServer ¶
type ResourceServiceServer interface { Read(context.Context, *ReadRequest) (*ReadResponse, error) Write(context.Context, *WriteRequest) (*WriteResponse, error) List(context.Context, *ListRequest) (*ListResponse, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) Watch(*WatchRequest, ResourceService_WatchServer) error }
ResourceServiceServer is the server API for ResourceService service. All implementations should embed UnimplementedResourceServiceServer for forward compatibility
type ResourceService_WatchClient ¶
type ResourceService_WatchClient interface { Recv() (*WatchResponse, error) grpc.ClientStream }
type ResourceService_WatchServer ¶
type ResourceService_WatchServer interface { Send(*WatchResponse) error grpc.ServerStream }
type ResourceTenancy ¶
type ResourceTenancy struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Peer string `protobuf:"bytes,2,opt,name=peer,proto3" json:"peer,omitempty"` Partition string `protobuf:"bytes,3,opt,name=partition,proto3" json:"partition,omitempty"` // contains filtered or unexported fields }
func (*ResourceTenancy) Descriptor
deprecated
func (*ResourceTenancy) Descriptor() ([]byte, []int)
Deprecated: Use ResourceTenancy.ProtoReflect.Descriptor instead.
func (*ResourceTenancy) GetNamespace ¶
func (x *ResourceTenancy) GetNamespace() string
func (*ResourceTenancy) GetPartition ¶
func (x *ResourceTenancy) GetPartition() string
func (*ResourceTenancy) GetPeer ¶
func (x *ResourceTenancy) GetPeer() string
func (*ResourceTenancy) ProtoMessage ¶
func (*ResourceTenancy) ProtoMessage()
func (*ResourceTenancy) ProtoReflect ¶
func (x *ResourceTenancy) ProtoReflect() protoreflect.Message
func (*ResourceTenancy) Reset ¶
func (x *ResourceTenancy) Reset()
func (*ResourceTenancy) String ¶
func (x *ResourceTenancy) String() string
func (*ResourceTenancy) Validate ¶
func (m *ResourceTenancy) Validate() error
Validate checks the field values on ResourceTenancy 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 (*ResourceTenancy) ValidateAll ¶
func (m *ResourceTenancy) ValidateAll() error
ValidateAll checks the field values on ResourceTenancy 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 ResourceTenancyMultiError, or nil if none found.
type ResourceTenancyMultiError ¶
type ResourceTenancyMultiError []error
ResourceTenancyMultiError is an error wrapping multiple validation errors returned by ResourceTenancy.ValidateAll() if the designated constraints aren't met.
func (ResourceTenancyMultiError) AllErrors ¶
func (m ResourceTenancyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceTenancyMultiError) Error ¶
func (m ResourceTenancyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceTenancyValidationError ¶
type ResourceTenancyValidationError struct {
// contains filtered or unexported fields
}
ResourceTenancyValidationError is the validation error returned by ResourceTenancy.Validate if the designated constraints aren't met.
func (ResourceTenancyValidationError) Cause ¶
func (e ResourceTenancyValidationError) Cause() error
Cause function returns cause value.
func (ResourceTenancyValidationError) Error ¶
func (e ResourceTenancyValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceTenancyValidationError) ErrorName ¶
func (e ResourceTenancyValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceTenancyValidationError) Field ¶
func (e ResourceTenancyValidationError) Field() string
Field function returns field value.
func (ResourceTenancyValidationError) Key ¶
func (e ResourceTenancyValidationError) Key() bool
Key function returns key value.
func (ResourceTenancyValidationError) Reason ¶
func (e ResourceTenancyValidationError) Reason() string
Reason function returns reason value.
type ResourceType ¶
type ResourceType struct { Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*ResourceType) Descriptor
deprecated
func (*ResourceType) Descriptor() ([]byte, []int)
Deprecated: Use ResourceType.ProtoReflect.Descriptor instead.
func (*ResourceType) GetGroup ¶
func (x *ResourceType) GetGroup() string
func (*ResourceType) GetKind ¶
func (x *ResourceType) GetKind() string
func (*ResourceType) GetVersion ¶
func (x *ResourceType) GetVersion() string
func (*ResourceType) ProtoMessage ¶
func (*ResourceType) ProtoMessage()
func (*ResourceType) ProtoReflect ¶
func (x *ResourceType) ProtoReflect() protoreflect.Message
func (*ResourceType) Reset ¶
func (x *ResourceType) Reset()
func (*ResourceType) String ¶
func (x *ResourceType) String() string
func (*ResourceType) Validate ¶
func (m *ResourceType) Validate() error
Validate checks the field values on ResourceType 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 (*ResourceType) ValidateAll ¶
func (m *ResourceType) ValidateAll() error
ValidateAll checks the field values on ResourceType 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 ResourceTypeMultiError, or nil if none found.
type ResourceTypeMultiError ¶
type ResourceTypeMultiError []error
ResourceTypeMultiError is an error wrapping multiple validation errors returned by ResourceType.ValidateAll() if the designated constraints aren't met.
func (ResourceTypeMultiError) AllErrors ¶
func (m ResourceTypeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResourceTypeMultiError) Error ¶
func (m ResourceTypeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResourceTypeValidationError ¶
type ResourceTypeValidationError struct {
// contains filtered or unexported fields
}
ResourceTypeValidationError is the validation error returned by ResourceType.Validate if the designated constraints aren't met.
func (ResourceTypeValidationError) Cause ¶
func (e ResourceTypeValidationError) Cause() error
Cause function returns cause value.
func (ResourceTypeValidationError) Error ¶
func (e ResourceTypeValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceTypeValidationError) ErrorName ¶
func (e ResourceTypeValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceTypeValidationError) Field ¶
func (e ResourceTypeValidationError) Field() string
Field function returns field value.
func (ResourceTypeValidationError) Key ¶
func (e ResourceTypeValidationError) Key() bool
Key function returns key value.
func (ResourceTypeValidationError) Reason ¶
func (e ResourceTypeValidationError) Reason() string
Reason function returns reason value.
type ResourceValidationError ¶
type ResourceValidationError struct {
// contains filtered or unexported fields
}
ResourceValidationError is the validation error returned by Resource.Validate if the designated constraints aren't met.
func (ResourceValidationError) Cause ¶
func (e ResourceValidationError) Cause() error
Cause function returns cause value.
func (ResourceValidationError) Error ¶
func (e ResourceValidationError) Error() string
Error satisfies the builtin error interface
func (ResourceValidationError) ErrorName ¶
func (e ResourceValidationError) ErrorName() string
ErrorName returns error name.
func (ResourceValidationError) Field ¶
func (e ResourceValidationError) Field() string
Field function returns field value.
func (ResourceValidationError) Key ¶
func (e ResourceValidationError) Key() bool
Key function returns key value.
func (ResourceValidationError) Reason ¶
func (e ResourceValidationError) Reason() string
Reason function returns reason value.
type UnimplementedResourceServiceServer ¶
type UnimplementedResourceServiceServer struct { }
UnimplementedResourceServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedResourceServiceServer) Delete ¶
func (UnimplementedResourceServiceServer) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
func (UnimplementedResourceServiceServer) List ¶
func (UnimplementedResourceServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (UnimplementedResourceServiceServer) Read ¶
func (UnimplementedResourceServiceServer) Read(context.Context, *ReadRequest) (*ReadResponse, error)
func (UnimplementedResourceServiceServer) Write ¶
func (UnimplementedResourceServiceServer) Write(context.Context, *WriteRequest) (*WriteResponse, error)
type UnsafeResourceServiceServer ¶
type UnsafeResourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.
type WatchRequest ¶
type WatchRequest struct { Id *ResourceID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*WatchRequest) Descriptor
deprecated
func (*WatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
func (*WatchRequest) GetId ¶
func (x *WatchRequest) GetId() *ResourceID
func (*WatchRequest) ProtoMessage ¶
func (*WatchRequest) ProtoMessage()
func (*WatchRequest) ProtoReflect ¶
func (x *WatchRequest) ProtoReflect() protoreflect.Message
func (*WatchRequest) Reset ¶
func (x *WatchRequest) Reset()
func (*WatchRequest) String ¶
func (x *WatchRequest) String() string
func (*WatchRequest) Validate ¶
func (m *WatchRequest) Validate() error
Validate checks the field values on WatchRequest 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 (*WatchRequest) ValidateAll ¶
func (m *WatchRequest) ValidateAll() error
ValidateAll checks the field values on WatchRequest 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 WatchRequestMultiError, or nil if none found.
type WatchRequestMultiError ¶
type WatchRequestMultiError []error
WatchRequestMultiError is an error wrapping multiple validation errors returned by WatchRequest.ValidateAll() if the designated constraints aren't met.
func (WatchRequestMultiError) AllErrors ¶
func (m WatchRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WatchRequestMultiError) Error ¶
func (m WatchRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WatchRequestValidationError ¶
type WatchRequestValidationError struct {
// contains filtered or unexported fields
}
WatchRequestValidationError is the validation error returned by WatchRequest.Validate if the designated constraints aren't met.
func (WatchRequestValidationError) Cause ¶
func (e WatchRequestValidationError) Cause() error
Cause function returns cause value.
func (WatchRequestValidationError) Error ¶
func (e WatchRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WatchRequestValidationError) ErrorName ¶
func (e WatchRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WatchRequestValidationError) Field ¶
func (e WatchRequestValidationError) Field() string
Field function returns field value.
func (WatchRequestValidationError) Key ¶
func (e WatchRequestValidationError) Key() bool
Key function returns key value.
func (WatchRequestValidationError) Reason ¶
func (e WatchRequestValidationError) Reason() string
Reason function returns reason value.
type WatchResponse ¶
type WatchResponse struct { Operation WatchResponse_Operation `protobuf:"varint,1,opt,name=operation,proto3,enum=resource.v1alpha1.WatchResponse_Operation" json:"operation,omitempty"` Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*WatchResponse) Descriptor
deprecated
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetOperation ¶
func (x *WatchResponse) GetOperation() WatchResponse_Operation
func (*WatchResponse) GetResource ¶
func (x *WatchResponse) GetResource() *Resource
func (*WatchResponse) ProtoMessage ¶
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶
func (x *WatchResponse) String() string
func (*WatchResponse) Validate ¶
func (m *WatchResponse) Validate() error
Validate checks the field values on WatchResponse 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 (*WatchResponse) ValidateAll ¶
func (m *WatchResponse) ValidateAll() error
ValidateAll checks the field values on WatchResponse 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 WatchResponseMultiError, or nil if none found.
type WatchResponseMultiError ¶
type WatchResponseMultiError []error
WatchResponseMultiError is an error wrapping multiple validation errors returned by WatchResponse.ValidateAll() if the designated constraints aren't met.
func (WatchResponseMultiError) AllErrors ¶
func (m WatchResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WatchResponseMultiError) Error ¶
func (m WatchResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WatchResponseValidationError ¶
type WatchResponseValidationError struct {
// contains filtered or unexported fields
}
WatchResponseValidationError is the validation error returned by WatchResponse.Validate if the designated constraints aren't met.
func (WatchResponseValidationError) Cause ¶
func (e WatchResponseValidationError) Cause() error
Cause function returns cause value.
func (WatchResponseValidationError) Error ¶
func (e WatchResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WatchResponseValidationError) ErrorName ¶
func (e WatchResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WatchResponseValidationError) Field ¶
func (e WatchResponseValidationError) Field() string
Field function returns field value.
func (WatchResponseValidationError) Key ¶
func (e WatchResponseValidationError) Key() bool
Key function returns key value.
func (WatchResponseValidationError) Reason ¶
func (e WatchResponseValidationError) Reason() string
Reason function returns reason value.
type WatchResponse_Operation ¶
type WatchResponse_Operation int32
const ( WatchResponse_OPERATION_UNSPECIFIED WatchResponse_Operation = 0 WatchResponse_OPERATION_UPSERT WatchResponse_Operation = 1 WatchResponse_OPERATION_DELETE WatchResponse_Operation = 2 )
func (WatchResponse_Operation) Descriptor ¶
func (WatchResponse_Operation) Descriptor() protoreflect.EnumDescriptor
func (WatchResponse_Operation) Enum ¶
func (x WatchResponse_Operation) Enum() *WatchResponse_Operation
func (WatchResponse_Operation) EnumDescriptor
deprecated
func (WatchResponse_Operation) EnumDescriptor() ([]byte, []int)
Deprecated: Use WatchResponse_Operation.Descriptor instead.
func (WatchResponse_Operation) Number ¶
func (x WatchResponse_Operation) Number() protoreflect.EnumNumber
func (WatchResponse_Operation) String ¶
func (x WatchResponse_Operation) String() string
func (WatchResponse_Operation) Type ¶
func (WatchResponse_Operation) Type() protoreflect.EnumType
type WriteRequest ¶
type WriteRequest struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*WriteRequest) Descriptor
deprecated
func (*WriteRequest) Descriptor() ([]byte, []int)
Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.
func (*WriteRequest) GetResource ¶
func (x *WriteRequest) GetResource() *Resource
func (*WriteRequest) ProtoMessage ¶
func (*WriteRequest) ProtoMessage()
func (*WriteRequest) ProtoReflect ¶
func (x *WriteRequest) ProtoReflect() protoreflect.Message
func (*WriteRequest) Reset ¶
func (x *WriteRequest) Reset()
func (*WriteRequest) String ¶
func (x *WriteRequest) String() string
func (*WriteRequest) Validate ¶
func (m *WriteRequest) Validate() error
Validate checks the field values on WriteRequest 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 (*WriteRequest) ValidateAll ¶
func (m *WriteRequest) ValidateAll() error
ValidateAll checks the field values on WriteRequest 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 WriteRequestMultiError, or nil if none found.
type WriteRequestMultiError ¶
type WriteRequestMultiError []error
WriteRequestMultiError is an error wrapping multiple validation errors returned by WriteRequest.ValidateAll() if the designated constraints aren't met.
func (WriteRequestMultiError) AllErrors ¶
func (m WriteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WriteRequestMultiError) Error ¶
func (m WriteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WriteRequestValidationError ¶
type WriteRequestValidationError struct {
// contains filtered or unexported fields
}
WriteRequestValidationError is the validation error returned by WriteRequest.Validate if the designated constraints aren't met.
func (WriteRequestValidationError) Cause ¶
func (e WriteRequestValidationError) Cause() error
Cause function returns cause value.
func (WriteRequestValidationError) Error ¶
func (e WriteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (WriteRequestValidationError) ErrorName ¶
func (e WriteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (WriteRequestValidationError) Field ¶
func (e WriteRequestValidationError) Field() string
Field function returns field value.
func (WriteRequestValidationError) Key ¶
func (e WriteRequestValidationError) Key() bool
Key function returns key value.
func (WriteRequestValidationError) Reason ¶
func (e WriteRequestValidationError) Reason() string
Reason function returns reason value.
type WriteResponse ¶
type WriteResponse struct { Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // contains filtered or unexported fields }
func (*WriteResponse) Descriptor
deprecated
func (*WriteResponse) Descriptor() ([]byte, []int)
Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.
func (*WriteResponse) GetResource ¶
func (x *WriteResponse) GetResource() *Resource
func (*WriteResponse) ProtoMessage ¶
func (*WriteResponse) ProtoMessage()
func (*WriteResponse) ProtoReflect ¶
func (x *WriteResponse) ProtoReflect() protoreflect.Message
func (*WriteResponse) Reset ¶
func (x *WriteResponse) Reset()
func (*WriteResponse) String ¶
func (x *WriteResponse) String() string
func (*WriteResponse) Validate ¶
func (m *WriteResponse) Validate() error
Validate checks the field values on WriteResponse 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 (*WriteResponse) ValidateAll ¶
func (m *WriteResponse) ValidateAll() error
ValidateAll checks the field values on WriteResponse 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 WriteResponseMultiError, or nil if none found.
type WriteResponseMultiError ¶
type WriteResponseMultiError []error
WriteResponseMultiError is an error wrapping multiple validation errors returned by WriteResponse.ValidateAll() if the designated constraints aren't met.
func (WriteResponseMultiError) AllErrors ¶
func (m WriteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WriteResponseMultiError) Error ¶
func (m WriteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WriteResponseValidationError ¶
type WriteResponseValidationError struct {
// contains filtered or unexported fields
}
WriteResponseValidationError is the validation error returned by WriteResponse.Validate if the designated constraints aren't met.
func (WriteResponseValidationError) Cause ¶
func (e WriteResponseValidationError) Cause() error
Cause function returns cause value.
func (WriteResponseValidationError) Error ¶
func (e WriteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (WriteResponseValidationError) ErrorName ¶
func (e WriteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (WriteResponseValidationError) Field ¶
func (e WriteResponseValidationError) Field() string
Field function returns field value.
func (WriteResponseValidationError) Key ¶
func (e WriteResponseValidationError) Key() bool
Key function returns key value.
func (WriteResponseValidationError) Reason ¶
func (e WriteResponseValidationError) Reason() string
Reason function returns reason value.