internal

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2024 Peter Preeper

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

View Source
var Commit string
View Source
var OdooConfigs = []OdooConfig{
	{
		Name:         "15",
		Version:      "15.0",
		Image:        "ubuntu/22.04",
		InstanceName: "odoo-15-0",
		BaselinePackages: []string{
			"apt-transport-https", "apt-utils", "bzip2", "ca-certificates", "curl",
			"dirmngr", "git", "gnupg", "inetutils-ping", "libgnutls-dane0", "libgts-bin",
			"libpaper-utils", "locales", "lsb-release", "nodejs", "npm", "odaserver",
			"openssh-server", "postgresql-common", "python3", "python3-full",
			"shared-mime-info", "sudo", "unzip", "vim", "wget", "xz-utils", "zip", "zstd",
		},
		Odoobase: []string{
			"fonts-liberation", "fonts-noto", "fonts-noto-cjk", "fonts-noto-mono",
			"geoip-database", "gsfonts", "python3-babel", "python3-chardet",
			"python3-cryptography", "python3-cups", "python3-dateutil",
			"python3-decorator", "python3-docutils", "python3-feedparser",
			"python3-freezegun", "python3-geoip2", "python3-gevent", "python3-googleapi",
			"python3-greenlet", "python3-html2text", "python3-idna", "python3-jinja2",
			"python3-ldap", "python3-libsass", "python3-lxml", "python3-markupsafe",
			"python3-num2words", "python3-odf", "python3-ofxparse", "python3-olefile",
			"python3-openssl", "python3-paramiko", "python3-passlib", "python3-pdfminer",
			"python3-phonenumbers", "python3-pil", "python3-pip", "python3-polib",
			"python3-psutil", "python3-psycopg2", "python3-pydot", "python3-pylibdmtx",
			"python3-pyparsing", "python3-pypdf2", "python3-qrcode", "python3-renderpm",
			"python3-reportlab", "python3-reportlab-accel", "python3-requests",
			"python3-rjsmin", "python3-serial", "python3-setuptools", "python3-stdnum",
			"python3-tz", "python3-urllib3", "python3-usb", "python3-vobject",
			"python3-werkzeug", "python3-xlrd", "python3-xlsxwriter", "python3-xlwt",
			"python3-zeep",
		},
	},
	{
		Name:         "16",
		Version:      "16.0",
		Image:        "ubuntu/22.04",
		InstanceName: "odoo-16-0",
		BaselinePackages: []string{
			"apt-transport-https", "apt-utils", "bzip2", "ca-certificates", "curl",
			"dirmngr", "git", "gnupg", "inetutils-ping", "libgnutls-dane0", "libgts-bin",
			"libpaper-utils", "locales", "lsb-release", "nodejs", "npm", "odaserver",
			"openssh-server", "postgresql-common", "python3", "python3-full",
			"shared-mime-info", "sudo", "unzip", "vim", "wget", "xz-utils", "zip", "zstd",
		},
		Odoobase: []string{
			"fonts-liberation", "fonts-noto", "fonts-noto-cjk", "fonts-noto-mono",
			"geoip-database", "gsfonts", "python3-babel", "python3-chardet",
			"python3-cryptography", "python3-cups", "python3-dateutil",
			"python3-decorator", "python3-docutils", "python3-feedparser",
			"python3-freezegun", "python3-geoip2", "python3-gevent", "python3-googleapi",
			"python3-greenlet", "python3-html2text", "python3-idna", "python3-jinja2",
			"python3-ldap", "python3-libsass", "python3-lxml", "python3-markupsafe",
			"python3-num2words", "python3-odf", "python3-ofxparse", "python3-olefile",
			"python3-openssl", "python3-paramiko", "python3-passlib", "python3-pdfminer",
			"python3-phonenumbers", "python3-pil", "python3-pip", "python3-polib",
			"python3-psutil", "python3-psycopg2", "python3-pydot", "python3-pylibdmtx",
			"python3-pyparsing", "python3-pypdf2", "python3-qrcode", "python3-renderpm",
			"python3-reportlab", "python3-reportlab-accel", "python3-requests",
			"python3-rjsmin", "python3-serial", "python3-setuptools", "python3-stdnum",
			"python3-tz", "python3-urllib3", "python3-usb", "python3-vobject",
			"python3-werkzeug", "python3-xlrd", "python3-xlsxwriter", "python3-xlwt",
			"python3-zeep",
		},
	},
	{
		Name:         "17",
		Version:      "17.0",
		Image:        "ubuntu/22.04",
		InstanceName: "odoo-17-0",
		BaselinePackages: []string{
			"apt-transport-https", "apt-utils", "bzip2", "ca-certificates", "curl",
			"dirmngr", "git", "gnupg", "inetutils-ping", "libgnutls-dane0", "libgts-bin",
			"libpaper-utils", "locales", "lsb-release", "nodejs", "npm", "odaserver",
			"openssh-server", "postgresql-common", "python3", "python3-full",
			"shared-mime-info", "sudo", "unzip", "vim", "wget", "xz-utils", "zip", "zstd",
		},
		Odoobase: []string{
			"fonts-liberation", "fonts-noto", "fonts-noto-cjk", "fonts-noto-mono",
			"geoip-database", "gsfonts", "python3-babel", "python3-chardet",
			"python3-cryptography", "python3-cups", "python3-dateutil",
			"python3-decorator", "python3-docutils", "python3-feedparser",
			"python3-freezegun", "python3-geoip2", "python3-gevent", "python3-googleapi",
			"python3-greenlet", "python3-html2text", "python3-idna", "python3-jinja2",
			"python3-ldap", "python3-libsass", "python3-lxml", "python3-markupsafe",
			"python3-num2words", "python3-odf", "python3-ofxparse", "python3-olefile",
			"python3-openssl", "python3-paramiko", "python3-passlib", "python3-pdfminer",
			"python3-phonenumbers", "python3-pil", "python3-pip", "python3-polib",
			"python3-psutil", "python3-psycopg2", "python3-pydot", "python3-pylibdmtx",
			"python3-pyparsing", "python3-pypdf2", "python3-qrcode", "python3-renderpm",
			"python3-reportlab", "python3-reportlab-accel", "python3-requests",
			"python3-rjsmin", "python3-serial", "python3-setuptools", "python3-stdnum",
			"python3-tz", "python3-urllib3", "python3-usb", "python3-vobject",
			"python3-werkzeug", "python3-xlrd", "python3-xlsxwriter", "python3-xlwt",
			"python3-zeep",
		},
	},
	{
		Name:         "18",
		Version:      "18.0",
		Image:        "ubuntu/24.04",
		InstanceName: "odoo-18-0",
		BaselinePackages: []string{
			"apt-transport-https", "apt-utils", "bzip2", "ca-certificates", "curl",
			"dirmngr", "git", "gnupg", "inetutils-ping", "libgnutls-dane0", "libgts-bin",
			"libpaper-utils", "locales", "lsb-release", "nodejs", "npm", "odaserver",
			"openssh-server", "postgresql-common", "python3", "python3-full",
			"shared-mime-info", "sudo", "unzip", "vim", "wget", "xz-utils", "zip", "zstd",
		},
		Odoobase: []string{
			"fonts-liberation", "fonts-noto", "fonts-noto-cjk", "fonts-noto-mono",
			"geoip-database", "gsfonts", "python3-asn1crypto", "python3-babel",
			"python3-cbor2", "python3-chardet", "python3-cryptography", "python3-cups",
			"python3-dateutil", "python3-decorator", "python3-docutils",
			"python3-feedparser", "python3-freezegun", "python3-geoip2",
			"python3-gevent", "python3-googleapi", "python3-greenlet",
			"python3-html2text", "python3-idna", "python3-jinja2", "python3-ldap",
			"python3-libsass", "python3-lxml", "python3-lxml-html-clean",
			"python3-markupsafe", "python3-num2words", "python3-odf", "python3-ofxparse",
			"python3-olefile", "python3-openpyxl", "python3-openssl", "python3-paramiko",
			"python3-passlib", "python3-pdfminer", "python3-phonenumbers", "python3-pil",
			"python3-pip", "python3-polib", "python3-psutil", "python3-psycopg2",
			"python3-pydot", "python3-pylibdmtx", "python3-pyparsing", "python3-pypdf2",
			"python3-qrcode", "python3-renderpm", "python3-reportlab",
			"python3-rl-renderpm", "python3-reportlab-accel", "python3-requests",
			"python3-rjsmin", "python3-serial", "python3-setuptools", "python3-stdnum",
			"python3-tz", "python3-urllib3", "python3-usb", "python3-vobject",
			"python3-werkzeug", "python3-xlrd", "python3-xlsxwriter", "python3-xlwt",
			"python3-zeep",
		},
	},
}
View Source
var OdooDatabase = struct {
	Name    string `json:"name"`
	Version string `json:"version"`
	Image   string `json:"image"`
}{
	Name:    "db",
	Version: "17",
	Image:   "debian/12",
}
View Source
var OdooRepos = []string{"odoo", "enterprise", "design-themes", "industry"}
View Source
var OdooVersions = []string{"18.0", "17.0", "16.0", "15.0"}

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 AreYouSure added in v0.5.0

