Documentation
¶
Index ¶
- type Container
- type CtrSpec
- type Handler
- func (h *Handler) Capture(req *types.ContainerCapture, stream v1.ContainerDCaptureService_CaptureServer) error
- func (h *Handler) FetchNetorkNamespaceID(id string) (string, error)
- func (h *Handler) SelectNamespace() error
- func (s *Handler) ServerInformation() (*types.ServerInfo, error)
- func (h *Handler) SwitchNetworkNamespace(path string) error
- type Info
- type LinuxSpec
- type Namespaces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CtrSpec ¶
type CtrSpec struct {
LinuxSpec LinuxSpec `yaml:"linux,omitempty"`
}
CtrSpec represent the output of ctr container info
type Handler ¶
type Handler struct { v1.UnimplementedContainerDCaptureServiceServer ContainerDconfig Container SelectedNamespace string Captures map[string]*pcap.PcapHandler // contains filtered or unexported fields }
Handler Implement the CaptureHandler interface for containerd environnement It used containerd api to fetch the network namespace
func NewHandler ¶
func (*Handler) Capture ¶
func (h *Handler) Capture(req *types.ContainerCapture, stream v1.ContainerDCaptureService_CaptureServer) error
Capture implement the capture grpc interface
func (*Handler) FetchNetorkNamespaceID ¶
FetchNetorkNamespaceID return the network namespace path
func (*Handler) SelectNamespace ¶
SelectNamespace Select the containerD Namespace
func (*Handler) ServerInformation ¶
func (s *Handler) ServerInformation() (*types.ServerInfo, error)
func (*Handler) SwitchNetworkNamespace ¶
SwitchNetworkNamespace
type LinuxSpec ¶
type LinuxSpec struct {
Namespaces Namespaces `yaml:"namespaces,omitempty"`
}
LinuxSpec represent the LinuxSpec part of ctr container info
type Namespaces ¶
type Namespaces []Info
Namespaces represent the Namespace part of ctr container info
Click to show internal directories.
Click to hide internal directories.