mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-12 21:01:36 +00:00
WIP
This commit is contained in:
22
shared/models.go
Normal file
22
shared/models.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package shared
|
||||
|
||||
type ControlSocketMessageType string
|
||||
|
||||
const (
|
||||
TAPPING_STATUS_MESSAGE_TYPE ControlSocketMessageType = "tappingStatus"
|
||||
)
|
||||
|
||||
type ControlSocketMessage struct {
|
||||
MessageType ControlSocketMessageType `json:"messageType"`
|
||||
Data interface{} `json:"data"`
|
||||
}
|
||||
|
||||
type TapStatus struct {
|
||||
Namespace string `json:"namespace"`
|
||||
Pods []PodInfo `json:"pods"`
|
||||
}
|
||||
|
||||
type PodInfo struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user