handlers

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEbpfPrograms

func AddEbpfPrograms(ctx context.Context, kfcfg *kf.NFConfigs) http.HandlerFunc

AddEbpfPrograms add new eBPF programs on node @Summary Adds new eBPF Programs on node @Description Adds new eBPF Programs on node @Accept json @Produce json @Param cfgs body []models.L3afBPFPrograms true "BPF programs" @Success 200 @Router /l3af/configs/v1/add [post]

func DeleteEbpfPrograms

func DeleteEbpfPrograms(ctx context.Context, kfcfg *kf.NFConfigs) http.HandlerFunc

DeleteEbpfPrograms remove eBPF programs on node @Summary Removes eBPF Programs on node @Description Removes eBPF Programs on node @Accept json @Produce json @Param cfgs body []models.L3afBPFProgramNames true "BPF program names" @Success 200 @Router /l3af/configs/v1/delete [post]

func GetConfig

func GetConfig(w http.ResponseWriter, r *http.Request)

GetConfig Returns details of the configuration of eBPF Programs for a given interface @Summary Returns details of the configuration of eBPF Programs for a given interface @Description Returns details of the configuration of eBPF Programs for a given interface @Accept json @Produce json @Param iface path string true "interface name" @Success 200 @Router /l3af/configs/v1/{iface} [get]

func GetConfigAll

func GetConfigAll(w http.ResponseWriter, r *http.Request)

GetConfigAll Returns details of the configuration of eBPF Programs for all interfaces on a node @Summary Returns details of the configuration of eBPF Programs for all interfaces on a node @Description Returns details of the configuration of eBPF Programs for all interfaces on a node @Accept json @Produce json @Success 200 @Router /l3af/configs/v1 [get]

func InitConfigs

func InitConfigs(cfgs *kf.NFConfigs) error

func UpdateConfig

func UpdateConfig(ctx context.Context, kfcfg *kf.NFConfigs) http.HandlerFunc

UpdateConfig Update eBPF Programs configuration @Summary Update eBPF Programs configuration @Description Update eBPF Programs configuration @Accept json @Produce json @Param cfgs body []models.L3afBPFPrograms true "BPF programs" @Success 200 @Router /l3af/configs/v1/update [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL