Documentation
¶
Overview ¶
Copyright © 2023 Blair Gillam <ns1h@airmada.net>
Copyright © 2023 Blair Gillam <ns1h@airmada.net>
Copyright © 2023 Blair Gillam <ns1h@airmada.net>
Copyright © 2023 Blair Gillam <ns1h@airmada.net>
Copyright © 2023 Blair Gillam <ns1h@airmada.net>
Copyright © 2023 Blair Gillam <ns1h@airmada.net>
Index ¶
- func Execute()
- func GetConfig() *viper.Viper
- func GetNetBirdConnectedUsers(co utils.ConfigOptions) ([]utils.VpnRouteRow, error)
- func ListenForPackets(co utils.ConfigOptions) error
- func ParsePcapFile(co utils.ConfigOptions) error
- func ValidateListenConfigOptions(mode string, all_flags *pflag.FlagSet) (co utils.ConfigOptions, err error)
- func ViperValidateListenConfigOptions(mode string, c *viper.Viper) (co utils.ConfigOptions, err error)
- func ViperValidatePcapConfigOptions(mode string, c *viper.Viper) (co utils.ConfigOptions, err error)
- func ViperValidateSyncConfigOptions(c *viper.Viper) (co utils.ConfigOptions, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetNetBirdConnectedUsers ¶
func GetNetBirdConnectedUsers(co utils.ConfigOptions) ([]utils.VpnRouteRow, error)
GetNetBirdConnectedUsers fetches all peers and returns only connected peers with valid IPs and non-blank UserID
func ListenForPackets ¶
func ListenForPackets(co utils.ConfigOptions) error
func ParsePcapFile ¶
func ParsePcapFile(co utils.ConfigOptions) error
ParsePcapFile parses the given pcap file for VRT packets. Error is returned as needed.
func ViperValidatePcapConfigOptions ¶
func ViperValidatePcapConfigOptions(mode string, c *viper.Viper) (co utils.ConfigOptions, err error)
ViperValidatePcapConfigOptions validates the configuration options used during 'pcap' mode
func ViperValidateSyncConfigOptions ¶
func ViperValidateSyncConfigOptions(c *viper.Viper) (co utils.ConfigOptions, err error)
ViperValidateSyncConfigOptions validates configuration options for the sync command
Types ¶
This section is empty.