func (config *Config) Validate() error { if err := validation.NoSpecialSymbols(config.User); err != nil { return err } if err := validation.NoSpecialSymbols(config.Group); err != nil { return err } if err := validation.Path(config.DefaultWorkingDirectory); err != nil { return err } return nil }
func (options *ServiceOptions) Validate() error { if err := validation.Path(options.WorkingDirectory); err != nil { return err } if err := validation.NoSpecialSymbols(options.User); err != nil { return err } if err := validation.NoSpecialSymbols(options.Group); err != nil { return err } if err := validation.Path(options.LogPath); err != nil { return err } return nil }
func (service *Service) Validate() error { if err := validation.NoSpecialSymbols(service.Name); err != nil { return err } if err := service.Options.Validate(); err != nil { return err } return nil }
func validateAppName(appName string) { if err := validation.NoSpecialSymbols(appName); err != nil { panic(err) } }