Documentation ¶
Index ¶
- Variables
- type CaptureSpec
- func (*CaptureSpec) Descriptor() ([]byte, []int)
- func (m *CaptureSpec) GetCaptureLocation() string
- func (m *CaptureSpec) GetCaptureLocationDns() string
- func (m *CaptureSpec) GetCaptureLocation_IP() *IPAddressWrapper
- func (m *CaptureSpec) GetCaptureNodeInterface() []string
- func (m *CaptureSpec) GetCaptureNodeSpec() string
- func (m *CaptureSpec) GetCaptureSpecId() int32
- func (m *CaptureSpec) GetFilePattern() []string
- func (m *CaptureSpec) GetPathToFiles() []string
- func (m *CaptureSpec) GetPtpPeer() *IPAddressWrapper
- func (m *CaptureSpec) GetStorageHost() []string
- func (m *CaptureSpec) GetTcpdumpExpression() string
- func (m *CaptureSpec) GetType() CaptureSpec_Type
- func (m *CaptureSpec) GetUsername() string
- func (m *CaptureSpec) GetVerboseDebugId() []byte
- func (*CaptureSpec) ProtoMessage()
- func (m *CaptureSpec) Reset()
- func (m *CaptureSpec) String() string
- func (m *CaptureSpec) XXX_DiscardUnknown()
- func (m *CaptureSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CaptureSpec) XXX_Merge(src proto.Message)
- func (m *CaptureSpec) XXX_Size() int
- func (m *CaptureSpec) XXX_Unmarshal(b []byte) error
- type CaptureSpec_Type
- type IPAddressWrapper
- func (*IPAddressWrapper) Descriptor() ([]byte, []int)
- func (m *IPAddressWrapper) GetIPv4() []byte
- func (m *IPAddressWrapper) GetIPv6() []byte
- func (*IPAddressWrapper) ProtoMessage()
- func (m *IPAddressWrapper) Reset()
- func (m *IPAddressWrapper) String() string
- func (m *IPAddressWrapper) XXX_DiscardUnknown()
- func (m *IPAddressWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IPAddressWrapper) XXX_Merge(src proto.Message)
- func (m *IPAddressWrapper) XXX_Size() int
- func (m *IPAddressWrapper) XXX_Unmarshal(b []byte) error
- type PrefixWrapper
- func (*PrefixWrapper) Descriptor() ([]byte, []int)
- func (m *PrefixWrapper) GetMask() uint32
- func (m *PrefixWrapper) GetPrefix() *IPAddressWrapper
- func (*PrefixWrapper) ProtoMessage()
- func (m *PrefixWrapper) Reset()
- func (m *PrefixWrapper) String() string
- func (m *PrefixWrapper) XXX_DiscardUnknown()
- func (m *PrefixWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PrefixWrapper) XXX_Merge(src proto.Message)
- func (m *PrefixWrapper) XXX_Size() int
- func (m *PrefixWrapper) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var CaptureSpec_Type_name = map[int32]string{
0: "FLOW",
1: "BGP_MRT",
2: "BGP_LIVE",
}
View Source
var CaptureSpec_Type_value = map[string]int32{
"FLOW": 0,
"BGP_MRT": 1,
"BGP_LIVE": 2,
}
Functions ¶
This section is empty.
Types ¶
type CaptureSpec ¶
type CaptureSpec struct { // each flow needs a proper id. Such an id is local to the file // in which records refer to it. The capture_spec_id is *not* global. // Global significance is actually the remainder of the fields. CaptureSpecId int32 `protobuf:"varint,1,opt,name=capture_spec_id,json=captureSpecId,proto3" json:"capture_spec_id,omitempty"` // Some applications, e.g., BGP may be logging verbose debugging // ID's instead of doing a lookup on the capture_spec id above. // the caputre spec and debug_id should have a 1-1 mapping between // them, but the verbose debug id is self-contained. VerboseDebugId []byte `protobuf:"bytes,12,opt,name=verbose_debug_id,json=verboseDebugId,proto3" json:"verbose_debug_id,omitempty"` Type CaptureSpec_Type `protobuf:"varint,14,opt,name=type,proto3,enum=common.CaptureSpec_Type" json:"type,omitempty"` TcpdumpExpression string `protobuf:"bytes,2,opt,name=tcpdump_expression,json=tcpdumpExpression,proto3" json:"tcpdump_expression,omitempty"` // What is the location of the capture in string format // AT&T West LAX POP 1123231 CaptureLocation string `protobuf:"bytes,3,opt,name=capture_location,json=captureLocation,proto3" json:"capture_location,omitempty"` // What is the location in terms of IP CaptureLocation_IP *IPAddressWrapper `protobuf:"bytes,4,opt,name=capture_location_IP,json=captureLocationIP,proto3" json:"capture_location_IP,omitempty"` // if the capture node has a dns name, this is it // FQDN e.g., intercept.ny.nofutz.com CaptureLocationDns string `protobuf:"bytes,5,opt,name=capture_location_dns,json=captureLocationDns,proto3" json:"capture_location_dns,omitempty"` // if there are multiple capture devices in a location // which device is this spec. // e.g., capturehost01.intercept.ny.nofutz.com CaptureNodeSpec string `protobuf:"bytes,6,opt,name=capture_node_spec,json=captureNodeSpec,proto3" json:"capture_node_spec,omitempty"` // The interface on which the data was sniffed // ETH10 CaptureNodeInterface []string `protobuf:"bytes,7,rep,name=capture_node_interface,json=captureNodeInterface,proto3" json:"capture_node_interface,omitempty"` // For BGP we may only be capturing a link between this // capture location IP and the ptp_peer. PtpPeer *IPAddressWrapper `protobuf:"bytes,13,opt,name=ptp_peer,json=ptpPeer,proto3" json:"ptp_peer,omitempty"` // Capture retrieval specification. The capture was originally // stored somewhere in some file. The original file is identified // below. This is important for provenance, e.g., we might have // to filter out data that was stored on a compromised host. // And if we ever have a bug, this should allow us to reconstruct our // state from the source data. StorageHost []string `protobuf:"bytes,8,rep,name=storage_host,json=storageHost,proto3" json:"storage_host,omitempty"` PathToFiles []string `protobuf:"bytes,9,rep,name=path_to_files,json=pathToFiles,proto3" json:"path_to_files,omitempty"` // A pattern that allows us to identify the sequence of files. The // expression is expected to be a PCRE expression. // http://www.pcre.org/current/doc/html/ // // For example, "capture_(%d+)" says that the files are named // capture with the sequence number appended after the _ FilePattern []string `protobuf:"bytes,10,rep,name=file_pattern,json=filePattern,proto3" json:"file_pattern,omitempty"` // Username of the file owner Username string `protobuf:"bytes,11,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
We try to keep as much state about the file that we convert as we can, so we have some idea of where this data came from and who handled it
func (*CaptureSpec) Descriptor ¶
func (*CaptureSpec) Descriptor() ([]byte, []int)
func (*CaptureSpec) GetCaptureLocation ¶
func (m *CaptureSpec) GetCaptureLocation() string
func (*CaptureSpec) GetCaptureLocationDns ¶
func (m *CaptureSpec) GetCaptureLocationDns() string
func (*CaptureSpec) GetCaptureLocation_IP ¶ added in v0.1.4
func (m *CaptureSpec) GetCaptureLocation_IP() *IPAddressWrapper
func (*CaptureSpec) GetCaptureNodeInterface ¶
func (m *CaptureSpec) GetCaptureNodeInterface() []string
func (*CaptureSpec) GetCaptureNodeSpec ¶
func (m *CaptureSpec) GetCaptureNodeSpec() string
func (*CaptureSpec) GetCaptureSpecId ¶
func (m *CaptureSpec) GetCaptureSpecId() int32
func (*CaptureSpec) GetFilePattern ¶
func (m *CaptureSpec) GetFilePattern() []string
func (*CaptureSpec) GetPathToFiles ¶
func (m *CaptureSpec) GetPathToFiles() []string
func (*CaptureSpec) GetPtpPeer ¶
func (m *CaptureSpec) GetPtpPeer() *IPAddressWrapper
func (*CaptureSpec) GetStorageHost ¶
func (m *CaptureSpec) GetStorageHost() []string
func (*CaptureSpec) GetTcpdumpExpression ¶
func (m *CaptureSpec) GetTcpdumpExpression() string
func (*CaptureSpec) GetType ¶
func (m *CaptureSpec) GetType() CaptureSpec_Type
func (*CaptureSpec) GetUsername ¶
func (m *CaptureSpec) GetUsername() string
func (*CaptureSpec) GetVerboseDebugId ¶
func (m *CaptureSpec) GetVerboseDebugId() []byte
func (*CaptureSpec) ProtoMessage ¶
func (*CaptureSpec) ProtoMessage()
func (*CaptureSpec) Reset ¶
func (m *CaptureSpec) Reset()
func (*CaptureSpec) String ¶
func (m *CaptureSpec) String() string
func (*CaptureSpec) XXX_DiscardUnknown ¶ added in v0.1.2
func (m *CaptureSpec) XXX_DiscardUnknown()
func (*CaptureSpec) XXX_Marshal ¶ added in v0.1.2
func (m *CaptureSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CaptureSpec) XXX_Merge ¶ added in v0.1.2
func (dst *CaptureSpec) XXX_Merge(src proto.Message)
func (*CaptureSpec) XXX_Size ¶ added in v0.1.2
func (m *CaptureSpec) XXX_Size() int
func (*CaptureSpec) XXX_Unmarshal ¶ added in v0.1.2
func (m *CaptureSpec) XXX_Unmarshal(b []byte) error
type CaptureSpec_Type ¶
type CaptureSpec_Type int32
Capture specification
const ( CaptureSpec_FLOW CaptureSpec_Type = 0 CaptureSpec_BGP_MRT CaptureSpec_Type = 1 CaptureSpec_BGP_LIVE CaptureSpec_Type = 2 )
func (CaptureSpec_Type) EnumDescriptor ¶
func (CaptureSpec_Type) EnumDescriptor() ([]byte, []int)
func (CaptureSpec_Type) String ¶
func (x CaptureSpec_Type) String() string
type IPAddressWrapper ¶
type IPAddressWrapper struct { // must be at least one or the other IPv4 []byte `protobuf:"bytes,1,opt,name=IPv4,proto3" json:"IPv4,omitempty"` IPv6 []byte `protobuf:"bytes,2,opt,name=IPv6,proto3" json:"IPv6,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*IPAddressWrapper) Descriptor ¶
func (*IPAddressWrapper) Descriptor() ([]byte, []int)
func (*IPAddressWrapper) GetIPv4 ¶ added in v0.1.4
func (m *IPAddressWrapper) GetIPv4() []byte
func (*IPAddressWrapper) GetIPv6 ¶ added in v0.1.4
func (m *IPAddressWrapper) GetIPv6() []byte
func (*IPAddressWrapper) ProtoMessage ¶
func (*IPAddressWrapper) ProtoMessage()
func (*IPAddressWrapper) Reset ¶
func (m *IPAddressWrapper) Reset()
func (*IPAddressWrapper) String ¶
func (m *IPAddressWrapper) String() string
func (*IPAddressWrapper) XXX_DiscardUnknown ¶ added in v0.1.2
func (m *IPAddressWrapper) XXX_DiscardUnknown()
func (*IPAddressWrapper) XXX_Marshal ¶ added in v0.1.2
func (m *IPAddressWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IPAddressWrapper) XXX_Merge ¶ added in v0.1.2
func (dst *IPAddressWrapper) XXX_Merge(src proto.Message)
func (*IPAddressWrapper) XXX_Size ¶ added in v0.1.2
func (m *IPAddressWrapper) XXX_Size() int
func (*IPAddressWrapper) XXX_Unmarshal ¶ added in v0.1.2
func (m *IPAddressWrapper) XXX_Unmarshal(b []byte) error
type PrefixWrapper ¶
type PrefixWrapper struct { // both are really required Prefix *IPAddressWrapper `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"` Mask uint32 `protobuf:"varint,2,opt,name=mask,proto3" json:"mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PrefixWrapper) Descriptor ¶
func (*PrefixWrapper) Descriptor() ([]byte, []int)
func (*PrefixWrapper) GetMask ¶
func (m *PrefixWrapper) GetMask() uint32
func (*PrefixWrapper) GetPrefix ¶
func (m *PrefixWrapper) GetPrefix() *IPAddressWrapper
func (*PrefixWrapper) ProtoMessage ¶
func (*PrefixWrapper) ProtoMessage()
func (*PrefixWrapper) Reset ¶
func (m *PrefixWrapper) Reset()
func (*PrefixWrapper) String ¶
func (m *PrefixWrapper) String() string
func (*PrefixWrapper) XXX_DiscardUnknown ¶ added in v0.1.2
func (m *PrefixWrapper) XXX_DiscardUnknown()
func (*PrefixWrapper) XXX_Marshal ¶ added in v0.1.2
func (m *PrefixWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PrefixWrapper) XXX_Merge ¶ added in v0.1.2
func (dst *PrefixWrapper) XXX_Merge(src proto.Message)
func (*PrefixWrapper) XXX_Size ¶ added in v0.1.2
func (m *PrefixWrapper) XXX_Size() int
func (*PrefixWrapper) XXX_Unmarshal ¶ added in v0.1.2
func (m *PrefixWrapper) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.