Documentation
¶
Index ¶
- Variables
- type Address
- type AddressIP
- type AddressPort
- type BackendDS
- func (b *BackendDS) DoRequest(req *http.Request) error
- func (b *BackendDS) PersistContainer(c Container, eventType string) error
- func (b *BackendDS) PersistDaemonSet(ds DaemonSet, eventType string) error
- func (b *BackendDS) PersistDeployment(d Deployment, eventType string) error
- func (b *BackendDS) PersistEndpoints(ep Endpoints, eventType string) error
- func (b *BackendDS) PersistPod(pod Pod, eventType string) error
- func (b *BackendDS) PersistReplicaSet(rs ReplicaSet, eventType string) error
- func (b *BackendDS) PersistRequest(request Request) error
- func (b *BackendDS) PersistService(service Service, eventType string) error
- type BackendResponse
- type Container
- type ContainerEvent
- type DaemonSet
- type DataStore
- type DepEvent
- type Deployment
- type DsEvent
- type Endpoints
- type EpEvent
- type EventPayload
- type Pod
- type PodEvent
- type ReplicaSet
- type ReqInfo
- type Request
- type RequestsPayload
- type RsEvent
- type Service
- type SvcEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var MonitoringID string
View Source
var NodeID string
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct {
IPs []AddressIP `json:"ips"`
Ports []AddressPort `json:"ports"`
}
Subsets
type AddressPort ¶
type BackendDS ¶
type BackendDS struct {
// contains filtered or unexported fields
}
BackendDS is a backend datastore
func NewBackendDS ¶
func NewBackendDS(parentCtx context.Context, conf config.BackendConfig) *BackendDS
func (*BackendDS) PersistContainer ¶
func (*BackendDS) PersistDaemonSet ¶
func (*BackendDS) PersistDeployment ¶
func (b *BackendDS) PersistDeployment(d Deployment, eventType string) error
func (*BackendDS) PersistEndpoints ¶
func (*BackendDS) PersistReplicaSet ¶
func (b *BackendDS) PersistReplicaSet(rs ReplicaSet, eventType string) error
func (*BackendDS) PersistRequest ¶
type BackendResponse ¶
type ContainerEvent ¶
type DataStore ¶
type DataStore interface {
PersistPod(pod Pod, eventType string) error
PersistService(service Service, eventType string) error
PersistReplicaSet(rs ReplicaSet, eventType string) error
PersistDeployment(d Deployment, eventType string) error
PersistEndpoints(e Endpoints, eventType string) error
PersistContainer(c Container, eventType string) error
PersistDaemonSet(ds DaemonSet, eventType string) error
PersistRequest(request Request) error
}
type Deployment ¶
type EventPayload ¶
type ReplicaSet ¶
type ReqInfo ¶
type ReqInfo [15]interface{}
0) StartTime 1) Latency 2) Source IP 3) Source Type 4) Source ID 5) Source Port 6) Destination IP 7) Destination Type 8) Destination ID 9) Destination Port 10) Protocol 11) Response Code 12) ?? 13) Method 14) Path
type RequestsPayload ¶
type SvcEvent ¶
type SvcEvent struct {
UID string `json:"uid"`
EventType string `json:"event_type"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Type string `json:"type"`
ClusterIPs []string `json:"cluster_ips"`
Ports []struct {
Src int32 `json:"src"`
Dest int32 `json:"dest"`
Protocol string `json:"protocol"`
} `json:"ports"`
}
Click to show internal directories.
Click to hide internal directories.