Documentation
¶
Index ¶
- func NewServer(nbrew *notebrew.Notebrew) (*http.Server, error)
- func Notebrew(configDir, dataDir string, csp map[string]string) (*notebrew.Notebrew, []io.Closer, error)
- type CaptchaConfig
- type ConfigCmd
- type CreateinviteCmd
- type CreatesiteCmd
- type CreateuserCmd
- type DNSConfig
- type DatabaseConfig
- type DeleteinviteCmd
- type DeletesiteCmd
- type DeleteuserCmd
- type ErrorlogConfig
- type FSConfig
- type FilesConfig
- type HashpasswordCmd
- type LogFilter
- type ObjectsConfig
- type PermissionsCmd
- type ProxyConfig
- type ResetpasswordCmd
- type SMTPConfig
- type StartCmd
- type StatusCmd
- type StopCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CaptchaConfig ¶
type CaptchaConfig struct { WidgetScriptSrc string `json:"widgetScriptSrc"` WidgetClass string `json:"widgetClass"` VerificationURL string `json:"verificationURL"` ResponseTokenName string `json:"responseTokenName"` SiteKey string `json:"siteKey"` SecretKey string `json:"secretKey"` CSP map[string]string `json:"csp"` }
type ConfigCmd ¶
type ConfigCmd struct { ConfigDir string Stdout io.Writer Stderr io.Writer Key sql.NullString Value sql.NullString }
type CreateinviteCmd ¶
type CreateinviteCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer Email sql.NullString SiteLimit sql.NullInt64 StorageLimit sql.NullInt64 UserFlags sql.NullString }
func CreateinviteCommand ¶
func CreateinviteCommand(nbrew *notebrew.Notebrew, args ...string) (*CreateinviteCmd, error)
func (*CreateinviteCmd) Run ¶
func (cmd *CreateinviteCmd) Run() error
type CreatesiteCmd ¶
type CreatesiteCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer SiteName string SiteTitle string SiteTagline string SiteDescription string }
func CreatesiteCommand ¶
func CreatesiteCommand(nbrew *notebrew.Notebrew, args ...string) (*CreatesiteCmd, error)
func (*CreatesiteCmd) Run ¶
func (cmd *CreatesiteCmd) Run() error
type CreateuserCmd ¶
type CreateuserCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer Username string Email string PasswordHash string SiteLimit sql.NullInt64 StorageLimit sql.NullInt64 UserFlags sql.NullString }
func CreateuserCommand ¶
func CreateuserCommand(nbrew *notebrew.Notebrew, args ...string) (*CreateuserCmd, error)
func (*CreateuserCmd) Run ¶
func (cmd *CreateuserCmd) Run() error
type DatabaseConfig ¶
type DatabaseConfig struct { Dialect string `json:"dialect"` FilePath string `json:"filePath"` User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Port string `json:"port"` DBName string `json:"dbName"` Params map[string]string `json:"params"` MaxOpenConns int `json:"maxOpenConns"` MaxIdleConns int `json:"maxIdleConns"` ConnMaxLifetime string `json:"connMaxLifetime"` ConnMaxIdleTime string `json:"connMaxIdleTime"` }
type DeleteinviteCmd ¶
type DeleteinviteCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer Before sql.NullTime After sql.NullTime }
func DeleteinviteCommand ¶
func DeleteinviteCommand(nbrew *notebrew.Notebrew, args ...string) (*DeleteinviteCmd, error)
func (*DeleteinviteCmd) Run ¶
func (cmd *DeleteinviteCmd) Run() error
type DeletesiteCmd ¶
func DeletesiteCommand ¶
func DeletesiteCommand(nbrew *notebrew.Notebrew, args ...string) (*DeletesiteCmd, error)
func (*DeletesiteCmd) Run ¶
func (cmd *DeletesiteCmd) Run() error
type DeleteuserCmd ¶
func DeleteuserCommand ¶
func DeleteuserCommand(nbrew *notebrew.Notebrew, args ...string) (*DeleteuserCmd, error)
func (*DeleteuserCmd) Run ¶
func (cmd *DeleteuserCmd) Run() error
type ErrorlogConfig ¶ added in v0.0.21
type ErrorlogConfig struct {
Email string `json:"email"`
}
type FSConfig ¶
type FSConfig struct { Provider string `json:"provider"` AuthenticationMethod string `json:"authenticationMethod"` TempDir string `json:"tempDir"` Dialect string `json:"dialect"` FilePath string `json:"filePath"` User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Port string `json:"port"` DBName string `json:"dbName"` Params map[string]string `json:"params"` MaxOpenConns int `json:"maxOpenConns"` MaxIdleConns int `json:"maxIdleConns"` ConnMaxLifetime string `json:"connMaxLifetime"` ConnMaxIdleTime string `json:"connMaxIdleTime"` }
type FilesConfig ¶
type HashpasswordCmd ¶
func HashpasswordCommand ¶
func HashpasswordCommand(args ...string) (*HashpasswordCmd, error)
func (*HashpasswordCmd) Run ¶
func (cmd *HashpasswordCmd) Run() error
type ObjectsConfig ¶
type PermissionsCmd ¶
type PermissionsCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer Username sql.NullString SiteName sql.NullString Grant bool Revoke bool SetOwner bool ShowID bool }
func PermissionsCommand ¶
func PermissionsCommand(nbrew *notebrew.Notebrew, args ...string) (*PermissionsCmd, error)
func (*PermissionsCmd) Run ¶
func (cmd *PermissionsCmd) Run() error
type ProxyConfig ¶
type ResetpasswordCmd ¶
type ResetpasswordCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer User string PasswordHash string ResetLink bool }
func ResetpasswordCommand ¶
func ResetpasswordCommand(nbrew *notebrew.Notebrew, args ...string) (*ResetpasswordCmd, error)
func (*ResetpasswordCmd) Run ¶
func (cmd *ResetpasswordCmd) Run() error
type SMTPConfig ¶
type StartCmd ¶
type StartCmd struct { Notebrew *notebrew.Notebrew Stdout io.Writer ConfigDir string Handler http.Handler }
func StartCommand ¶
type StatusCmd ¶
func StatusCommand ¶
Click to show internal directories.
Click to hide internal directories.