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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveDNSAPICfg

type ArchiveDNSAPICfg struct {
	Enable  bool
	Log     bool
	Service string
}

ArchiveDNSAPICfg stores archive service preferences

func (*ArchiveDNSAPICfg) BindViper

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

BindViper setups posix flags for commandline configuration and bind to viper

func (ArchiveDNSAPICfg) Dump

func (cfg ArchiveDNSAPICfg) Dump() string

Dump configuration

func (ArchiveDNSAPICfg) Empty

func (cfg ArchiveDNSAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*ArchiveDNSAPICfg) FromViper

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

FromViper fill values from viper

func (*ArchiveDNSAPICfg) SetPFlags

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

SetPFlags setups posix flags for commandline configuration

func (ArchiveDNSAPICfg) Validate

func (cfg ArchiveDNSAPICfg) Validate() error

Validate checks that configuration is ok

type ArchiveEventAPICfg

type ArchiveEventAPICfg struct {
	Enable  bool
	Log     bool
	Service string
}

ArchiveEventAPICfg stores archive service preferences

func (*ArchiveEventAPICfg) BindViper

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

BindViper setups posix flags for commandline configuration and bind to viper

func (ArchiveEventAPICfg) Dump

func (cfg ArchiveEventAPICfg) Dump() string

Dump configuration

func (ArchiveEventAPICfg) Empty

func (cfg ArchiveEventAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*ArchiveEventAPICfg) FromViper

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

FromViper fill values from viper

func (*ArchiveEventAPICfg) SetPFlags

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

SetPFlags setups posix flags for commandline configuration

func (ArchiveEventAPICfg) Validate

func (cfg ArchiveEventAPICfg) Validate() error

Validate checks that configuration is ok

type ArchiveTLSAPICfg

type ArchiveTLSAPICfg struct {
	Enable  bool
	Log     bool
	Service string
}

ArchiveTLSAPICfg stores archive service preferences

func (*ArchiveTLSAPICfg) BindViper

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

BindViper setups posix flags for commandline configuration and bind to viper

func (ArchiveTLSAPICfg) Dump

func (cfg ArchiveTLSAPICfg) Dump() string

Dump configuration

func (ArchiveTLSAPICfg) Empty

func (cfg ArchiveTLSAPICfg) Empty() bool

Empty returns true if configuration is empty

func (*ArchiveTLSAPICfg) FromViper

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

FromViper fill values from viper

func (*ArchiveTLSAPICfg) SetPFlags

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

SetPFlags setups posix flags for commandline configuration

func (ArchiveTLSAPICfg) Validate

func (cfg ArchiveTLSAPICfg) Validate() error

Validate checks that configuration is ok

type ArchiverCfg

type ArchiverCfg struct {
	BackendDirs  []string
	BackendFiles []string
	ServiceDirs  []string
	ServiceFiles []string
}

ArchiverCfg stores archiver preferences

func (*ArchiverCfg) BindViper

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

BindViper setups posix flags for commandline configuration and bind to viper

func (ArchiverCfg) Dump

func (cfg ArchiverCfg) Dump() string

Dump configuration

func (ArchiverCfg) Empty

func (cfg ArchiverCfg) Empty() bool

Empty returns true if configuration is empty

func (*ArchiverCfg) FromViper

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

FromViper fill values from viper

func (*ArchiverCfg) SetPFlags

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

SetPFlags setups posix flags for commandline configuration

func (ArchiverCfg) Validate

func (cfg ArchiverCfg) 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