Files
kubeshark/shared/models.go
RamiBerm 24dba9e851 WIP
2021-05-24 10:22:20 +03:00

23 lines
484 B
Go

package shared
type ControlSocketMessageType string
const (
TAPPING_STATUS_MESSAGE_TYPE ControlSocketMessageType = "tappingStatus"
TAPPED_MESSAGE_TYPE ControlSocketMessageType = "tappedMessage"
)
type MizuSocketMessage 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"`
}