Documentation ¶
Overview ¶
Package previewv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Index ¶
- 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 PreviewFlowLabelsRequest
- func (in *PreviewFlowLabelsRequest) DeepCopy() *PreviewFlowLabelsRequest
- func (in *PreviewFlowLabelsRequest) DeepCopyInterface() interface{}
- func (in *PreviewFlowLabelsRequest) DeepCopyInto(out *PreviewFlowLabelsRequest)
- func (*PreviewFlowLabelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewFlowLabelsRequest) GetControlPoint() string
- func (x *PreviewFlowLabelsRequest) GetSamples() int64
- func (x *PreviewFlowLabelsRequest) GetService() string
- func (msg *PreviewFlowLabelsRequest) MarshalJSON() ([]byte, error)
- func (*PreviewFlowLabelsRequest) ProtoMessage()
- func (x *PreviewFlowLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *PreviewFlowLabelsRequest) Reset()
- func (x *PreviewFlowLabelsRequest) String() string
- func (msg *PreviewFlowLabelsRequest) UnmarshalJSON(b []byte) error
- type PreviewFlowLabelsResponse
- func (in *PreviewFlowLabelsResponse) DeepCopy() *PreviewFlowLabelsResponse
- func (in *PreviewFlowLabelsResponse) DeepCopyInterface() interface{}
- func (in *PreviewFlowLabelsResponse) DeepCopyInto(out *PreviewFlowLabelsResponse)
- func (*PreviewFlowLabelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PreviewFlowLabelsResponse) GetSamples() []*PreviewFlowLabelsResponse_FlowLabels
- func (msg *PreviewFlowLabelsResponse) MarshalJSON() ([]byte, error)
- func (*PreviewFlowLabelsResponse) ProtoMessage()
- func (x *PreviewFlowLabelsResponse) ProtoReflect() protoreflect.Message
- func (x *PreviewFlowLabelsResponse) Reset()
- func (x *PreviewFlowLabelsResponse) String() string
- func (msg *PreviewFlowLabelsResponse) UnmarshalJSON(b []byte) error
- type PreviewFlowLabelsResponse_FlowLabels
- func (in *PreviewFlowLabelsResponse_FlowLabels) DeepCopy() *PreviewFlowLabelsResponse_FlowLabels
- func (in *PreviewFlowLabelsResponse_FlowLabels) DeepCopyInterface() interface{}
- func (in *PreviewFlowLabelsResponse_FlowLabels) DeepCopyInto(out *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 (*PreviewFlowLabelsResponse_FlowLabels) ProtoMessage()
- func (x *PreviewFlowLabelsResponse_FlowLabels) ProtoReflect() protoreflect.Message
- func (x *PreviewFlowLabelsResponse_FlowLabels) Reset()
- func (x *PreviewFlowLabelsResponse_FlowLabels) String() string
- func (msg *PreviewFlowLabelsResponse_FlowLabels) UnmarshalJSON(b []byte) error
- type UnimplementedFlowPreviewServiceServer
- type UnsafeFlowPreviewServiceServer
Constants ¶
This section is empty.
Variables ¶
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, }, }, 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 *PreviewFlowLabelsRequest, opts ...grpc.CallOption) (*PreviewFlowLabelsResponse, 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, *PreviewFlowLabelsRequest) (*PreviewFlowLabelsResponse, error)
}
FlowPreviewServiceServer is the server API for FlowPreviewService service. All implementations should embed UnimplementedFlowPreviewServiceServer for forward compatibility
type PreviewFlowLabelsRequest ¶
type PreviewFlowLabelsRequest struct { // Number of samples to collect. Defaults to 10. Samples int64 `protobuf:"varint,1,opt,name=samples,proto3" json:"samples,omitempty" validate:"min=1" default:"10"` // @gotags: validate:"min=1" default:"10" // Control point to preview. ControlPoint string `protobuf:"bytes,2,opt,name=control_point,json=controlPoint,proto3" json:"control_point,omitempty" validate:"required"` // @gotags: validate:"required" // Service to preview. Empty value implies catch all service. Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*PreviewFlowLabelsRequest) DeepCopy ¶
func (in *PreviewFlowLabelsRequest) DeepCopy() *PreviewFlowLabelsRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreviewFlowLabelsRequest. Required by controller-gen.
func (*PreviewFlowLabelsRequest) DeepCopyInterface ¶
func (in *PreviewFlowLabelsRequest) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PreviewFlowLabelsRequest. Required by controller-gen.
func (*PreviewFlowLabelsRequest) DeepCopyInto ¶
func (in *PreviewFlowLabelsRequest) DeepCopyInto(out *PreviewFlowLabelsRequest)
DeepCopyInto supports using PreviewFlowLabelsRequest within kubernetes types, where deepcopy-gen is used.
func (*PreviewFlowLabelsRequest) Descriptor
deprecated
func (*PreviewFlowLabelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use PreviewFlowLabelsRequest.ProtoReflect.Descriptor instead.
func (*PreviewFlowLabelsRequest) GetControlPoint ¶
func (x *PreviewFlowLabelsRequest) GetControlPoint() string
func (*PreviewFlowLabelsRequest) GetSamples ¶
func (x *PreviewFlowLabelsRequest) GetSamples() int64
func (*PreviewFlowLabelsRequest) GetService ¶
func (x *PreviewFlowLabelsRequest) GetService() string
func (*PreviewFlowLabelsRequest) MarshalJSON ¶
func (msg *PreviewFlowLabelsRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*PreviewFlowLabelsRequest) ProtoMessage ¶
func (*PreviewFlowLabelsRequest) ProtoMessage()
func (*PreviewFlowLabelsRequest) ProtoReflect ¶
func (x *PreviewFlowLabelsRequest) ProtoReflect() protoreflect.Message
func (*PreviewFlowLabelsRequest) Reset ¶
func (x *PreviewFlowLabelsRequest) Reset()
func (*PreviewFlowLabelsRequest) String ¶
func (x *PreviewFlowLabelsRequest) String() string
func (*PreviewFlowLabelsRequest) UnmarshalJSON ¶
func (msg *PreviewFlowLabelsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
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) DeepCopy ¶
func (in *PreviewFlowLabelsResponse) DeepCopy() *PreviewFlowLabelsResponse
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreviewFlowLabelsResponse. Required by controller-gen.
func (*PreviewFlowLabelsResponse) DeepCopyInterface ¶
func (in *PreviewFlowLabelsResponse) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PreviewFlowLabelsResponse. Required by controller-gen.
func (*PreviewFlowLabelsResponse) DeepCopyInto ¶
func (in *PreviewFlowLabelsResponse) DeepCopyInto(out *PreviewFlowLabelsResponse)
DeepCopyInto supports using PreviewFlowLabelsResponse within kubernetes types, where deepcopy-gen is used.
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) ProtoMessage ¶
func (*PreviewFlowLabelsResponse) ProtoMessage()
func (*PreviewFlowLabelsResponse) ProtoReflect ¶
func (x *PreviewFlowLabelsResponse) ProtoReflect() protoreflect.Message
func (*PreviewFlowLabelsResponse) Reset ¶
func (x *PreviewFlowLabelsResponse) Reset()
func (*PreviewFlowLabelsResponse) String ¶
func (x *PreviewFlowLabelsResponse) String() string
func (*PreviewFlowLabelsResponse) UnmarshalJSON ¶
func (msg *PreviewFlowLabelsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
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) DeepCopy ¶
func (in *PreviewFlowLabelsResponse_FlowLabels) DeepCopy() *PreviewFlowLabelsResponse_FlowLabels
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PreviewFlowLabelsResponse_FlowLabels. Required by controller-gen.
func (*PreviewFlowLabelsResponse_FlowLabels) DeepCopyInterface ¶
func (in *PreviewFlowLabelsResponse_FlowLabels) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new PreviewFlowLabelsResponse_FlowLabels. Required by controller-gen.
func (*PreviewFlowLabelsResponse_FlowLabels) DeepCopyInto ¶
func (in *PreviewFlowLabelsResponse_FlowLabels) DeepCopyInto(out *PreviewFlowLabelsResponse_FlowLabels)
DeepCopyInto supports using PreviewFlowLabelsResponse_FlowLabels within kubernetes types, where deepcopy-gen is used.
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) 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) String ¶
func (x *PreviewFlowLabelsResponse_FlowLabels) String() string
func (*PreviewFlowLabelsResponse_FlowLabels) UnmarshalJSON ¶
func (msg *PreviewFlowLabelsResponse_FlowLabels) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type UnimplementedFlowPreviewServiceServer ¶
type UnimplementedFlowPreviewServiceServer struct { }
UnimplementedFlowPreviewServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFlowPreviewServiceServer) PreviewFlowLabels ¶
func (UnimplementedFlowPreviewServiceServer) PreviewFlowLabels(context.Context, *PreviewFlowLabelsRequest) (*PreviewFlowLabelsResponse, 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.