Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppCtxInit ¶
Types ¶
type ArgsParams ¶
type ArgsParams struct { ConfigPath string Cmd command CmdParams interface{} Arg *arg.Parser }
ArgsParams contains parameters read from command line, command parameters and command handler
func ReadArgs ¶
func ReadArgs() (p ArgsParams, err error)
ReadArgs reads arguments from command line
type ConfOpts ¶
type ConfOpts struct { ProjectName string `conf:"project_name"` ServerName string `conf:"server_name" conf_extraopts:"default=localhost"` Notifications notificationsConf `conf:"notifications"` Jobs []jobConf `conf:"jobs"` StorageConnects []storageConnectConf `conf:"storage_connects"` IncludeCfgs []string `conf:"include_jobs_configs"` WaitingTimeout time.Duration `conf:"waiting_timeout"` Server serverConf `conf:"server"` Limits *limitsConf `conf:"limits" conf_extraopts:"default={}"` LogFile string `conf:"logfile" conf_extraopts:"default=stdout"` LogLevel string `conf:"loglevel" conf_extraopts:"default=info"` ConfPath string }
type Ctx ¶
type Ctx struct { Cmd interfaces.Handler Log *logrus.Logger Done chan error EventCh chan logger.LogRecord EventsWG *sync.WaitGroup Notifiers []interfaces.Notifier }
Ctx defines application custom context
type GenerateCmd ¶
type GenerateCmd struct { Type misc.BackupType `arg:"-T,--backup-type,required" help:"Type of backup"` Storages map[string]string `arg:"-S,--storage-types" help:"Storages names with type. Example: -S minio=s3 aws=s3"` OutPath string `arg:"-O,--out-path" help:"Path to the generated configuration file" placeholder:"PATH"` }
Click to show internal directories.
Click to hide internal directories.