-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtypes.go
32 lines (30 loc) · 980 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package scan
import (
"k8s.io/apimachinery/pkg/runtime/schema"
)
type MalwareDescription struct {
// Name of the malware
Name string `json:"malware_name"`
// Description of the malware
Description string `json:"description"`
// Path to the file that was infected
Path string `json:"path"`
// Hash of the file that was infected
Hash string `json:"hash"`
// Size of the file that was infected
Size string `json:"size"`
// Is part of the image
IsPartOfImage bool `json:"is_part_of_image"`
// K8s resource that was infected
Resource schema.GroupVersionResource `json:"resource"`
// K8s namespace that was infected
Namespace string `json:"namespace"`
// K8s pod that was infected
PodName string `json:"kind"`
// K8s container that was infected
ContainerName string `json:"container_name"`
// K8s container ID that was infected
ContainerID string `json:"container_id"`
// K8s container image that was infected
ContainerImage string `json:"container_image"`
}