envoy_service_tap_v3

package
v1.5.3-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTap = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTapds        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTapds          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTapds = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterTapDiscoveryServiceServer

func RegisterTapDiscoveryServiceServer(s *grpc.Server, srv TapDiscoveryServiceServer)

func RegisterTapSinkServiceServer

func RegisterTapSinkServiceServer(s *grpc.Server, srv TapSinkServiceServer)

Types

type StreamTapsRequest

type StreamTapsRequest struct {
	// Identifier data effectively is a structured metadata. As a performance optimization this will
	// only be sent in the first message on the stream.
	Identifier *StreamTapsRequest_Identifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	// The trace id. this can be used to merge together a streaming trace. Note that the trace_id
	// is not guaranteed to be spatially or temporally unique.
	TraceId uint64 `protobuf:"varint,2,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// The trace data.
	Trace                *v3.TraceWrapper `protobuf:"bytes,3,opt,name=trace,proto3" json:"trace,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

[#not-implemented-hide:] Stream message for the Tap API. Envoy will open a stream to the server and stream taps without ever expecting a response.

func (*StreamTapsRequest) Descriptor

func (*StreamTapsRequest) Descriptor() ([]byte, []int)

func (*StreamTapsRequest) GetIdentifier

func (m *StreamTapsRequest) GetIdentifier() *StreamTapsRequest_Identifier

func (*StreamTapsRequest) GetTrace

func (m *StreamTapsRequest) GetTrace() *v3.TraceWrapper

func (*StreamTapsRequest) GetTraceId

func (m *StreamTapsRequest) GetTraceId() uint64

func (*StreamTapsRequest) Marshal

func (m *StreamTapsRequest) Marshal() (dAtA []byte, err error)

func (*StreamTapsRequest) MarshalTo

func (m *StreamTapsRequest) MarshalTo(dAtA []byte) (int, error)

func (*StreamTapsRequest) MarshalToSizedBuffer

func (m *StreamTapsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StreamTapsRequest) ProtoMessage

func (*StreamTapsRequest) ProtoMessage()

func (*StreamTapsRequest) Reset

func (m *StreamTapsRequest) Reset()

func (*StreamTapsRequest) Size

func (m *StreamTapsRequest) Size() (n int)

func (*StreamTapsRequest) String

func (m *StreamTapsRequest) String() string

func (*StreamTapsRequest) Unmarshal

func (m *StreamTapsRequest) Unmarshal(dAtA []byte) error

func (*StreamTapsRequest) Validate

func (m *StreamTapsRequest) Validate() error

Validate checks the field values on StreamTapsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StreamTapsRequest) XXX_DiscardUnknown

func (m *StreamTapsRequest) XXX_DiscardUnknown()

func (*StreamTapsRequest) XXX_Marshal

func (m *StreamTapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamTapsRequest) XXX_Merge

func (m *StreamTapsRequest) XXX_Merge(src proto.Message)

func (*StreamTapsRequest) XXX_Size

func (m *StreamTapsRequest) XXX_Size() int

func (*StreamTapsRequest) XXX_Unmarshal

func (m *StreamTapsRequest) XXX_Unmarshal(b []byte) error

type StreamTapsRequestValidationError

type StreamTapsRequestValidationError struct {
	// contains filtered or unexported fields
}

StreamTapsRequestValidationError is the validation error returned by StreamTapsRequest.Validate if the designated constraints aren't met.

func (StreamTapsRequestValidationError) Cause

Cause function returns cause value.

func (StreamTapsRequestValidationError) Error

Error satisfies the builtin error interface

func (StreamTapsRequestValidationError) ErrorName

ErrorName returns error name.

func (StreamTapsRequestValidationError) Field

Field function returns field value.

func (StreamTapsRequestValidationError) Key

Key function returns key value.

func (StreamTapsRequestValidationError) Reason

Reason function returns reason value.

type StreamTapsRequest_Identifier

type StreamTapsRequest_Identifier struct {
	// The node sending taps over the stream.
	Node *v31.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	// The opaque identifier that was set in the :ref:`output config
	// <envoy_api_field_config.tap.v3.StreamingGrpcSink.tap_id>`.
	TapId                string   `protobuf:"bytes,2,opt,name=tap_id,json=tapId,proto3" json:"tap_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*StreamTapsRequest_Identifier) Descriptor

func (*StreamTapsRequest_Identifier) Descriptor() ([]byte, []int)

func (*StreamTapsRequest_Identifier) GetNode

func (m *StreamTapsRequest_Identifier) GetNode() *v31.Node

func (*StreamTapsRequest_Identifier) GetTapId

func (m *StreamTapsRequest_Identifier) GetTapId() string

func (*StreamTapsRequest_Identifier) Marshal

func (m *StreamTapsRequest_Identifier) Marshal() (dAtA []byte, err error)

func (*StreamTapsRequest_Identifier) MarshalTo

func (m *StreamTapsRequest_Identifier) MarshalTo(dAtA []byte) (int, error)

func (*StreamTapsRequest_Identifier) MarshalToSizedBuffer

func (m *StreamTapsRequest_Identifier) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StreamTapsRequest_Identifier) ProtoMessage

func (*StreamTapsRequest_Identifier) ProtoMessage()

func (*StreamTapsRequest_Identifier) Reset

func (m *StreamTapsRequest_Identifier) Reset()

func (*StreamTapsRequest_Identifier) Size

func (m *StreamTapsRequest_Identifier) Size() (n int)

func (*StreamTapsRequest_Identifier) String

func (*StreamTapsRequest_Identifier) Unmarshal

func (m *StreamTapsRequest_Identifier) Unmarshal(dAtA []byte) error

func (*StreamTapsRequest_Identifier) Validate

func (m *StreamTapsRequest_Identifier) Validate() error

Validate checks the field values on StreamTapsRequest_Identifier with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StreamTapsRequest_Identifier) XXX_DiscardUnknown

func (m *StreamTapsRequest_Identifier) XXX_DiscardUnknown()

func (*StreamTapsRequest_Identifier) XXX_Marshal

func (m *StreamTapsRequest_Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamTapsRequest_Identifier) XXX_Merge

func (m *StreamTapsRequest_Identifier) XXX_Merge(src proto.Message)

func (*StreamTapsRequest_Identifier) XXX_Size

func (m *StreamTapsRequest_Identifier) XXX_Size() int

func (*StreamTapsRequest_Identifier) XXX_Unmarshal

func (m *StreamTapsRequest_Identifier) XXX_Unmarshal(b []byte) error

type StreamTapsRequest_IdentifierValidationError

type StreamTapsRequest_IdentifierValidationError struct {
	// contains filtered or unexported fields
}

StreamTapsRequest_IdentifierValidationError is the validation error returned by StreamTapsRequest_Identifier.Validate if the designated constraints aren't met.

func (StreamTapsRequest_IdentifierValidationError) Cause

Cause function returns cause value.

func (StreamTapsRequest_IdentifierValidationError) Error

Error satisfies the builtin error interface

func (StreamTapsRequest_IdentifierValidationError) ErrorName

ErrorName returns error name.

func (StreamTapsRequest_IdentifierValidationError) Field

Field function returns field value.

func (StreamTapsRequest_IdentifierValidationError) Key

Key function returns key value.

func (StreamTapsRequest_IdentifierValidationError) Reason

Reason function returns reason value.

type StreamTapsResponse

type StreamTapsResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

[#not-implemented-hide:]

func (*StreamTapsResponse) Descriptor

func (*StreamTapsResponse) Descriptor() ([]byte, []int)

func (*StreamTapsResponse) Marshal

func (m *StreamTapsResponse) Marshal() (dAtA []byte, err error)

func (*StreamTapsResponse) MarshalTo

func (m *StreamTapsResponse) MarshalTo(dAtA []byte) (int, error)

func (*StreamTapsResponse) MarshalToSizedBuffer

func (m *StreamTapsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StreamTapsResponse) ProtoMessage

func (*StreamTapsResponse) ProtoMessage()

func (*StreamTapsResponse) Reset

func (m *StreamTapsResponse) Reset()

func (*StreamTapsResponse) Size

func (m *StreamTapsResponse) Size() (n int)

func (*StreamTapsResponse) String

func (m *StreamTapsResponse) String() string

func (*StreamTapsResponse) Unmarshal

func (m *StreamTapsResponse) Unmarshal(dAtA []byte) error

func (*StreamTapsResponse) Validate

func (m *StreamTapsResponse) Validate() error

Validate checks the field values on StreamTapsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*StreamTapsResponse) XXX_DiscardUnknown

func (m *StreamTapsResponse) XXX_DiscardUnknown()

func (*StreamTapsResponse) XXX_Marshal

func (m *StreamTapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StreamTapsResponse) XXX_Merge

func (m *StreamTapsResponse) XXX_Merge(src proto.Message)

func (*StreamTapsResponse) XXX_Size

func (m *StreamTapsResponse) XXX_Size() int

func (*StreamTapsResponse) XXX_Unmarshal

func (m *StreamTapsResponse) XXX_Unmarshal(b []byte) error

type StreamTapsResponseValidationError

type StreamTapsResponseValidationError struct {
	// contains filtered or unexported fields
}

StreamTapsResponseValidationError is the validation error returned by StreamTapsResponse.Validate if the designated constraints aren't met.

func (StreamTapsResponseValidationError) Cause

Cause function returns cause value.

func (StreamTapsResponseValidationError) Error

Error satisfies the builtin error interface

func (StreamTapsResponseValidationError) ErrorName

ErrorName returns error name.

func (StreamTapsResponseValidationError) Field

Field function returns field value.

func (StreamTapsResponseValidationError) Key

Key function returns key value.

func (StreamTapsResponseValidationError) Reason

Reason function returns reason value.

type TapDiscoveryServiceClient

type TapDiscoveryServiceClient interface {
	StreamTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_StreamTapConfigsClient, error)
	DeltaTapConfigs(ctx context.Context, opts ...grpc.CallOption) (TapDiscoveryService_DeltaTapConfigsClient, error)
	FetchTapConfigs(ctx context.Context, in *v31.DiscoveryRequest, opts ...grpc.CallOption) (*v31.DiscoveryResponse, error)
}

TapDiscoveryServiceClient is the client API for TapDiscoveryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTapDiscoveryServiceClient

func NewTapDiscoveryServiceClient(cc *grpc.ClientConn) TapDiscoveryServiceClient

type TapDiscoveryServiceServer

type TapDiscoveryServiceServer interface {
	StreamTapConfigs(TapDiscoveryService_StreamTapConfigsServer) error
	DeltaTapConfigs(TapDiscoveryService_DeltaTapConfigsServer) error
	FetchTapConfigs(context.Context, *v31.DiscoveryRequest) (*v31.DiscoveryResponse, error)
}

TapDiscoveryServiceServer is the server API for TapDiscoveryService service.

type TapDiscoveryService_DeltaTapConfigsClient

type TapDiscoveryService_DeltaTapConfigsClient interface {
	Send(*v31.DeltaDiscoveryRequest) error
	Recv() (*v31.DeltaDiscoveryResponse, error)
	grpc.ClientStream
}

type TapDiscoveryService_DeltaTapConfigsServer

type TapDiscoveryService_DeltaTapConfigsServer interface {
	Send(*v31.DeltaDiscoveryResponse) error
	Recv() (*v31.DeltaDiscoveryRequest, error)
	grpc.ServerStream
}

type TapDiscoveryService_StreamTapConfigsClient

type TapDiscoveryService_StreamTapConfigsClient interface {
	Send(*v31.DiscoveryRequest) error
	Recv() (*v31.DiscoveryResponse, error)
	grpc.ClientStream
}

type TapDiscoveryService_StreamTapConfigsServer

type TapDiscoveryService_StreamTapConfigsServer interface {
	Send(*v31.DiscoveryResponse) error
	Recv() (*v31.DiscoveryRequest, error)
	grpc.ServerStream
}

type TapResource

type TapResource struct {
	// The name of the tap configuration.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Tap config to apply
	Config               *v3.TapConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

[#not-implemented-hide:] A tap resource is essentially a tap configuration with a name The filter TapDS config references this name.

func (*TapResource) Descriptor

func (*TapResource) Descriptor() ([]byte, []int)

func (*TapResource) GetConfig

func (m *TapResource) GetConfig() *v3.TapConfig

func (*TapResource) GetName

func (m *TapResource) GetName() string

func (*TapResource) Marshal

func (m *TapResource) Marshal() (dAtA []byte, err error)

func (*TapResource) MarshalTo

func (m *TapResource) MarshalTo(dAtA []byte) (int, error)

func (*TapResource) MarshalToSizedBuffer

func (m *TapResource) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TapResource) ProtoMessage

func (*TapResource) ProtoMessage()

func (*TapResource) Reset

func (m *TapResource) Reset()

func (*TapResource) Size

func (m *TapResource) Size() (n int)

func (*TapResource) String

func (m *TapResource) String() string

func (*TapResource) Unmarshal

func (m *TapResource) Unmarshal(dAtA []byte) error

func (*TapResource) Validate

func (m *TapResource) Validate() error

Validate checks the field values on TapResource with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*TapResource) XXX_DiscardUnknown

func (m *TapResource) XXX_DiscardUnknown()

func (*TapResource) XXX_Marshal

func (m *TapResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TapResource) XXX_Merge

func (m *TapResource) XXX_Merge(src proto.Message)

func (*TapResource) XXX_Size

func (m *TapResource) XXX_Size() int

func (*TapResource) XXX_Unmarshal

func (m *TapResource) XXX_Unmarshal(b []byte) error

type TapResourceValidationError

type TapResourceValidationError struct {
	// contains filtered or unexported fields
}

TapResourceValidationError is the validation error returned by TapResource.Validate if the designated constraints aren't met.

func (TapResourceValidationError) Cause

Cause function returns cause value.

func (TapResourceValidationError) Error

Error satisfies the builtin error interface

func (TapResourceValidationError) ErrorName

func (e TapResourceValidationError) ErrorName() string

ErrorName returns error name.

func (TapResourceValidationError) Field

Field function returns field value.

func (TapResourceValidationError) Key

Key function returns key value.

func (TapResourceValidationError) Reason

Reason function returns reason value.

type TapSinkServiceClient

type TapSinkServiceClient interface {
	// Envoy will connect and send StreamTapsRequest messages forever. It does not expect any
	// response to be sent as nothing would be done in the case of failure. The server should
	// disconnect if it expects Envoy to reconnect.
	StreamTaps(ctx context.Context, opts ...grpc.CallOption) (TapSinkService_StreamTapsClient, error)
}

TapSinkServiceClient is the client API for TapSinkService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTapSinkServiceClient

func NewTapSinkServiceClient(cc *grpc.ClientConn) TapSinkServiceClient

type TapSinkServiceServer

type TapSinkServiceServer interface {
	// Envoy will connect and send StreamTapsRequest messages forever. It does not expect any
	// response to be sent as nothing would be done in the case of failure. The server should
	// disconnect if it expects Envoy to reconnect.
	StreamTaps(TapSinkService_StreamTapsServer) error
}

TapSinkServiceServer is the server API for TapSinkService service.

type TapSinkService_StreamTapsClient

type TapSinkService_StreamTapsClient interface {
	Send(*StreamTapsRequest) error
	CloseAndRecv() (*StreamTapsResponse, error)
	grpc.ClientStream
}

type TapSinkService_StreamTapsServer

type TapSinkService_StreamTapsServer interface {
	SendAndClose(*StreamTapsResponse) error
	Recv() (*StreamTapsRequest, error)
	grpc.ServerStream
}

type UnimplementedTapDiscoveryServiceServer

type UnimplementedTapDiscoveryServiceServer struct {
}

UnimplementedTapDiscoveryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTapDiscoveryServiceServer) DeltaTapConfigs

func (*UnimplementedTapDiscoveryServiceServer) FetchTapConfigs

func (*UnimplementedTapDiscoveryServiceServer) StreamTapConfigs

type UnimplementedTapSinkServiceServer

type UnimplementedTapSinkServiceServer struct {
}

UnimplementedTapSinkServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTapSinkServiceServer) StreamTaps

Jump to

Keyboard shortcuts

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