Documentation ¶
Index ¶
- func GatewayIDs() []string
- func Gateways(fs ...GatewayFilter) (vpn.WireguardGatewayReadList, error)
- func GatewaysProperty[V any](f func(gateway vpn.WireguardGatewayRead) V, fs ...GatewayFilter) []V
- func PeerIDs(gatewayID string) []string
- func Peers(gatewayID string, fs ...PeerFilter) (vpn.WireguardPeerReadList, error)
- func PeersProperty[V any](gatewayID string, f func(peer vpn.WireguardPeerRead) V, fs ...PeerFilter) []V
- type GatewayFilter
- type PeerFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatewayIDs ¶
func GatewayIDs() []string
func Gateways ¶
func Gateways(fs ...GatewayFilter) (vpn.WireguardGatewayReadList, error)
Gateways returns all distributions matching the given filters
func GatewaysProperty ¶
func GatewaysProperty[V any](f func(gateway vpn.WireguardGatewayRead) V, fs ...GatewayFilter) []V
GatewaysProperty returns a list of properties of all gateways matching the given filters
func Peers ¶
func Peers(gatewayID string, fs ...PeerFilter) (vpn.WireguardPeerReadList, error)
Peers returns all distributions matching the given filters
func PeersProperty ¶
func PeersProperty[V any](gatewayID string, f func(peer vpn.WireguardPeerRead) V, fs ...PeerFilter) []V
PeersProperty returns a list of properties of all peers matching the given filters
Types ¶
type GatewayFilter ¶
type GatewayFilter func(request vpn.ApiWireguardgatewaysGetRequest) (vpn.ApiWireguardgatewaysGetRequest, error)
type PeerFilter ¶
type PeerFilter func(request vpn.ApiWireguardgatewaysPeersGetRequest) (vpn.ApiWireguardgatewaysPeersGetRequest, error)
Click to show internal directories.
Click to hide internal directories.