config

package
v0.0.0-...-f195514 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CollisionsCSV string   `yaml:"collisions_file"`
	LogFile       string   `yaml:"logfile"`
	LogLevel      string   `yaml:"loglevel"`
	OutFileCSV    string   `yaml:"out_file"`
	PrivateKeys   []string `yaml:"private_keys"`
	SSHTimeout    string   `yaml:"ssh_timeout"`
	SSHUser       string   `yaml:"ssh_user"`
	UIDMapCSV     string   `yaml:"uidmap_file"`
	Sources       struct {
		URLs    []string `yaml:"urls"`
		Files   []string `yaml:"files"`
		Servers []string `yaml:"servers"`
	} `yaml:"sources"`
}

Config contains the userlist configuration options

func ParseConfig

func ParseConfig(filename string) (*Config, error)

func (*Config) WriteConfig

func (c *Config) WriteConfig(filename string) error

WriteConfig will create a YAML formatted config file from a Config struct

type Flags

type Flags struct {
	Config string
	PWOnly bool
}

func ParseFlags

func ParseFlags() *Flags

parseFlags processes arguments passed on the command line in the format standard format: --foo=bar

Jump to

Keyboard shortcuts

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