Documentation ¶
Overview ¶
Package tchandler handles how SchedCLS programs are attached to containers and network interfaces. The behavior is very similar to the network tracer implemented in pkg/networktracer/tracer.go. The main difference is that SchedCLS programs need to be attached to network interfaces and can be attached on ingress or egress.
Index ¶
- type AttachmentDirection
- type Handler
- func (t *Handler) AttachContainer(container *containercollection.Container) error
- func (t *Handler) AttachIface(iface *net.Interface) error
- func (t *Handler) AttachProg(prog *ebpf.Program) error
- func (t *Handler) Close()
- func (t *Handler) DetachContainer(container *containercollection.Container) error
- func (t *Handler) DetachIface(iface *net.Interface) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttachmentDirection ¶
type AttachmentDirection int
const ( AttachmentDirectionUnspec AttachmentDirection = iota AttachmentDirectionIngress AttachmentDirectionEgress )
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(direction AttachmentDirection) (*Handler, error)
func (*Handler) AttachContainer ¶
func (t *Handler) AttachContainer(container *containercollection.Container) error
func (*Handler) AttachIface ¶
AttachIface attaches the tracer to the given interface on the host. See AttachContainer() if you want to attach to a container.
func (*Handler) DetachContainer ¶
func (t *Handler) DetachContainer(container *containercollection.Container) error
Click to show internal directories.
Click to hide internal directories.