Documentation ¶
Index ¶
- Variables
- type FlowParam
- func (*FlowParam) Descriptor() ([]byte, []int)
- func (m *FlowParam) GetDstHostPort() string
- func (m *FlowParam) GetNetwork() string
- func (m *FlowParam) GetSrcHostPort() string
- func (*FlowParam) ProtoMessage()
- func (m *FlowParam) Reset()
- func (m *FlowParam) String() string
- func (m *FlowParam) XXX_DiscardUnknown()
- func (m *FlowParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FlowParam) XXX_Merge(src proto.Message)
- func (m *FlowParam) XXX_Size() int
- func (m *FlowParam) XXX_Unmarshal(b []byte) error
- type MockQuery
- func (*MockQuery) Descriptor() ([]byte, []int)
- func (m *MockQuery) GetMock() string
- func (*MockQuery) ProtoMessage()
- func (m *MockQuery) Reset()
- func (m *MockQuery) String() string
- func (m *MockQuery) XXX_DiscardUnknown()
- func (m *MockQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MockQuery) XXX_Merge(src proto.Message)
- func (m *MockQuery) XXX_Size() int
- func (m *MockQuery) XXX_Unmarshal(b []byte) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) GetAfterTime() *timestamp.Timestamp
- func (m *Query) GetBeforeTime() *timestamp.Timestamp
- func (m *Query) GetContent() isQuery_Content
- func (m *Query) GetFlowParam() *FlowParam
- func (m *Query) GetMockQuery() *MockQuery
- func (m *Query) GetType() QueryType
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) String() string
- func (m *Query) XXX_DiscardUnknown()
- func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Query) XXX_Merge(src proto.Message)
- func (*Query) XXX_OneofWrappers() []interface{}
- func (m *Query) XXX_Size() int
- func (m *Query) XXX_Unmarshal(b []byte) error
- type QueryType
- type Query_FlowParam
- type Query_MockQuery
Constants ¶
This section is empty.
Variables ¶
View Source
var QueryType_name = map[int32]string{
0: "UNKNOWN_QUERY_TYPE",
1: "FLOW_PARAM",
2: "FLOW_ID",
3: "COMMUNITY_ID",
254: "MOCK_QUERY",
}
View Source
var QueryType_value = map[string]int32{
"UNKNOWN_QUERY_TYPE": 0,
"FLOW_PARAM": 1,
"FLOW_ID": 2,
"COMMUNITY_ID": 3,
"MOCK_QUERY": 254,
}
Functions ¶
This section is empty.
Types ¶
type FlowParam ¶
type FlowParam struct { // Network contains a network protocol identifier and is expected to contain // the same values as are commonly used in go's net package. Currently only // "tcp" and "udp" are supported. Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"` // SrcHostPort contains a "host and port string" for the source endpoint. // Values are expected to adhere to the output of go's net.JoinHostPort // function, i.e., "host:port", or, "[host]:port". SrcHostPort string `protobuf:"bytes,2,opt,name=src_host_port,json=srcHostPort,proto3" json:"src_host_port,omitempty"` // DstHostPort contains a "host and port string" for the destination // endpoint. Values are expected to adhere to the output of go's // net.JoinHostPort function, i.e., "host:port", or, "[host]:port". DstHostPort string `protobuf:"bytes,3,opt,name=dst_host_port,json=dstHostPort,proto3" json:"dst_host_port,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
FlowParam contains parameters for flow queries.
func (*FlowParam) Descriptor ¶
func (*FlowParam) GetDstHostPort ¶
func (*FlowParam) GetNetwork ¶
func (*FlowParam) GetSrcHostPort ¶
func (*FlowParam) ProtoMessage ¶
func (*FlowParam) ProtoMessage()
func (*FlowParam) XXX_DiscardUnknown ¶
func (m *FlowParam) XXX_DiscardUnknown()
func (*FlowParam) XXX_Marshal ¶
func (*FlowParam) XXX_Unmarshal ¶
type MockQuery ¶
type MockQuery struct { Mock string `protobuf:"bytes,1,opt,name=mock,proto3" json:"mock,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
MockQuery is fore testing purposes only.
func (*MockQuery) Descriptor ¶
func (*MockQuery) ProtoMessage ¶
func (*MockQuery) ProtoMessage()
func (*MockQuery) XXX_DiscardUnknown ¶
func (m *MockQuery) XXX_DiscardUnknown()
func (*MockQuery) XXX_Marshal ¶
func (*MockQuery) XXX_Unmarshal ¶
type Query ¶
type Query struct { // Type specifies the query type. Type QueryType `protobuf:"varint,1,opt,name=type,proto3,enum=task.QueryType" json:"type,omitempty"` // BeforeTime is the point in time before which packets are queried for. BeforeTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=before_time,json=beforeTime,proto3" json:"before_time,omitempty"` // AfterTime is the point in time after which packets are queried for. AfterTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=after_time,json=afterTime,proto3" json:"after_time,omitempty"` // Content contains the Query type-specific parameters. // // Types that are valid to be assigned to Content: // *Query_FlowParam // *Query_MockQuery Content isQuery_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Query encapsulates various query types to be processed by stenosis. Query messages are expected to be forwarded as JSON-marshaled data via stenosis REST API endpoint (typically as ad-hoc queries) or as gRPC messages (typically by FEVER).
func (*Query) Descriptor ¶
func (*Query) GetAfterTime ¶
func (*Query) GetBeforeTime ¶
func (*Query) GetContent ¶
func (m *Query) GetContent() isQuery_Content
func (*Query) GetFlowParam ¶
func (*Query) GetMockQuery ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) XXX_DiscardUnknown ¶
func (m *Query) XXX_DiscardUnknown()
func (*Query) XXX_Marshal ¶
func (*Query) XXX_OneofWrappers ¶
func (*Query) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Query) XXX_Unmarshal ¶
type QueryType ¶
type QueryType int32
QueryType specifies the kind of query in a Query message.
func (QueryType) EnumDescriptor ¶
type Query_FlowParam ¶
type Query_FlowParam struct {
FlowParam *FlowParam `protobuf:"bytes,4,opt,name=flow_param,json=flowParam,proto3,oneof"`
}
type Query_MockQuery ¶
type Query_MockQuery struct {
MockQuery *MockQuery `protobuf:"bytes,14,opt,name=mock_query,json=mockQuery,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.