package v2
import "github.com/envoyproxy/go-control-plane/envoy/config/transport_socket/capture/v2alpha"
Index ¶
- Variables
- type Capture
- func (*Capture) Descriptor() ([]byte, []int)
- func (m *Capture) GetFileSink() *FileSink
- func (m *Capture) GetSinkSelector() isCapture_SinkSelector
- func (m *Capture) GetTransportSocket() *core.TransportSocket
- func (m *Capture) Marshal() (dAtA []byte, err error)
- func (m *Capture) MarshalTo(dAtA []byte) (int, error)
- func (*Capture) ProtoMessage()
- func (m *Capture) Reset()
- func (m *Capture) Size() (n int)
- func (m *Capture) String() string
- func (m *Capture) Unmarshal(dAtA []byte) error
- func (m *Capture) Validate() error
- func (m *Capture) XXX_DiscardUnknown()
- func (m *Capture) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Capture) XXX_Merge(src proto.Message)
- func (*Capture) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
- func (m *Capture) XXX_Size() int
- func (m *Capture) XXX_Unmarshal(b []byte) error
- type CaptureValidationError
- type Capture_FileSink
- func (m *Capture_FileSink) MarshalTo(dAtA []byte) (int, error)
- func (m *Capture_FileSink) Size() (n int)
- type FileSink
- func (*FileSink) Descriptor() ([]byte, []int)
- func (m *FileSink) GetFormat() FileSink_Format
- func (m *FileSink) GetPathPrefix() string
- func (m *FileSink) Marshal() (dAtA []byte, err error)
- func (m *FileSink) MarshalTo(dAtA []byte) (int, error)
- func (*FileSink) ProtoMessage()
- func (m *FileSink) Reset()
- func (m *FileSink) Size() (n int)
- func (m *FileSink) String() string
- func (m *FileSink) Unmarshal(dAtA []byte) error
- func (m *FileSink) Validate() error
- func (m *FileSink) XXX_DiscardUnknown()
- func (m *FileSink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FileSink) XXX_Merge(src proto.Message)
- func (m *FileSink) XXX_Size() int
- func (m *FileSink) XXX_Unmarshal(b []byte) error
- type FileSinkValidationError
- type FileSink_Format
Variables ¶
var ( ErrInvalidLengthCapture = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCapture = fmt.Errorf("proto: integer overflow") )
Types ¶
type Capture ¶
type Capture struct { // Types that are valid to be assigned to SinkSelector: // *Capture_FileSink SinkSelector isCapture_SinkSelector `protobuf_oneof:"sink_selector"` // The underlying transport socket being wrapped. TransportSocket *core.TransportSocket `protobuf:"bytes,2,opt,name=transport_socket,json=transportSocket" json:"transport_socket,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration for capture transport socket. This wraps another transport socket, providing the ability to interpose and record in plain text any traffic that is surfaced to Envoy.
func (*Capture) Descriptor ¶
func (*Capture) GetFileSink ¶
func (*Capture) GetSinkSelector ¶
func (m *Capture) GetSinkSelector() isCapture_SinkSelector
func (*Capture) GetTransportSocket ¶
func (m *Capture) GetTransportSocket() *core.TransportSocket
func (*Capture) Marshal ¶
func (*Capture) MarshalTo ¶
func (*Capture) ProtoMessage ¶
func (*Capture) ProtoMessage()
func (*Capture) Reset ¶
func (m *Capture) Reset()
func (*Capture) Size ¶
func (*Capture) String ¶
func (*Capture) Unmarshal ¶
func (*Capture) Validate ¶
Validate checks the field values on Capture with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Capture) XXX_DiscardUnknown ¶
func (m *Capture) XXX_DiscardUnknown()
func (*Capture) XXX_Marshal ¶
func (*Capture) XXX_Merge ¶
func (*Capture) XXX_OneofFuncs ¶
func (*Capture) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Capture) XXX_Size ¶
func (*Capture) XXX_Unmarshal ¶
type CaptureValidationError ¶
CaptureValidationError is the validation error returned by Capture.Validate if the designated constraints aren't met.
func (CaptureValidationError) Error ¶
func (e CaptureValidationError) Error() string
Error satisfies the builtin error interface
type Capture_FileSink ¶
type Capture_FileSink struct { FileSink *FileSink `protobuf:"bytes,1,opt,name=file_sink,json=fileSink,oneof"` }
func (*Capture_FileSink) MarshalTo ¶
func (m *Capture_FileSink) MarshalTo(dAtA []byte) (int, error)
func (*Capture_FileSink) Size ¶
func (m *Capture_FileSink) Size() (n int)
type FileSink ¶
type FileSink struct { // Path prefix. The output file will be of the form <path_prefix>_<id>.pb, where <id> is an // identifier distinguishing the recorded trace for individual socket instances (the Envoy // connection ID). PathPrefix string `protobuf:"bytes,1,opt,name=path_prefix,json=pathPrefix,proto3" json:"path_prefix,omitempty"` Format FileSink_Format `protobuf:"varint,2,opt,name=format,proto3,enum=envoy.config.transport_socket.capture.v2alpha.FileSink_Format" json:"format,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
File sink.
.. warning::
The current file sink implementation buffers the entire trace in memory prior to writing. This will OOM for long lived sockets and/or where there is a large amount of traffic on the socket.
func (*FileSink) Descriptor ¶
func (*FileSink) GetFormat ¶
func (m *FileSink) GetFormat() FileSink_Format
func (*FileSink) GetPathPrefix ¶
func (*FileSink) Marshal ¶
func (*FileSink) MarshalTo ¶
func (*FileSink) ProtoMessage ¶
func (*FileSink) ProtoMessage()
func (*FileSink) Reset ¶
func (m *FileSink) Reset()
func (*FileSink) Size ¶
func (*FileSink) String ¶
func (*FileSink) Unmarshal ¶
func (*FileSink) Validate ¶
Validate checks the field values on FileSink with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FileSink) XXX_DiscardUnknown ¶
func (m *FileSink) XXX_DiscardUnknown()
func (*FileSink) XXX_Marshal ¶
func (*FileSink) XXX_Merge ¶
func (*FileSink) XXX_Size ¶
func (*FileSink) XXX_Unmarshal ¶
type FileSinkValidationError ¶
FileSinkValidationError is the validation error returned by FileSink.Validate if the designated constraints aren't met.
func (FileSinkValidationError) Error ¶
func (e FileSinkValidationError) Error() string
Error satisfies the builtin error interface
type FileSink_Format ¶
type FileSink_Format int32
File format.
const ( // Binary proto format as per :ref:`Trace // <envoy_api_msg_data.tap.v2alpha.Trace>`. FileSink_PROTO_BINARY FileSink_Format = 0 // Text proto format as per :ref:`Trace // <envoy_api_msg_data.tap.v2alpha.Trace>`. FileSink_PROTO_TEXT FileSink_Format = 1 )
func (FileSink_Format) EnumDescriptor ¶
func (FileSink_Format) EnumDescriptor() ([]byte, []int)
func (FileSink_Format) String ¶
func (x FileSink_Format) String() string
Source Files ¶
capture.pb.go capture.pb.validate.go
- Version
- v0.5.0
- Published
- Aug 14, 2018
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 2 hours ago –
Tools for package owners.