func AreYouSure(prompt string) bool

func BaseCreate added in v0.5.0

func BaseCreate(version, localDomain string)

func CaddyfileUpdate

func CaddyfileUpdate(domain string) error

func CloneUrlDir added in v0.5.0

func CloneUrlDir(url, baseDir, cloneDir, username, token string) error

func Copy added in v0.5.0

func Copy(srcFile, dstFile string) error

func CopyDirectory added in v0.5.0

func CopyDirectory(scrDir, dest string) error
func CopySymLink(source, dest string) error

func CreateIfNotExists added in v0.5.0

func CreateIfNotExists(dir string, perm os.FileMode) error

func Execute added in v0.5.0

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Exists added in v0.5.0

func Exists(filePath string) bool

func GetOSVersion added in v0.5.0

func GetOSVersion() string

func GetOdooBackups

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

func GetOdooConf

func GetOdooConf(key string) string

func HostsUpdate

func HostsUpdate(domain string) error

func InstanceAppInstallUpgrade

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

func IsBool added in v0.5.0

func IsBool(s string) bool

func IsInt added in v0.5.0

func IsInt(s string) bool

func IsNumeric added in v0.5.0

func IsNumeric(s string) bool

func RemoveContents

func RemoveContents(dir string) error

func RepoHeadShortCode added in v0.5.0

func RepoHeadShortCode(repo string) (string, error)

func RepoShortCodes added in v0.5.0

func RepoShortCodes(repo string) ([]string, error)

func Scaffold added in v0.5.0

func Scaffold(module string) error

func ServiceRestart

func ServiceRestart()

func ServiceStart

func ServiceStart()

func ServiceStop

func ServiceStop()

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 OdooConfig added in v0.5.0

type OdooConfig struct {
	Name             string   `json:"name"`
	Version          string   `json:"version"`
	Image            string   `json:"image"`
	InstanceName     string   `json:"instance_name"`
	BaselinePackages []string `json:"baseline_packages"`
	Odoobase         []string `json:"odoobase"`
}

func GetOdooConfig added in v0.5.0

func GetOdooConfig(version string) OdooConfig

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

type QueryDef added in v0.5.0

type QueryDef struct {
	Model    string
	Filter   string
	Offset   int
	Limit    int
	Fields   string
	Count    bool
	Username string
	Password string
}

Jump to

Keyboard shortcuts

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