github.com/cilium/cilium@v1.16.2/pkg/datapath/types/wireguard.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright Authors of Cilium
     3  
     4  package types
     5  
     6  import (
     7  	"net"
     8  
     9  	"github.com/cilium/cilium/api/v1/models"
    10  )
    11  
    12  // WireguardAgent manages the WireGuard peers
    13  type WireguardAgent interface {
    14  	UpdatePeer(nodeName, pubKeyHex string, nodeIPv4, nodeIPv6 net.IP) error
    15  	DeletePeer(nodeName string) error
    16  	Status(includePeers bool) (*models.WireguardStatus, error)
    17  }