Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootOptions ¶
type RootOptions struct { // Workspace is the directory path where the application will store its data Workspace string // ConfigFile is the path of the configuration file, which will be searched in the Workspace ConfigFile string // SocketPath is the path of the socket file, which will be stored in the Workspace SocketPath string // StatePath is the path of the state file, which will be stored in the Workspace StatePath string // DnsServers is the list of DNS servers to be used for DNS resolving DnsServers string `toml:"dnsservers"` // CheckIntervalMin is the interval in minutes to check the routing table with the collected state.State CheckIntervalMin int `toml:"checkintervalmin"` // Verbose is the flag to enable verbose logging output Verbose bool `toml:"verbose"` }
func GetRootOptions ¶
func GetRootOptions() *RootOptions
GetRootOptions returns the pointer of RootOptions
func (*RootOptions) InitFlags ¶
func (opts *RootOptions) InitFlags(cmd *cobra.Command) error
InitFlags initializes the flags of the root command
func (*RootOptions) ReadConfig ¶ added in v0.0.14
func (opts *RootOptions) ReadConfig() error
ReadConfig reads the configuration file and unmarshalls it into RootOptions
Click to show internal directories.
Click to hide internal directories.