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
- func (b *BackendDS) SendHealthCheck(ebpf bool, metrics bool)
- type BackendResponse
- type Container
- type ContainerEvent
- type DaemonSet
- type DataStore
- type DepEvent
- type Deployment
- type DsEvent
- type Endpoints
- type EpEvent
- type EventPayload
- type HealthCheckPayload
- type LeveledLogger
- type Metadata
- type MockDataStore
- func (m *MockDataStore) PersistContainer(c Container, eventType string) error
- func (m *MockDataStore) PersistDaemonSet(ds DaemonSet, eventType string) error
- func (m *MockDataStore) PersistDeployment(d Deployment, eventType string) error
- func (m *MockDataStore) PersistEndpoints(e Endpoints, eventType string) error
- func (m *MockDataStore) PersistPod(pod Pod, eventType string) error
- func (m *MockDataStore) PersistReplicaSet(rs ReplicaSet, eventType string) error
- func (m *MockDataStore) PersistRequest(request *Request) error
- func (m *MockDataStore) PersistService(service Service, eventType string) error
- type Pod
- type PodEvent
- type ReplicaSet
- type ReqBackendReponse
- 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 ¶
func (*BackendDS) PersistService ¶
func (*BackendDS) SendHealthCheck ¶ added in v0.2.0
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 EventPayload struct { Metadata Metadata `json:"metadata"` Events []interface{} `json:"events"` }
type HealthCheckPayload ¶ added in v0.2.0
type LeveledLogger ¶ added in v0.2.0
type LeveledLogger struct {
// contains filtered or unexported fields
}
func (LeveledLogger) Debug ¶ added in v0.2.0
func (ll LeveledLogger) Debug(msg string, keysAndValues ...interface{})
func (LeveledLogger) Error ¶ added in v0.2.0
func (ll LeveledLogger) Error(msg string, keysAndValues ...interface{})
func (LeveledLogger) Info ¶ added in v0.2.0
func (ll LeveledLogger) Info(msg string, keysAndValues ...interface{})
func (LeveledLogger) Warn ¶ added in v0.2.0
func (ll LeveledLogger) Warn(msg string, keysAndValues ...interface{})
type MockDataStore ¶ added in v0.2.1
type MockDataStore struct { }
func (*MockDataStore) PersistContainer ¶ added in v0.2.1
func (m *MockDataStore) PersistContainer(c Container, eventType string) error
func (*MockDataStore) PersistDaemonSet ¶ added in v0.2.1
func (m *MockDataStore) PersistDaemonSet(ds DaemonSet, eventType string) error
func (*MockDataStore) PersistDeployment ¶ added in v0.2.1
func (m *MockDataStore) PersistDeployment(d Deployment, eventType string) error
func (*MockDataStore) PersistEndpoints ¶ added in v0.2.1
func (m *MockDataStore) PersistEndpoints(e Endpoints, eventType string) error
func (*MockDataStore) PersistPod ¶ added in v0.2.1
func (m *MockDataStore) PersistPod(pod Pod, eventType string) error
func (*MockDataStore) PersistReplicaSet ¶ added in v0.2.1
func (m *MockDataStore) PersistReplicaSet(rs ReplicaSet, eventType string) error
func (*MockDataStore) PersistRequest ¶ added in v0.2.1
func (m *MockDataStore) PersistRequest(request *Request) error
func (*MockDataStore) PersistService ¶ added in v0.2.1
func (m *MockDataStore) PersistService(service Service, eventType string) error
type ReplicaSet ¶
type ReqBackendReponse ¶ added in v0.2.0
type ReqInfo ¶
type ReqInfo [16]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 Status Code 12) Fail Reason // TODO: not used yet 13) Method 14) Path 15) Encrypted (bool)
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.