config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: AGPL-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 DNSxLCfg

type DNSxLCfg struct {
	TimeoutMSecs  int
	Resolvers     []string
	UseResolvConf bool
}

DNSxLCfg stores dnsxl module preferences

func (*DNSxLCfg) BindViper

func (cfg *DNSxLCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (DNSxLCfg) Dump

func (cfg DNSxLCfg) Dump() string

Dump configuration

func (DNSxLCfg) Empty

func (cfg DNSxLCfg) Empty() bool

Empty returns true if configuration is empty

func (*DNSxLCfg) FromViper

func (cfg *DNSxLCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*DNSxLCfg) SetPFlags

func (cfg *DNSxLCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (DNSxLCfg) Validate

func (cfg DNSxLCfg) Validate() error

Validate checks that configuration is ok

type SBLookupCfg

type SBLookupCfg struct {
	APIKey    string
	ServerURL string
}

SBLookupCfg stores sblookupxl module preferences

func (*SBLookupCfg) BindViper

func (cfg *SBLookupCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (SBLookupCfg) Dump

func (cfg SBLookupCfg) Dump() string

Dump configuration

func (SBLookupCfg) Empty

func (cfg SBLookupCfg) Empty() bool

Empty returns true if configuration is empty

func (*SBLookupCfg) FromViper

func (cfg *SBLookupCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*SBLookupCfg) SetPFlags

func (cfg *SBLookupCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (SBLookupCfg) Validate

func (cfg SBLookupCfg) Validate() error

Validate checks that configuration is ok

type XLGetCfg

type XLGetCfg struct {
	SourceDirs  []string
	SourceFiles []string
	OutputDir   string
	CacheDir    string
	StatusDir   string
}

XLGetCfg stores xlget preferences

func (*XLGetCfg) BindViper

func (cfg *XLGetCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (XLGetCfg) Dump

func (cfg XLGetCfg) Dump() string

Dump configuration

func (XLGetCfg) Empty

func (cfg XLGetCfg) Empty() bool

Empty returns true if configuration is empty

func (*XLGetCfg) FromViper

func (cfg *XLGetCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*XLGetCfg) SetPFlags

func (cfg *XLGetCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (XLGetCfg) Validate

func (cfg XLGetCfg) Validate() error

Validate checks that configuration is ok

type XListCfg

type XListCfg struct {
	//service configuration
	ServiceDirs  []string
	ServiceFiles []string
	//generic build opts
	DataDir  string
	CertsDir string
}

XListCfg stores lists config paths and builder prefs

func (*XListCfg) BindViper

func (cfg *XListCfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (XListCfg) Dump

func (cfg XListCfg) Dump() string

Dump configuration

func (XListCfg) Empty

func (cfg XListCfg) Empty() bool

Empty returns true if configuration is empty

func (*XListCfg) FromViper

func (cfg *XListCfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*XListCfg) SetPFlags

func (cfg *XListCfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (XListCfg) Validate

func (cfg XListCfg) Validate() error

Validate checks that configuration is ok

type XListCheckAPICfg

type XListCheckAPICfg struct {
	Enable     bool
	RootListID string
	Log        bool
}

XListCheckAPICfg stores check service preferences

func (*XListCheckAPICfg) BindViper

func (cfg *XListCheckAPICfg) BindViper(v *viper.Viper, prefix string)

BindViper setups posix flags for commandline configuration and bind to viper

func (XListCheckAPICfg) Dump

func (cfg XListCheckAPICfg) Dump() string

Dump configuration

func (XListCheckAPICfg) Empty

func (cfg XListCheckAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*XListCheckAPICfg) FromViper

func (cfg *XListCheckAPICfg) FromViper(v *viper.Viper, prefix string)

FromViper fill values from viper

func (*XListCheckAPICfg) SetPFlags

func (cfg *XListCheckAPICfg) SetPFlags(short bool, prefix string)

SetPFlags setups posix flags for commandline configuration

func (XListCheckAPICfg) Validate

func (cfg XListCheckAPICfg) Validate() error

Validate checks that configuration is ok

Jump to

Keyboard shortcuts

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