Documentation ¶
Index ¶
- func AreYouSure(prompt string) bool
- func Copy(srcFile, dstFile string) error
- func CopyDirectory(scrDir, dest string) error
- func CopySymLink(source, dest string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func Exists(filePath string) bool
- func ExistsIn[T comparable](sliceList []T, value T) bool
- func GetFQDN() (fqdn, hostname, domain string)
- func GetOSVersion() string
- func GetOSVersionName() (osName string, osVersionID string, osVersionCodename string)
- func GetOdooBackups(project string) (backups, addons []string)
- func GetOdooBranchVersion(path string) (branch string, version string)
- func IsBool(s string) bool
- func IsInt(s string) bool
- func IsNumeric(s string) bool
- func ReadConfValue(conffile, key, def string) string
- func RemoveContents(dir string) error
- func RemoveDuplicate[T comparable](sliceList []T) []T
- func SelectOnly(sliceList []string, value string) []string
- 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 ODA
- func (o *ODA) AdminPassword() error
- func (o *ODA) AdminUsername() error
- func (o *ODA) Backup() error
- func (o *ODA) BaseCreate(version, localDomain string) error
- func (o *ODA) CaddyfileUpdate(domain string) error
- func (o *ODA) ConfigInit(localDomain string) error
- func (o *ODA) GetOdooConf() *ODA
- func (o *ODA) GetOdooConfig(version string) OdooConfig
- func (o *ODA) HostsUpdate(domain string) error
- func (o *ODA) InstanceAppInstallUpgrade(install bool, modules ...string) error
- func (o *ODA) Logs() error
- func (o *ODA) OdooRestart() error
- func (o *ODA) OdooStart() error
- func (o *ODA) OdooStop() error
- func (o *ODA) PGCatUpdate() error
- func (o *ODA) PSQL() error
- func (o *ODA) Query() error
- func (o *ODA) RepoUpdate() error
- func (o *ODA) Restore(any, move, full bool) error
- func (o *ODA) Scaffold(module string) error
- func (o *ODA) Trim(limit int, all bool) error
- func (o *ODA) UpdateUser() error
- func (o *ODA) Welcome() error
- type OdooConf
- type OdooConfig
- type OdooDB
- type OdooDatabase
- type QueryDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreYouSure ¶ added in v0.5.0
func CopyDirectory ¶ added in v0.5.0
func CopySymLink ¶ added in v0.5.0
func ExistsIn ¶ added in v0.5.3
func ExistsIn[T comparable](sliceList []T, value T) bool
existsIn searches list for value
func GetOSVersion ¶ added in v0.5.0
func GetOSVersion() string
func GetOSVersionName ¶ added in v0.5.4
func GetOdooBackups ¶
func GetOdooBranchVersion ¶ added in v0.5.4
func ReadConfValue ¶ added in v0.5.3
func RemoveContents ¶
func RemoveDuplicate ¶ added in v0.5.3
func RemoveDuplicate[T comparable](sliceList []T) []T
removeDuplicate Remove Duplicate Values from Slice
func SelectOnly ¶ added in v0.5.3
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 ODA ¶ added in v0.5.3
type ODA struct { Name string Usage string Version string EmbedFS embed.FS Q QueryDef OdooRepos []string OdooVersions []string OdooDatabase OdooDatabase OdooConfigs []OdooConfig OdooConf OdooConf }
func (*ODA) AdminPassword ¶ added in v0.5.3
func (*ODA) AdminUsername ¶ added in v0.5.3
func (*ODA) BaseCreate ¶ added in v0.5.3
func (*ODA) CaddyfileUpdate ¶ added in v0.5.3
func (*ODA) ConfigInit ¶ added in v0.5.3
func (*ODA) GetOdooConf ¶ added in v0.5.3
func (*ODA) GetOdooConfig ¶ added in v0.5.3
func (o *ODA) GetOdooConfig(version string) OdooConfig
func (*ODA) HostsUpdate ¶ added in v0.5.3
func (*ODA) InstanceAppInstallUpgrade ¶ added in v0.5.3
func (*ODA) OdooRestart ¶ added in v0.5.3
func (*ODA) PGCatUpdate ¶ added in v0.5.5
func (*ODA) RepoUpdate ¶ added in v0.5.3
func (*ODA) UpdateUser ¶ added in v0.5.3
type OdooConfig ¶ added in v0.5.0
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 ¶
type OdooDatabase ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.