func (p PodResources) GetResourceItemByType(resType string) []ResourceItem {
	var ret []ResourceItem
	for _, r := range p.Resources {
		if resType == r.Type {
			ret = append(ret, ResourceItem{Type: resType, ID: r.ID})
		}
	}
	return ret
}
GetResourceItemByType get pod resource by resource type
package types
import (
	"net"
	"time"
)
type PodEipInfo struct {
	PodEip           bool
	PodEipID         string
	PodEipIP         string
	PodEipBandWidth  int
	PodEipChargeType InternetChargeType
}
type PodInfo struct {
	Name           string
	Namespace      string
	TcIngress      uint64
	TcEgress       uint64
	PodNetworkType string
	PodIP          string  
	PodIPs         IPSet   
	SandboxExited  bool
	EipInfo        PodEipInfo
	IPStickTime    time.Duration
	PodENI         bool
}
type ExtraEipInfo struct {
	Delete         bool   `json:"delete"`  
	AssociateENI   string `json:"associate_eni"`
	AssociateENIIP net.IP `json:"associate_eniip"`
}
type ResourceItem struct {
	Type         string        `json:"type"`
	ID           string        `json:"id"`
	ExtraEipInfo *ExtraEipInfo `json:"extra_eip_info"`
	ENIID  string `json:"eni_id"`
	ENIMAC string `json:"eni_mac"`
	IPv4   string `json:"ipv4"`
	IPv6   string `json:"ipv6"`
}
type PodResources struct {
	Resources []ResourceItem
	PodInfo   *PodInfo
	NetNs     *string
}