Documentation ¶
Overview ¶
Package previewv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterFlowPreviewServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterFlowPreviewServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FlowPreviewServiceClient) error
- func RegisterFlowPreviewServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterFlowPreviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FlowPreviewServiceServer) error
- func RegisterFlowPreviewServiceServer(s grpc.ServiceRegistrar, srv FlowPreviewServiceServer)
- type FlowPreviewServiceClient
- type FlowPreviewServiceServer
- type PreviewFlowLabelsResponse
- func (*PreviewFlowLabelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewFlowLabelsResponse) GetSamples() []*PreviewFlowLabelsResponse_FlowLabels
- func (msg *PreviewFlowLabelsResponse) MarshalJSON() ([]byte, error)
- func (m *PreviewFlowLabelsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PreviewFlowLabelsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *PreviewFlowLabelsResponse) MarshalVT() (dAtA []byte, err error)
- func (*PreviewFlowLabelsResponse) ProtoMessage()
- func (x *PreviewFlowLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewFlowLabelsResponse) Reset()
- func (m *PreviewFlowLabelsResponse) SizeVT() (n int)
- func (x *PreviewFlowLabelsResponse) String() string
- func (msg *PreviewFlowLabelsResponse) UnmarshalJSON(b []byte) error
- func (m *PreviewFlowLabelsResponse) UnmarshalVT(dAtA []byte) error
- func (m *PreviewFlowLabelsResponse) Validate() error
- func (m *PreviewFlowLabelsResponse) ValidateAll() error
- type PreviewFlowLabelsResponseMultiError
- type PreviewFlowLabelsResponseValidationError
- func (e PreviewFlowLabelsResponseValidationError) Cause() error
- func (e PreviewFlowLabelsResponseValidationError) Error() string
- func (e PreviewFlowLabelsResponseValidationError) ErrorName() string
- func (e PreviewFlowLabelsResponseValidationError) Field() string
- func (e PreviewFlowLabelsResponseValidationError) Key() bool
- func (e PreviewFlowLabelsResponseValidationError) Reason() string
- type PreviewFlowLabelsResponse_FlowLabels
- func (*PreviewFlowLabelsResponse_FlowLabels) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewFlowLabelsResponse_FlowLabels) GetLabels() map[string]string
- func (msg *PreviewFlowLabelsResponse_FlowLabels) MarshalJSON() ([]byte, error)
- func (m *PreviewFlowLabelsResponse_FlowLabels) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PreviewFlowLabelsResponse_FlowLabels) MarshalToVT(dAtA []byte) (int, error)
- func (m *PreviewFlowLabelsResponse_FlowLabels) MarshalVT() (dAtA []byte, err error)
- func (*PreviewFlowLabelsResponse_FlowLabels) ProtoMessage()
- func (x *PreviewFlowLabelsResponse_FlowLabels) ProtoReflect() protoreflect.Message
- func (x *PreviewFlowLabelsResponse_FlowLabels) Reset()
- func (m *PreviewFlowLabelsResponse_FlowLabels) SizeVT() (n int)
- func (x *PreviewFlowLabelsResponse_FlowLabels) String() string
- func (msg *PreviewFlowLabelsResponse_FlowLabels) UnmarshalJSON(b []byte) error
- func (m *PreviewFlowLabelsResponse_FlowLabels) UnmarshalVT(dAtA []byte) error
- func (m *PreviewFlowLabelsResponse_FlowLabels) Validate() error
- func (m *PreviewFlowLabelsResponse_FlowLabels) ValidateAll() error
- type PreviewFlowLabelsResponse_FlowLabelsMultiError
- type PreviewFlowLabelsResponse_FlowLabelsValidationError
- func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Cause() error
- func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Error() string
- func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) ErrorName() string
- func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Field() string
- func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Key() bool
- func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Reason() string
- type PreviewHTTPRequestsResponse
- func (*PreviewHTTPRequestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewHTTPRequestsResponse) GetSamples() []*structpb.Struct
- func (msg *PreviewHTTPRequestsResponse) MarshalJSON() ([]byte, error)
- func (m *PreviewHTTPRequestsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PreviewHTTPRequestsResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *PreviewHTTPRequestsResponse) MarshalVT() (dAtA []byte, err error)
- func (*PreviewHTTPRequestsResponse) ProtoMessage()
- func (x *PreviewHTTPRequestsResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewHTTPRequestsResponse) Reset()
- func (m *PreviewHTTPRequestsResponse) SizeVT() (n int)
- func (x *PreviewHTTPRequestsResponse) String() string
- func (msg *PreviewHTTPRequestsResponse) UnmarshalJSON(b []byte) error
- func (m *PreviewHTTPRequestsResponse) UnmarshalVT(dAtA []byte) error
- func (m *PreviewHTTPRequestsResponse) Validate() error
- func (m *PreviewHTTPRequestsResponse) ValidateAll() error
- type PreviewHTTPRequestsResponseMultiError
- type PreviewHTTPRequestsResponseValidationError
- func (e PreviewHTTPRequestsResponseValidationError) Cause() error
- func (e PreviewHTTPRequestsResponseValidationError) Error() string
- func (e PreviewHTTPRequestsResponseValidationError) ErrorName() string
- func (e PreviewHTTPRequestsResponseValidationError) Field() string
- func (e PreviewHTTPRequestsResponseValidationError) Key() bool
- func (e PreviewHTTPRequestsResponseValidationError) Reason() string
- type PreviewRequest
- func (*PreviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewRequest) GetControlPoint() string
- func (x *PreviewRequest) GetLabelMatcher() *v1.LabelMatcher
- func (x *PreviewRequest) GetSamples() int64
- func (x *PreviewRequest) GetService() string
- func (msg *PreviewRequest) MarshalJSON() ([]byte, error)
- func (m *PreviewRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *PreviewRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *PreviewRequest) MarshalVT() (dAtA []byte, err error)
- func (*PreviewRequest) ProtoMessage()
- func (x *PreviewRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewRequest) Reset()
- func (m *PreviewRequest) SizeVT() (n int)
- func (x *PreviewRequest) String() string
- func (msg *PreviewRequest) UnmarshalJSON(b []byte) error
- func (m *PreviewRequest) UnmarshalVT(dAtA []byte) error
- func (m *PreviewRequest) Validate() error
- func (m *PreviewRequest) ValidateAll() error
- type PreviewRequestMultiError
- type PreviewRequestValidationError
- func (e PreviewRequestValidationError) Cause() error
- func (e PreviewRequestValidationError) Error() string
- func (e PreviewRequestValidationError) ErrorName() string
- func (e PreviewRequestValidationError) Field() string
- func (e PreviewRequestValidationError) Key() bool
- func (e PreviewRequestValidationError) Reason() string
- type UnimplementedFlowPreviewServiceServer
- type UnsafeFlowPreviewServiceServer
Constants ¶
const ( FlowPreviewService_PreviewFlowLabels_FullMethodName = "/aperture.flowcontrol.preview.v1.FlowPreviewService/PreviewFlowLabels" FlowPreviewService_PreviewHTTPRequests_FullMethodName = "/aperture.flowcontrol.preview.v1.FlowPreviewService/PreviewHTTPRequests" )
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
var File_aperture_flowcontrol_preview_v1_preview_proto protoreflect.FileDescriptor
var FlowPreviewService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aperture.flowcontrol.preview.v1.FlowPreviewService", HandlerType: (*FlowPreviewServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PreviewFlowLabels", Handler: _FlowPreviewService_PreviewFlowLabels_Handler, }, { MethodName: "PreviewHTTPRequests", Handler: _FlowPreviewService_PreviewHTTPRequests_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aperture/flowcontrol/preview/v1/preview.proto", }
FlowPreviewService_ServiceDesc is the grpc.ServiceDesc for FlowPreviewService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFlowPreviewServiceHandler ¶
func RegisterFlowPreviewServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterFlowPreviewServiceHandler registers the http handlers for service FlowPreviewService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterFlowPreviewServiceHandlerClient ¶
func RegisterFlowPreviewServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FlowPreviewServiceClient) error
RegisterFlowPreviewServiceHandlerClient registers the http handlers for service FlowPreviewService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FlowPreviewServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FlowPreviewServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FlowPreviewServiceClient" to call the correct interceptors.
func RegisterFlowPreviewServiceHandlerFromEndpoint ¶
func RegisterFlowPreviewServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterFlowPreviewServiceHandlerFromEndpoint is same as RegisterFlowPreviewServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterFlowPreviewServiceHandlerServer ¶
func RegisterFlowPreviewServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FlowPreviewServiceServer) error
RegisterFlowPreviewServiceHandlerServer registers the http handlers for service FlowPreviewService to "mux". UnaryRPC :call FlowPreviewServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterFlowPreviewServiceHandlerFromEndpoint instead.
func RegisterFlowPreviewServiceServer ¶
func RegisterFlowPreviewServiceServer(s grpc.ServiceRegistrar, srv FlowPreviewServiceServer)
Types ¶
type FlowPreviewServiceClient ¶
type FlowPreviewServiceClient interface { PreviewFlowLabels(ctx context.Context, in *PreviewRequest, opts ...grpc.CallOption) (*PreviewFlowLabelsResponse, error) PreviewHTTPRequests(ctx context.Context, in *PreviewRequest, opts ...grpc.CallOption) (*PreviewHTTPRequestsResponse, error) }
FlowPreviewServiceClient is the client API for FlowPreviewService 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 NewFlowPreviewServiceClient ¶
func NewFlowPreviewServiceClient(cc grpc.ClientConnInterface) FlowPreviewServiceClient
type FlowPreviewServiceServer ¶
type FlowPreviewServiceServer interface { PreviewFlowLabels(context.Context, *PreviewRequest) (*PreviewFlowLabelsResponse, error) PreviewHTTPRequests(context.Context, *PreviewRequest) (*PreviewHTTPRequestsResponse, error) }
FlowPreviewServiceServer is the server API for FlowPreviewService service. All implementations should embed UnimplementedFlowPreviewServiceServer for forward compatibility
type PreviewFlowLabelsResponse ¶
type PreviewFlowLabelsResponse struct { Samples []*PreviewFlowLabelsResponse_FlowLabels `protobuf:"bytes,1,rep,name=samples,proto3" json:"samples,omitempty"` // contains filtered or unexported fields }
func (*PreviewFlowLabelsResponse) Descriptor
deprecated
func (*PreviewFlowLabelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewFlowLabelsResponse.ProtoReflect.Descriptor instead.
func (*PreviewFlowLabelsResponse) GetSamples ¶
func (x *PreviewFlowLabelsResponse) GetSamples() []*PreviewFlowLabelsResponse_FlowLabels
func (*PreviewFlowLabelsResponse) MarshalJSON ¶
func (msg *PreviewFlowLabelsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*PreviewFlowLabelsResponse) MarshalToSizedBufferVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PreviewFlowLabelsResponse) MarshalToVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*PreviewFlowLabelsResponse) MarshalVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse) MarshalVT() (dAtA []byte, err error)
func (*PreviewFlowLabelsResponse) ProtoMessage ¶
func (*PreviewFlowLabelsResponse) ProtoMessage()
func (*PreviewFlowLabelsResponse) ProtoReflect ¶
func (x *PreviewFlowLabelsResponse) ProtoReflect() protoreflect.Message
func (*PreviewFlowLabelsResponse) Reset ¶
func (x *PreviewFlowLabelsResponse) Reset()
func (*PreviewFlowLabelsResponse) SizeVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse) SizeVT() (n int)
func (*PreviewFlowLabelsResponse) String ¶
func (x *PreviewFlowLabelsResponse) String() string
func (*PreviewFlowLabelsResponse) UnmarshalJSON ¶
func (msg *PreviewFlowLabelsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*PreviewFlowLabelsResponse) UnmarshalVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse) UnmarshalVT(dAtA []byte) error
func (*PreviewFlowLabelsResponse) Validate ¶
func (m *PreviewFlowLabelsResponse) Validate() error
Validate checks the field values on PreviewFlowLabelsResponse 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 (*PreviewFlowLabelsResponse) ValidateAll ¶
func (m *PreviewFlowLabelsResponse) ValidateAll() error
ValidateAll checks the field values on PreviewFlowLabelsResponse 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 PreviewFlowLabelsResponseMultiError, or nil if none found.
type PreviewFlowLabelsResponseMultiError ¶
type PreviewFlowLabelsResponseMultiError []error
PreviewFlowLabelsResponseMultiError is an error wrapping multiple validation errors returned by PreviewFlowLabelsResponse.ValidateAll() if the designated constraints aren't met.
func (PreviewFlowLabelsResponseMultiError) AllErrors ¶
func (m PreviewFlowLabelsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreviewFlowLabelsResponseMultiError) Error ¶
func (m PreviewFlowLabelsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreviewFlowLabelsResponseValidationError ¶
type PreviewFlowLabelsResponseValidationError struct {
// contains filtered or unexported fields
}
PreviewFlowLabelsResponseValidationError is the validation error returned by PreviewFlowLabelsResponse.Validate if the designated constraints aren't met.
func (PreviewFlowLabelsResponseValidationError) Cause ¶
func (e PreviewFlowLabelsResponseValidationError) Cause() error
Cause function returns cause value.
func (PreviewFlowLabelsResponseValidationError) Error ¶
func (e PreviewFlowLabelsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PreviewFlowLabelsResponseValidationError) ErrorName ¶
func (e PreviewFlowLabelsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PreviewFlowLabelsResponseValidationError) Field ¶
func (e PreviewFlowLabelsResponseValidationError) Field() string
Field function returns field value.
func (PreviewFlowLabelsResponseValidationError) Key ¶
func (e PreviewFlowLabelsResponseValidationError) Key() bool
Key function returns key value.
func (PreviewFlowLabelsResponseValidationError) Reason ¶
func (e PreviewFlowLabelsResponseValidationError) Reason() string
Reason function returns reason value.
type PreviewFlowLabelsResponse_FlowLabels ¶
type PreviewFlowLabelsResponse_FlowLabels struct { Labels map[string]string `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PreviewFlowLabelsResponse_FlowLabels) Descriptor
deprecated
func (*PreviewFlowLabelsResponse_FlowLabels) Descriptor() ([]byte, []int)
Deprecated: Use PreviewFlowLabelsResponse_FlowLabels.ProtoReflect.Descriptor instead.
func (*PreviewFlowLabelsResponse_FlowLabels) GetLabels ¶
func (x *PreviewFlowLabelsResponse_FlowLabels) GetLabels() map[string]string
func (*PreviewFlowLabelsResponse_FlowLabels) MarshalJSON ¶
func (msg *PreviewFlowLabelsResponse_FlowLabels) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*PreviewFlowLabelsResponse_FlowLabels) MarshalToSizedBufferVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse_FlowLabels) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PreviewFlowLabelsResponse_FlowLabels) MarshalToVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse_FlowLabels) MarshalToVT(dAtA []byte) (int, error)
func (*PreviewFlowLabelsResponse_FlowLabels) MarshalVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse_FlowLabels) MarshalVT() (dAtA []byte, err error)
func (*PreviewFlowLabelsResponse_FlowLabels) ProtoMessage ¶
func (*PreviewFlowLabelsResponse_FlowLabels) ProtoMessage()
func (*PreviewFlowLabelsResponse_FlowLabels) ProtoReflect ¶
func (x *PreviewFlowLabelsResponse_FlowLabels) ProtoReflect() protoreflect.Message
func (*PreviewFlowLabelsResponse_FlowLabels) Reset ¶
func (x *PreviewFlowLabelsResponse_FlowLabels) Reset()
func (*PreviewFlowLabelsResponse_FlowLabels) SizeVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse_FlowLabels) SizeVT() (n int)
func (*PreviewFlowLabelsResponse_FlowLabels) String ¶
func (x *PreviewFlowLabelsResponse_FlowLabels) String() string
func (*PreviewFlowLabelsResponse_FlowLabels) UnmarshalJSON ¶
func (msg *PreviewFlowLabelsResponse_FlowLabels) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*PreviewFlowLabelsResponse_FlowLabels) UnmarshalVT ¶ added in v2.7.0
func (m *PreviewFlowLabelsResponse_FlowLabels) UnmarshalVT(dAtA []byte) error
func (*PreviewFlowLabelsResponse_FlowLabels) Validate ¶
func (m *PreviewFlowLabelsResponse_FlowLabels) Validate() error
Validate checks the field values on PreviewFlowLabelsResponse_FlowLabels 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 (*PreviewFlowLabelsResponse_FlowLabels) ValidateAll ¶
func (m *PreviewFlowLabelsResponse_FlowLabels) ValidateAll() error
ValidateAll checks the field values on PreviewFlowLabelsResponse_FlowLabels 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 PreviewFlowLabelsResponse_FlowLabelsMultiError, or nil if none found.
type PreviewFlowLabelsResponse_FlowLabelsMultiError ¶
type PreviewFlowLabelsResponse_FlowLabelsMultiError []error
PreviewFlowLabelsResponse_FlowLabelsMultiError is an error wrapping multiple validation errors returned by PreviewFlowLabelsResponse_FlowLabels.ValidateAll() if the designated constraints aren't met.
func (PreviewFlowLabelsResponse_FlowLabelsMultiError) AllErrors ¶
func (m PreviewFlowLabelsResponse_FlowLabelsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreviewFlowLabelsResponse_FlowLabelsMultiError) Error ¶
func (m PreviewFlowLabelsResponse_FlowLabelsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreviewFlowLabelsResponse_FlowLabelsValidationError ¶
type PreviewFlowLabelsResponse_FlowLabelsValidationError struct {
// contains filtered or unexported fields
}
PreviewFlowLabelsResponse_FlowLabelsValidationError is the validation error returned by PreviewFlowLabelsResponse_FlowLabels.Validate if the designated constraints aren't met.
func (PreviewFlowLabelsResponse_FlowLabelsValidationError) Cause ¶
func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Cause() error
Cause function returns cause value.
func (PreviewFlowLabelsResponse_FlowLabelsValidationError) Error ¶
func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Error() string
Error satisfies the builtin error interface
func (PreviewFlowLabelsResponse_FlowLabelsValidationError) ErrorName ¶
func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) ErrorName() string
ErrorName returns error name.
func (PreviewFlowLabelsResponse_FlowLabelsValidationError) Field ¶
func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Field() string
Field function returns field value.
func (PreviewFlowLabelsResponse_FlowLabelsValidationError) Key ¶
func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Key() bool
Key function returns key value.
func (PreviewFlowLabelsResponse_FlowLabelsValidationError) Reason ¶
func (e PreviewFlowLabelsResponse_FlowLabelsValidationError) Reason() string
Reason function returns reason value.
type PreviewHTTPRequestsResponse ¶
type PreviewHTTPRequestsResponse struct { Samples []*structpb.Struct `protobuf:"bytes,1,rep,name=samples,proto3" json:"samples,omitempty"` // contains filtered or unexported fields }
func (*PreviewHTTPRequestsResponse) Descriptor
deprecated
func (*PreviewHTTPRequestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use PreviewHTTPRequestsResponse.ProtoReflect.Descriptor instead.
func (*PreviewHTTPRequestsResponse) GetSamples ¶
func (x *PreviewHTTPRequestsResponse) GetSamples() []*structpb.Struct
func (*PreviewHTTPRequestsResponse) MarshalJSON ¶
func (msg *PreviewHTTPRequestsResponse) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*PreviewHTTPRequestsResponse) MarshalToSizedBufferVT ¶ added in v2.7.0
func (m *PreviewHTTPRequestsResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PreviewHTTPRequestsResponse) MarshalToVT ¶ added in v2.7.0
func (m *PreviewHTTPRequestsResponse) MarshalToVT(dAtA []byte) (int, error)
func (*PreviewHTTPRequestsResponse) MarshalVT ¶ added in v2.7.0
func (m *PreviewHTTPRequestsResponse) MarshalVT() (dAtA []byte, err error)
func (*PreviewHTTPRequestsResponse) ProtoMessage ¶
func (*PreviewHTTPRequestsResponse) ProtoMessage()
func (*PreviewHTTPRequestsResponse) ProtoReflect ¶
func (x *PreviewHTTPRequestsResponse) ProtoReflect() protoreflect.Message
func (*PreviewHTTPRequestsResponse) Reset ¶
func (x *PreviewHTTPRequestsResponse) Reset()
func (*PreviewHTTPRequestsResponse) SizeVT ¶ added in v2.7.0
func (m *PreviewHTTPRequestsResponse) SizeVT() (n int)
func (*PreviewHTTPRequestsResponse) String ¶
func (x *PreviewHTTPRequestsResponse) String() string
func (*PreviewHTTPRequestsResponse) UnmarshalJSON ¶
func (msg *PreviewHTTPRequestsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*PreviewHTTPRequestsResponse) UnmarshalVT ¶ added in v2.7.0
func (m *PreviewHTTPRequestsResponse) UnmarshalVT(dAtA []byte) error
func (*PreviewHTTPRequestsResponse) Validate ¶
func (m *PreviewHTTPRequestsResponse) Validate() error
Validate checks the field values on PreviewHTTPRequestsResponse 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 (*PreviewHTTPRequestsResponse) ValidateAll ¶
func (m *PreviewHTTPRequestsResponse) ValidateAll() error
ValidateAll checks the field values on PreviewHTTPRequestsResponse 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 PreviewHTTPRequestsResponseMultiError, or nil if none found.
type PreviewHTTPRequestsResponseMultiError ¶
type PreviewHTTPRequestsResponseMultiError []error
PreviewHTTPRequestsResponseMultiError is an error wrapping multiple validation errors returned by PreviewHTTPRequestsResponse.ValidateAll() if the designated constraints aren't met.
func (PreviewHTTPRequestsResponseMultiError) AllErrors ¶
func (m PreviewHTTPRequestsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreviewHTTPRequestsResponseMultiError) Error ¶
func (m PreviewHTTPRequestsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreviewHTTPRequestsResponseValidationError ¶
type PreviewHTTPRequestsResponseValidationError struct {
// contains filtered or unexported fields
}
PreviewHTTPRequestsResponseValidationError is the validation error returned by PreviewHTTPRequestsResponse.Validate if the designated constraints aren't met.
func (PreviewHTTPRequestsResponseValidationError) Cause ¶
func (e PreviewHTTPRequestsResponseValidationError) Cause() error
Cause function returns cause value.
func (PreviewHTTPRequestsResponseValidationError) Error ¶
func (e PreviewHTTPRequestsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (PreviewHTTPRequestsResponseValidationError) ErrorName ¶
func (e PreviewHTTPRequestsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (PreviewHTTPRequestsResponseValidationError) Field ¶
func (e PreviewHTTPRequestsResponseValidationError) Field() string
Field function returns field value.
func (PreviewHTTPRequestsResponseValidationError) Key ¶
func (e PreviewHTTPRequestsResponseValidationError) Key() bool
Key function returns key value.
func (PreviewHTTPRequestsResponseValidationError) Reason ¶
func (e PreviewHTTPRequestsResponseValidationError) Reason() string
Reason function returns reason value.
type PreviewRequest ¶
type PreviewRequest struct { // Number of samples to collect. Samples int64 `protobuf:"varint,1,opt,name=samples,proto3" json:"samples,omitempty"` // Control point to preview. ControlPoint string `protobuf:"bytes,2,opt,name=control_point,json=controlPoint,proto3" json:"control_point,omitempty"` // Service to preview. Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` // Flow labels to match. Optional parameter for advanced filtering. LabelMatcher *v1.LabelMatcher `protobuf:"bytes,4,opt,name=label_matcher,json=labelMatcher,proto3" json:"label_matcher,omitempty"` // contains filtered or unexported fields }
func (*PreviewRequest) Descriptor
deprecated
func (*PreviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewRequest.ProtoReflect.Descriptor instead.
func (*PreviewRequest) GetControlPoint ¶
func (x *PreviewRequest) GetControlPoint() string
func (*PreviewRequest) GetLabelMatcher ¶
func (x *PreviewRequest) GetLabelMatcher() *v1.LabelMatcher
func (*PreviewRequest) GetSamples ¶
func (x *PreviewRequest) GetSamples() int64
func (*PreviewRequest) GetService ¶
func (x *PreviewRequest) GetService() string
func (*PreviewRequest) MarshalJSON ¶
func (msg *PreviewRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*PreviewRequest) MarshalToSizedBufferVT ¶ added in v2.7.0
func (m *PreviewRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*PreviewRequest) MarshalToVT ¶ added in v2.7.0
func (m *PreviewRequest) MarshalToVT(dAtA []byte) (int, error)
func (*PreviewRequest) MarshalVT ¶ added in v2.7.0
func (m *PreviewRequest) MarshalVT() (dAtA []byte, err error)
func (*PreviewRequest) ProtoMessage ¶
func (*PreviewRequest) ProtoMessage()
func (*PreviewRequest) ProtoReflect ¶
func (x *PreviewRequest) ProtoReflect() protoreflect.Message
func (*PreviewRequest) Reset ¶
func (x *PreviewRequest) Reset()
func (*PreviewRequest) SizeVT ¶ added in v2.7.0
func (m *PreviewRequest) SizeVT() (n int)
func (*PreviewRequest) String ¶
func (x *PreviewRequest) String() string
func (*PreviewRequest) UnmarshalJSON ¶
func (msg *PreviewRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
func (*PreviewRequest) UnmarshalVT ¶ added in v2.7.0
func (m *PreviewRequest) UnmarshalVT(dAtA []byte) error
func (*PreviewRequest) Validate ¶
func (m *PreviewRequest) Validate() error
Validate checks the field values on PreviewRequest 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 (*PreviewRequest) ValidateAll ¶
func (m *PreviewRequest) ValidateAll() error
ValidateAll checks the field values on PreviewRequest 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 PreviewRequestMultiError, or nil if none found.
type PreviewRequestMultiError ¶
type PreviewRequestMultiError []error
PreviewRequestMultiError is an error wrapping multiple validation errors returned by PreviewRequest.ValidateAll() if the designated constraints aren't met.
func (PreviewRequestMultiError) AllErrors ¶
func (m PreviewRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PreviewRequestMultiError) Error ¶
func (m PreviewRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PreviewRequestValidationError ¶
type PreviewRequestValidationError struct {
// contains filtered or unexported fields
}
PreviewRequestValidationError is the validation error returned by PreviewRequest.Validate if the designated constraints aren't met.
func (PreviewRequestValidationError) Cause ¶
func (e PreviewRequestValidationError) Cause() error
Cause function returns cause value.
func (PreviewRequestValidationError) Error ¶
func (e PreviewRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PreviewRequestValidationError) ErrorName ¶
func (e PreviewRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PreviewRequestValidationError) Field ¶
func (e PreviewRequestValidationError) Field() string
Field function returns field value.
func (PreviewRequestValidationError) Key ¶
func (e PreviewRequestValidationError) Key() bool
Key function returns key value.
func (PreviewRequestValidationError) Reason ¶
func (e PreviewRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFlowPreviewServiceServer ¶
type UnimplementedFlowPreviewServiceServer struct { }
UnimplementedFlowPreviewServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFlowPreviewServiceServer) PreviewFlowLabels ¶
func (UnimplementedFlowPreviewServiceServer) PreviewFlowLabels(context.Context, *PreviewRequest) (*PreviewFlowLabelsResponse, error)
func (UnimplementedFlowPreviewServiceServer) PreviewHTTPRequests ¶
func (UnimplementedFlowPreviewServiceServer) PreviewHTTPRequests(context.Context, *PreviewRequest) (*PreviewHTTPRequestsResponse, error)
type UnsafeFlowPreviewServiceServer ¶
type UnsafeFlowPreviewServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFlowPreviewServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FlowPreviewServiceServer will result in compilation errors.