cmd

package
v0.0.0-...-663b682 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 25 Imported by: 0

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

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 GetConfig

func GetConfig() *viper.Viper

func GetOpnsenseVpnConnectedUsers

func GetOpnsenseVpnConnectedUsers(co utils.ConfigOptions) ([]utils.VpnRouteRow, error)

GetOpnsenseVpnConnectedUsers returns a list of VPN usernames and their VPN Client IP Address

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 ValidateListenConfigOptions

func ValidateListenConfigOptions(mode string, all_flags *pflag.FlagSet) (co utils.ConfigOptions, err error)

func ViperValidateListenConfigOptions

func ViperValidateListenConfigOptions(mode string, c *viper.Viper) (co utils.ConfigOptions, err error)

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)

Types

This section is empty.

Jump to

Keyboard shortcuts

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