Home | Trees | Index | Help |
|
---|
Package CedarBackup2 :: Package actions :: Module validate |
|
Author: Kenneth J. Pronovici <pronovic@ieee.org>
Function Summary | |
---|---|
Executes the validate action. | |
Checks that the indicated directory is OK. | |
Execute runtime validations on collect configuration. | |
Execute runtime validations on extensions configuration. | |
Execute runtime validations on options configuration. | |
Execute runtime validations on purge configuration. | |
Execute runtime validations on reference configuration. | |
Execute runtime validations on stage configuration. | |
Execute runtime validations on store configuration. |
Variable Summary | |
---|---|
Logger |
logger = <logging.Logger instance at 0x4032a74c>
|
Function Details |
---|
executeValidate(configPath, options, config)Executes the validate action. This action validates each of the individual sections in the config file. This is a "runtime" validation. The config file itself is already valid in a structural sense, so what we check here that is that we can actually use the configuration without any problems. There's a separate validation function for each of the configuration sections. Each validation function returns a true/false indication for whether configuration was valid, and then logs any configuration problems it finds. This way, one pass over configuration indicates most or all of the obvious problems, rather than finding just one problem at a time. Any reported problems will be logged at the ERROR level normally, or at the INFO level if the quiet flag is enabled.
|
_checkDir(path, writable, logfunc, prefix)Checks that the indicated directory is OK. The path must exist, must be a directory, must be readable and executable, and must optionally be writable.
|
_validateCollect(config, logfunc)Execute runtime validations on collect configuration. The following validations are enforced:
|
_validateExtensions(config, logfunc)Execute runtime validations on extensions configuration. The following validations are enforced:
|
_validateOptions(config, logfunc)Execute runtime validations on options configuration. The following validations are enforced:
|
_validatePurge(config, logfunc)Execute runtime validations on purge configuration. The following validations are enforced:
|
_validateReference(config, logfunc)Execute runtime validations on reference configuration. We only validate that reference configuration exists at all.
|
_validateStage(config, logfunc)Execute runtime validations on stage configuration. The following validations are enforced:
|
_validateStore(config, logfunc)Execute runtime validations on store configuration. The following validations are enforced:
|
Variable Details |
---|
logger
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Mar 29 20:58:27 2007 | http://epydoc.sf.net |