Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRuntimeDiscoveryServiceServer(s grpc.ServiceRegistrar, srv RuntimeDiscoveryServiceServer)
- type RtdsDummy
- type RtdsDummyMultiError
- type RtdsDummyValidationError
- type Runtime
- func (*Runtime) Descriptor() ([]byte, []int)deprecated
- func (x *Runtime) GetLayer() *structpb.Struct
- func (x *Runtime) GetName() string
- func (*Runtime) ProtoMessage()
- func (x *Runtime) ProtoReflect() protoreflect.Message
- func (x *Runtime) Reset()
- func (x *Runtime) String() string
- func (m *Runtime) Validate() error
- func (m *Runtime) ValidateAll() error
- type RuntimeDiscoveryServiceClient
- type RuntimeDiscoveryServiceServer
- type RuntimeDiscoveryService_DeltaRuntimeClient
- type RuntimeDiscoveryService_DeltaRuntimeServer
- type RuntimeDiscoveryService_StreamRuntimeClient
- type RuntimeDiscoveryService_StreamRuntimeServer
- type RuntimeMultiError
- type RuntimeValidationError
- type UnimplementedRuntimeDiscoveryServiceServer
- func (UnimplementedRuntimeDiscoveryServiceServer) DeltaRuntime(RuntimeDiscoveryService_DeltaRuntimeServer) error
- func (UnimplementedRuntimeDiscoveryServiceServer) FetchRuntime(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error)
- func (UnimplementedRuntimeDiscoveryServiceServer) StreamRuntime(RuntimeDiscoveryService_StreamRuntimeServer) error
- type UnsafeRuntimeDiscoveryServiceServer
Constants ¶
const ( RuntimeDiscoveryService_StreamRuntime_FullMethodName = "/envoy.service.runtime.v3.RuntimeDiscoveryService/StreamRuntime" RuntimeDiscoveryService_DeltaRuntime_FullMethodName = "/envoy.service.runtime.v3.RuntimeDiscoveryService/DeltaRuntime" RuntimeDiscoveryService_FetchRuntime_FullMethodName = "/envoy.service.runtime.v3.RuntimeDiscoveryService/FetchRuntime" )
Variables ¶
var File_envoy_service_runtime_v3_rtds_proto protoreflect.FileDescriptor
var RuntimeDiscoveryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "envoy.service.runtime.v3.RuntimeDiscoveryService", HandlerType: (*RuntimeDiscoveryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "FetchRuntime", Handler: _RuntimeDiscoveryService_FetchRuntime_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamRuntime", Handler: _RuntimeDiscoveryService_StreamRuntime_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DeltaRuntime", Handler: _RuntimeDiscoveryService_DeltaRuntime_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "envoy/service/runtime/v3/rtds.proto", }
RuntimeDiscoveryService_ServiceDesc is the grpc.ServiceDesc for RuntimeDiscoveryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRuntimeDiscoveryServiceServer ¶
func RegisterRuntimeDiscoveryServiceServer(s grpc.ServiceRegistrar, srv RuntimeDiscoveryServiceServer)
Types ¶
type RtdsDummy ¶
type RtdsDummy struct {
// contains filtered or unexported fields
}
[#not-implemented-hide:] Not configuration. Workaround c++ protobuf issue with importing services: https://github.com/google/protobuf/issues/4221
func (*RtdsDummy) Descriptor
deprecated
func (*RtdsDummy) ProtoMessage ¶
func (*RtdsDummy) ProtoMessage()
func (*RtdsDummy) ProtoReflect ¶ added in v0.9.6
func (x *RtdsDummy) ProtoReflect() protoreflect.Message
func (*RtdsDummy) Validate ¶
Validate checks the field values on RtdsDummy 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 (*RtdsDummy) ValidateAll ¶ added in v0.10.0
ValidateAll checks the field values on RtdsDummy 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 RtdsDummyMultiError, or nil if none found.
type RtdsDummyMultiError ¶ added in v0.10.0
type RtdsDummyMultiError []error
RtdsDummyMultiError is an error wrapping multiple validation errors returned by RtdsDummy.ValidateAll() if the designated constraints aren't met.
func (RtdsDummyMultiError) AllErrors ¶ added in v0.10.0
func (m RtdsDummyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RtdsDummyMultiError) Error ¶ added in v0.10.0
func (m RtdsDummyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RtdsDummyValidationError ¶
type RtdsDummyValidationError struct {
// contains filtered or unexported fields
}
RtdsDummyValidationError is the validation error returned by RtdsDummy.Validate if the designated constraints aren't met.
func (RtdsDummyValidationError) Cause ¶
func (e RtdsDummyValidationError) Cause() error
Cause function returns cause value.
func (RtdsDummyValidationError) Error ¶
func (e RtdsDummyValidationError) Error() string
Error satisfies the builtin error interface
func (RtdsDummyValidationError) ErrorName ¶
func (e RtdsDummyValidationError) ErrorName() string
ErrorName returns error name.
func (RtdsDummyValidationError) Field ¶
func (e RtdsDummyValidationError) Field() string
Field function returns field value.
func (RtdsDummyValidationError) Key ¶
func (e RtdsDummyValidationError) Key() bool
Key function returns key value.
func (RtdsDummyValidationError) Reason ¶
func (e RtdsDummyValidationError) Reason() string
Reason function returns reason value.
type Runtime ¶
type Runtime struct { // Runtime resource name. This makes the Runtime a self-describing xDS // resource. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Layer *structpb.Struct `protobuf:"bytes,2,opt,name=layer,proto3" json:"layer,omitempty"` // contains filtered or unexported fields }
RTDS resource type. This describes a layer in the runtime virtual filesystem.
func (*Runtime) Descriptor
deprecated
func (*Runtime) ProtoMessage ¶
func (*Runtime) ProtoMessage()
func (*Runtime) ProtoReflect ¶ added in v0.9.6
func (x *Runtime) ProtoReflect() protoreflect.Message
func (*Runtime) Validate ¶
Validate checks the field values on Runtime 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 (*Runtime) ValidateAll ¶ added in v0.10.0
ValidateAll checks the field values on Runtime 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 RuntimeMultiError, or nil if none found.
type RuntimeDiscoveryServiceClient ¶
type RuntimeDiscoveryServiceClient interface { StreamRuntime(ctx context.Context, opts ...grpc.CallOption) (RuntimeDiscoveryService_StreamRuntimeClient, error) DeltaRuntime(ctx context.Context, opts ...grpc.CallOption) (RuntimeDiscoveryService_DeltaRuntimeClient, error) FetchRuntime(ctx context.Context, in *v3.DiscoveryRequest, opts ...grpc.CallOption) (*v3.DiscoveryResponse, error) }
RuntimeDiscoveryServiceClient is the client API for RuntimeDiscoveryService 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 NewRuntimeDiscoveryServiceClient ¶
func NewRuntimeDiscoveryServiceClient(cc grpc.ClientConnInterface) RuntimeDiscoveryServiceClient
type RuntimeDiscoveryServiceServer ¶
type RuntimeDiscoveryServiceServer interface { StreamRuntime(RuntimeDiscoveryService_StreamRuntimeServer) error DeltaRuntime(RuntimeDiscoveryService_DeltaRuntimeServer) error FetchRuntime(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error) }
RuntimeDiscoveryServiceServer is the server API for RuntimeDiscoveryService service. All implementations should embed UnimplementedRuntimeDiscoveryServiceServer for forward compatibility
type RuntimeDiscoveryService_DeltaRuntimeClient ¶
type RuntimeDiscoveryService_DeltaRuntimeClient interface { Send(*v3.DeltaDiscoveryRequest) error Recv() (*v3.DeltaDiscoveryResponse, error) grpc.ClientStream }
type RuntimeDiscoveryService_DeltaRuntimeServer ¶
type RuntimeDiscoveryService_DeltaRuntimeServer interface { Send(*v3.DeltaDiscoveryResponse) error Recv() (*v3.DeltaDiscoveryRequest, error) grpc.ServerStream }
type RuntimeDiscoveryService_StreamRuntimeClient ¶
type RuntimeDiscoveryService_StreamRuntimeClient interface { Send(*v3.DiscoveryRequest) error Recv() (*v3.DiscoveryResponse, error) grpc.ClientStream }
type RuntimeDiscoveryService_StreamRuntimeServer ¶
type RuntimeDiscoveryService_StreamRuntimeServer interface { Send(*v3.DiscoveryResponse) error Recv() (*v3.DiscoveryRequest, error) grpc.ServerStream }
type RuntimeMultiError ¶ added in v0.10.0
type RuntimeMultiError []error
RuntimeMultiError is an error wrapping multiple validation errors returned by Runtime.ValidateAll() if the designated constraints aren't met.
func (RuntimeMultiError) AllErrors ¶ added in v0.10.0
func (m RuntimeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RuntimeMultiError) Error ¶ added in v0.10.0
func (m RuntimeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RuntimeValidationError ¶
type RuntimeValidationError struct {
// contains filtered or unexported fields
}
RuntimeValidationError is the validation error returned by Runtime.Validate if the designated constraints aren't met.
func (RuntimeValidationError) Cause ¶
func (e RuntimeValidationError) Cause() error
Cause function returns cause value.
func (RuntimeValidationError) Error ¶
func (e RuntimeValidationError) Error() string
Error satisfies the builtin error interface
func (RuntimeValidationError) ErrorName ¶
func (e RuntimeValidationError) ErrorName() string
ErrorName returns error name.
func (RuntimeValidationError) Field ¶
func (e RuntimeValidationError) Field() string
Field function returns field value.
func (RuntimeValidationError) Key ¶
func (e RuntimeValidationError) Key() bool
Key function returns key value.
func (RuntimeValidationError) Reason ¶
func (e RuntimeValidationError) Reason() string
Reason function returns reason value.
type UnimplementedRuntimeDiscoveryServiceServer ¶
type UnimplementedRuntimeDiscoveryServiceServer struct { }
UnimplementedRuntimeDiscoveryServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedRuntimeDiscoveryServiceServer) DeltaRuntime ¶
func (UnimplementedRuntimeDiscoveryServiceServer) DeltaRuntime(RuntimeDiscoveryService_DeltaRuntimeServer) error
func (UnimplementedRuntimeDiscoveryServiceServer) FetchRuntime ¶
func (UnimplementedRuntimeDiscoveryServiceServer) FetchRuntime(context.Context, *v3.DiscoveryRequest) (*v3.DiscoveryResponse, error)
func (UnimplementedRuntimeDiscoveryServiceServer) StreamRuntime ¶
func (UnimplementedRuntimeDiscoveryServiceServer) StreamRuntime(RuntimeDiscoveryService_StreamRuntimeServer) error
type UnsafeRuntimeDiscoveryServiceServer ¶ added in v0.13.0
type UnsafeRuntimeDiscoveryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRuntimeDiscoveryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RuntimeDiscoveryServiceServer will result in compilation errors.