 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func BuildNewAnswer(buildDir, outputPath string, plugins []string, ...) (err error)
- func CheckConfigFile(configPath string) bool
- func CheckDBConnection(dataConf *data.Database) bool
- func CheckDBTableExist(dataConf *data.Database) bool
- func CheckUploadDir() bool
- func DumpAllData(dataConf *data.Database, dumpDataPath string) error
- func InstallAllInitialEnvironment(dataDirPath string)
- func InstallConfigFile(configFilePath string) error
- func InstallI18nBundle(replace bool)
- func MergeI18nFilesLocal(originalI18nDir, targetI18nDir string) (err error)
- func ReplaceI18nFilesLocal(i18nDir string) error
- func ResetPassword(ctx context.Context, dataDirPath string, opts *ResetPasswordOptions) error
- func SetDefaultConfig(dbConf *data.Database, cacheConf *data.CacheConf, field *ConfigField) error
- type ConfigField
- type OriginalAnswerInfo
- type ResetPasswordOptions
- type YamlPluginContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNewAnswer ¶
func BuildNewAnswer(buildDir, outputPath string, plugins []string, originalAnswerInfo OriginalAnswerInfo) (err error)
BuildNewAnswer builds a new answer with specified plugins
func CheckConfigFile ¶
func CheckDBConnection ¶
CheckDBConnection check database whether the connection is normal
func CheckDBTableExist ¶
CheckDBTableExist check database whether the table is already exists
func CheckUploadDir ¶
func CheckUploadDir() bool
func DumpAllData ¶
DumpAllData dump all database data to sql
func InstallAllInitialEnvironment ¶
func InstallAllInitialEnvironment(dataDirPath string)
InstallAllInitialEnvironment install all initial environment
func InstallConfigFile ¶
func InstallI18nBundle ¶
func InstallI18nBundle(replace bool)
func MergeI18nFilesLocal ¶
MergeI18nFilesLocal merge i18n files
func ReplaceI18nFilesLocal ¶
ReplaceI18nFilesLocal replace i18n files
func ResetPassword ¶
func ResetPassword(ctx context.Context, dataDirPath string, opts *ResetPasswordOptions) error
func SetDefaultConfig ¶
SetDefaultConfig set default config
Types ¶
type ConfigField ¶
type OriginalAnswerInfo ¶
type ResetPasswordOptions ¶
type YamlPluginContent ¶
 Click to show internal directories. 
   Click to hide internal directories.