Documentation ¶
Index ¶
- func AdminBackup() error
- func AdminPassword() error
- func AdminRestore(any, move, full bool) error
- func AdminUsername() error
- func CaddyfileUpdate(domain string) error
- func GetOdooBackups(project string) (backups, addons []string)
- func GetOdooConf(cwd, key string) string
- func HostsUpdate(domain string) error
- func InstanceAppInstallUpgrade(install bool, modules ...string) error
- func InstanceLogs() error
- func RemoveContents(dir string) error
- func ServiceRestart() error
- func ServiceStart() error
- func ServiceStop() error
- func Trim(limit int, all bool) error
- type Database
- func (db *Database) ActivateModuleUpdateNotificationCron() error
- func (db *Database) ActivateNeutralizationWatermarks() error
- func (db *Database) ChangeDBUUID() error
- func (db *Database) DeactivateCrons() error
- func (db *Database) DeactivateMailServers() error
- func (db *Database) DeleteOCNProjectUUID() error
- func (db *Database) DeleteWebsiteDomains() error
- func (db *Database) DisableBankSync() error
- func (db *Database) DisableCDN() error
- func (db *Database) DisableDeliveryCarriers() error
- func (db *Database) DisableFetchmail() error
- func (db *Database) DisableIAPAccount() error
- func (db *Database) DisableMailTemplate() error
- func (db *Database) DisablePaymentGeneric() error
- func (db *Database) DisableProdDeliveryCarriers() error
- func (db *Database) GetURI()
- func (db *Database) RemoveEnterpriseCode() error
- func (db *Database) RemoveFacebookTokens() error
- func (db *Database) RemoveIRLogging() error
- func (db *Database) RemoveInstagramTokens() error
- func (db *Database) RemoveLinkedInTokens() error
- func (db *Database) RemoveMapBoxToken() error
- func (db *Database) RemoveTwitterTokens() error
- func (db *Database) RemoveYoutubeTokens() error
- func (db *Database) UnsetFirebase() error
- func (db *Database) UpdateDatabaseExpirationDate() error
- type OdooDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminBackup ¶
func AdminBackup() error
func AdminPassword ¶
func AdminPassword() error
func AdminRestore ¶
AdminRestore Restore from backup file
func AdminUsername ¶
func AdminUsername() error
func CaddyfileUpdate ¶
func GetOdooBackups ¶
func GetOdooConf ¶
func HostsUpdate ¶
func InstanceLogs ¶
func InstanceLogs() error
func RemoveContents ¶
func ServiceRestart ¶
func ServiceRestart() error
func ServiceStart ¶
func ServiceStart() error
func ServiceStop ¶
func ServiceStop() error
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 (*Database) ActivateModuleUpdateNotificationCron ¶
func (*Database) ActivateNeutralizationWatermarks ¶
func (*Database) ChangeDBUUID ¶
func (*Database) DeactivateCrons ¶
func (*Database) DeactivateMailServers ¶
func (*Database) DeleteOCNProjectUUID ¶
func (*Database) DeleteWebsiteDomains ¶
func (*Database) DisableBankSync ¶
func (*Database) DisableCDN ¶
func (*Database) DisableDeliveryCarriers ¶
func (*Database) DisableFetchmail ¶
func (*Database) DisableIAPAccount ¶
func (*Database) DisableMailTemplate ¶
func (*Database) DisablePaymentGeneric ¶
func (*Database) DisableProdDeliveryCarriers ¶
func (*Database) RemoveEnterpriseCode ¶
func (*Database) RemoveFacebookTokens ¶
func (*Database) RemoveIRLogging ¶
func (*Database) RemoveInstagramTokens ¶
func (*Database) RemoveLinkedInTokens ¶
func (*Database) RemoveMapBoxToken ¶
func (*Database) RemoveTwitterTokens ¶
func (*Database) RemoveYoutubeTokens ¶
func (*Database) UnsetFirebase ¶
func (*Database) UpdateDatabaseExpirationDate ¶
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 (*OdooDB) DropDatabase ¶
func (*OdooDB) RestoreDatabase ¶
Click to show internal directories.
Click to hide internal directories.