v2

package
v0.0.0-...-113c6ea Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v2 is a generated protocol buffer package.

It is generated from these files:

envoy/data/tap/v2alpha/capture.proto

It has these top-level messages:

Connection
Event
Trace

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCapture = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCapture   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// Global unique connection ID for Envoy session. Matches connection IDs used
	// in Envoy logs.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// Local address.
	LocalAddress *envoy_api_v2_core1.Address `protobuf:"bytes,2,opt,name=local_address,json=localAddress" json:"local_address,omitempty"`
	// Remote address.
	RemoteAddress *envoy_api_v2_core1.Address `protobuf:"bytes,3,opt,name=remote_address,json=remoteAddress" json:"remote_address,omitempty"`
}

Connection properties.

func (*Connection) Descriptor

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

func (*Connection) GetId

func (m *Connection) GetId() uint64

func (*Connection) GetLocalAddress

func (m *Connection) GetLocalAddress() *envoy_api_v2_core1.Address

func (*Connection) GetRemoteAddress

func (m *Connection) GetRemoteAddress() *envoy_api_v2_core1.Address

func (*Connection) Marshal

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

func (*Connection) MarshalTo

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

func (*Connection) ProtoMessage

func (*Connection) ProtoMessage()

func (*Connection) Reset

func (m *Connection) Reset()

func (*Connection) Size

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

func (*Connection) String

func (m *Connection) String() string

func (*Connection) Unmarshal

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

func (*Connection) Validate

func (m *Connection) Validate() error

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

type ConnectionValidationError

type ConnectionValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

ConnectionValidationError is the validation error returned by Connection.Validate if the designated constraints aren't met.

func (ConnectionValidationError) Error

Error satisfies the builtin error interface

type Event

type Event struct {
	// Timestamp for event.
	Timestamp *google_protobuf4.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
	// Read or write with content as bytes string.
	//
	// Types that are valid to be assigned to EventSelector:
	//	*Event_Read_
	//	*Event_Write_
	EventSelector isEvent_EventSelector `protobuf_oneof:"event_selector"`
}

Event in a capture trace.

func (*Event) Descriptor

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

func (*Event) GetEventSelector

func (m *Event) GetEventSelector() isEvent_EventSelector

func (*Event) GetRead

func (m *Event) GetRead() *Event_Read

func (*Event) GetTimestamp

func (m *Event) GetTimestamp() *google_protobuf4.Timestamp

func (*Event) GetWrite

func (m *Event) GetWrite() *Event_Write

func (*Event) Marshal

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

func (*Event) MarshalTo

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

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) Reset

func (m *Event) Reset()

func (*Event) Size

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

func (*Event) String

func (m *Event) String() string

func (*Event) Unmarshal

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

func (*Event) Validate

func (m *Event) Validate() error

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

func (*Event) XXX_OneofFuncs

func (*Event) 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.

type EventValidationError

type EventValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

EventValidationError is the validation error returned by Event.Validate if the designated constraints aren't met.

func (EventValidationError) Error

func (e EventValidationError) Error() string

Error satisfies the builtin error interface

type Event_Read

type Event_Read struct {
	// Binary data read.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}

Data read by Envoy from the transport socket.

func (*Event_Read) Descriptor

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

func (*Event_Read) GetData

func (m *Event_Read) GetData() []byte

func (*Event_Read) Marshal

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

func (*Event_Read) MarshalTo

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

func (*Event_Read) ProtoMessage

func (*Event_Read) ProtoMessage()

func (*Event_Read) Reset

func (m *Event_Read) Reset()

func (*Event_Read) Size

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

func (*Event_Read) String

func (m *Event_Read) String() string

func (*Event_Read) Unmarshal

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

func (*Event_Read) Validate

func (m *Event_Read) Validate() error

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

type Event_ReadValidationError

type Event_ReadValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

Event_ReadValidationError is the validation error returned by Event_Read.Validate if the designated constraints aren't met.

func (Event_ReadValidationError) Error

Error satisfies the builtin error interface

type Event_Read_

type Event_Read_ struct {
	Read *Event_Read `protobuf:"bytes,2,opt,name=read,oneof"`
}

func (*Event_Read_) MarshalTo

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

func (*Event_Read_) Size

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

type Event_Write

type Event_Write struct {
	// Binary data written.
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// Stream was half closed after this write.
	EndStream bool `protobuf:"varint,2,opt,name=end_stream,json=endStream,proto3" json:"end_stream,omitempty"`
}

Data written by Envoy to the transport socket.

func (*Event_Write) Descriptor

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

func (*Event_Write) GetData

func (m *Event_Write) GetData() []byte

func (*Event_Write) GetEndStream

func (m *Event_Write) GetEndStream() bool

func (*Event_Write) Marshal

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

func (*Event_Write) MarshalTo

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

func (*Event_Write) ProtoMessage

func (*Event_Write) ProtoMessage()

func (*Event_Write) Reset

func (m *Event_Write) Reset()

func (*Event_Write) Size

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

func (*Event_Write) String

func (m *Event_Write) String() string

func (*Event_Write) Unmarshal

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

func (*Event_Write) Validate

func (m *Event_Write) Validate() error

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

type Event_WriteValidationError

type Event_WriteValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

Event_WriteValidationError is the validation error returned by Event_Write.Validate if the designated constraints aren't met.

func (Event_WriteValidationError) Error

Error satisfies the builtin error interface

type Event_Write_

type Event_Write_ struct {
	Write *Event_Write `protobuf:"bytes,3,opt,name=write,oneof"`
}

func (*Event_Write_) MarshalTo

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

func (*Event_Write_) Size

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

type Trace

type Trace struct {
	// Connection properties.
	Connection *Connection `protobuf:"bytes,1,opt,name=connection" json:"connection,omitempty"`
	// Sequence of observed events.
	Events []*Event `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"`
}

Sequence of read/write events that constitute a captured trace on a socket. Multiple Trace messages might be emitted for a given connection ID, with the sink (e.g. file set, network) responsible for later reassembly.

func (*Trace) Descriptor

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

func (*Trace) GetConnection

func (m *Trace) GetConnection() *Connection

func (*Trace) GetEvents

func (m *Trace) GetEvents() []*Event

func (*Trace) Marshal

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

func (*Trace) MarshalTo

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

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) Reset

func (m *Trace) Reset()

func (*Trace) Size

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

func (*Trace) String

func (m *Trace) String() string

func (*Trace) Unmarshal

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

func (*Trace) Validate

func (m *Trace) Validate() error

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

type TraceValidationError

type TraceValidationError struct {
	Field  string
	Reason string
	Cause  error
	Key    bool
}

TraceValidationError is the validation error returned by Trace.Validate if the designated constraints aren't met.

func (TraceValidationError) Error

func (e TraceValidationError) Error() string

Error satisfies the builtin error interface

Jump to

Keyboard shortcuts

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