Documentation ¶
Index ¶
- func CloneUrlDir(url, baseDir, cloneDir, username, token string) error
- 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 GetCurrentOdooProjects() []string
- func GetCurrentOdooProjectsUser(username string) []string
- func GetCurrentOdooRepos() []string
- func GetGitHubUsernameToken() (username, token string)
- func GetOdooBackups(project string) (backups, addons []string)
- func IsBool(s string) bool
- func IsInt(s string) bool
- func IsNumeric(s string) bool
- func IsProject() bool
- func RemoveContents(dir string) error
- func RepoHeadShortCode(repo string) (string, error)
- func RepoShortCodes(repo string) ([]string, error)
- func SSHConfigGenerate(project string) error
- type Database
- type ODA
- func (o *ODA) Backup() error
- func (o *ODA) BaseCreate() error
- func (o *ODA) BaseCreateScript(version string) error
- func (o *ODA) BaseDestroy() error
- func (o *ODA) BaseUpdate() error
- func (o *ODA) ConfigInit() error
- func (o *ODA) ConfigPyright() error
- func (o *ODA) ConfigVSCode() error
- func (o *ODA) DBCreateScript(version string) error
- func (o *ODA) DBEXEC() error
- func (o *ODA) DBFullReset() error
- func (o *ODA) DBLogs() error
- func (o *ODA) DBPSQL() error
- func (o *ODA) DBRestart() error
- func (o *ODA) DBStart() error
- func (o *ODA) DBStop() error
- func (o *ODA) HostsUpdate(domain string) error
- func (o *ODA) InstanceAppInstallUpgrade(install bool, modules ...string) error
- func (o *ODA) OdooBase() error
- func (o *ODA) OdooCreate() error
- func (o *ODA) OdooDestroy() error
- func (o *ODA) OdooExec(username string) error
- func (o *ODA) OdooLogs() error
- func (o *ODA) OdooPS() error
- func (o *ODA) OdooPSQL() error
- func (o *ODA) OdooRestart() error
- func (o *ODA) OdooStart() error
- func (o *ODA) OdooStop() error
- func (o *ODA) PSQL() error
- func (o *ODA) ProjectInit() error
- func (o *ODA) ProjectReset() error
- func (o *ODA) Query() error
- func (o *ODA) RepoBaseClone() error
- func (o *ODA) RepoBaseUpdate() error
- func (o *ODA) RepoBranchClone() error
- func (o *ODA) RepoBranchUpdate() error
- func (o *ODA) Restore(any, move, full bool) error
- func (o *ODA) Scaffold(module string) error
- func (o *ODA) UpdateUser() error
- func (o *ODA) Welcome() error
- type QueryDef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneUrlDir ¶
func CopyDirectory ¶
func CopySymLink ¶
func GetCurrentOdooProjects ¶
func GetCurrentOdooProjects() []string
GetCurrentOdooProjects Get Current Odoo Projects
func GetCurrentOdooProjectsUser ¶ added in v0.6.0
GetCurrentOdooProjects Get Current Odoo Projects
func GetCurrentOdooRepos ¶
func GetCurrentOdooRepos() []string
GetCurrentOdooRepos Get Currently Copied Odoo Repos
func GetGitHubUsernameToken ¶
func GetGitHubUsernameToken() (username, token string)
func GetOdooBackups ¶
GetCurrentOdooProjects Get Current Odoo Projects
func RemoveContents ¶
func RepoHeadShortCode ¶
func RepoShortCodes ¶
func SSHConfigGenerate ¶
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
type ODA ¶ added in v0.6.0
func (*ODA) BaseCreate ¶ added in v0.6.0
func (*ODA) BaseCreateScript ¶ added in v0.6.0
base odoo image
func (*ODA) BaseDestroy ¶ added in v0.6.0
func (*ODA) BaseUpdate ¶ added in v0.6.0
func (*ODA) ConfigInit ¶ added in v0.6.0
func (*ODA) ConfigPyright ¶ added in v0.6.0
func (*ODA) ConfigVSCode ¶ added in v0.6.0
func (*ODA) DBCreateScript ¶ added in v0.6.0
func (*ODA) DBFullReset ¶ added in v0.6.0
func (*ODA) HostsUpdate ¶ added in v0.6.0
func (*ODA) InstanceAppInstallUpgrade ¶ added in v0.6.0
func (*ODA) OdooCreate ¶ added in v0.6.0
func (*ODA) OdooDestroy ¶ added in v0.6.0
OdooDestroy full instance destroy stop instance remove instance
func (*ODA) OdooExec ¶ added in v0.6.0
OdooExec execCmd.Flags().StringVarP(&username, "username", "u", "odoo", "username") calls into "incus exec <project> -t -- /bin/bash"
func (*ODA) OdooLogs ¶ added in v0.6.0
OdooLogs calls into "odas logs" calls into "incus exec <project> -t -- journalctl -f"
func (*ODA) OdooRestart ¶ added in v0.6.0
OdooRestart full instance restart incus restart <project>
func (*ODA) ProjectInit ¶ added in v0.6.0
ProjectInit build project directory based on prompts
func (*ODA) ProjectReset ¶ added in v0.6.0
#################################### ProjectReset reset project data directory and db stop instance drop instance db remove instance data directory contents
func (*ODA) RepoBaseClone ¶ added in v0.6.0
RepoBaseClone setup odoo,enterprise,design-themes,industry source repositories in repos/odoo directory
func (*ODA) RepoBaseUpdate ¶ added in v0.6.0
RepoBaseUpdate update odoo,enterprise,design-themes,industry source repositories in repos/odoo directory
func (*ODA) RepoBranchClone ¶ added in v0.6.0
RepoBranchClone setup odoo,enterprise,design-themes,industry branch repositories in repos/odoo directory repos/odoo/<branch> ex 17.0 > 17.0 repos/odoo/<branch> ex 17.2 > saas-17.2 mkdir -p repos/odoo/<branch> copy repos/odoo/{odoo,enterprise,design-themes,industry} to repos/odoo/<branch>/{odoo,enterprise,design-themes,industry} go to each directory and git checkout <branch>
func (*ODA) RepoBranchUpdate ¶ added in v0.6.0
RepoBranchUpdate update odoo,enterprise,design-themes,industry source repositories in repos/odoo/<branch> directory