server

package
v0.4.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminBackup

func AdminBackup() error

func AdminPassword

func AdminPassword() error

func AdminRestore

func AdminRestore(any, move, full bool) error

AdminRestore Restore from backup file

func AdminUsername

func AdminUsername() error

func CaddyfileUpdate

func CaddyfileUpdate(domain string) error

func GetOdooBackups

func GetOdooBackups(project string) (backups, addons []string)

func GetOdooConf

func GetOdooConf(cwd, key string) string

func HostsUpdate

func HostsUpdate(domain string) error

func InstanceAppInstallUpgrade

func InstanceAppInstallUpgrade(install bool, modules ...string) error

func InstanceLogs

func InstanceLogs() error

func RemoveContents

func RemoveContents(dir string) error

func ServiceRestart

func ServiceRestart() error

func ServiceStart

func ServiceStart() error

func ServiceStop

func ServiceStop() error

func Trim

func Trim(limit int, all bool) error

Trim database backups

Types

type Database

type Database struct {
	Hostname string `json:"hostname,omitempty"`
	Port     int    `json:"port,omitempty"`
	Database string `json:"database,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	URI      string `json:"uri,omitempty"`
	*sqlx.DB
}

Database struct contains sql pointer

func OpenDatabase

func OpenDatabase(db Database) (*Database, error)

OpenDatabase open database

func (*Database) ActivateModuleUpdateNotificationCron

func (db *Database) ActivateModuleUpdateNotificationCron() error

func (*Database) ActivateNeutralizationWatermarks

func (db *Database) ActivateNeutralizationWatermarks() error

func (*Database) ChangeDBUUID

func (db *Database) ChangeDBUUID() error

func (*Database) DeactivateCrons

func (db *Database) DeactivateCrons() error

func (*Database) DeactivateMailServers

func (db *Database) DeactivateMailServers() error

func (*Database) DeleteOCNProjectUUID

func (db *Database) DeleteOCNProjectUUID() error

func (*Database) DeleteWebsiteDomains

func (db *Database) DeleteWebsiteDomains() error

func (*Database) DisableBankSync

func (db *Database) DisableBankSync() error

func (*Database) DisableCDN

func (db *Database) DisableCDN() error

func (*Database) DisableDeliveryCarriers

func (db *Database) DisableDeliveryCarriers() error

func (*Database) DisableFetchmail

func (db *Database) DisableFetchmail() error

func (*Database) DisableIAPAccount

func (db *Database) DisableIAPAccount() error

func (*Database) DisableMailTemplate

func (db *Database) DisableMailTemplate() error

func (*Database) DisablePaymentGeneric

func (db *Database) DisablePaymentGeneric() error

func (*Database) DisableProdDeliveryCarriers

func (db *Database) DisableProdDeliveryCarriers() error

func (*Database) GetURI

func (db *Database) GetURI()

GenURI generate db uri string

func (*Database) RemoveEnterpriseCode

func (db *Database) RemoveEnterpriseCode() error

func (*Database) RemoveFacebookTokens

func (db *Database) RemoveFacebookTokens() error

func (*Database) RemoveIRLogging

func (db *Database) RemoveIRLogging() error

func (*Database) RemoveInstagramTokens

func (db *Database) RemoveInstagramTokens() error

func (*Database) RemoveLinkedInTokens

func (db *Database) RemoveLinkedInTokens() error

func (*Database) RemoveMapBoxToken

func (db *Database) RemoveMapBoxToken() error

func (*Database) RemoveTwitterTokens

func (db *Database) RemoveTwitterTokens() error

func (*Database) RemoveYoutubeTokens

func (db *Database) RemoveYoutubeTokens() error

func (*Database) UnsetFirebase

func (db *Database) UnsetFirebase() error

func (*Database) UpdateDatabaseExpirationDate

func (db *Database) UpdateDatabaseExpirationDate() error

type OdooDB

type OdooDB struct {
	Hostname string `json:"hostname,omitempty"`
	Port     string `json:"port,omitempty"`
	Database string `json:"database,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Template string `json:"template,omitempty"`
}

func (*OdooDB) CreateDatabase

func (o *OdooDB) CreateDatabase() error

func (*OdooDB) DropDatabase

func (o *OdooDB) DropDatabase() error

func (*OdooDB) RestoreDatabase

func (o *OdooDB) RestoreDatabase(source string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL