Documentation
¶
Index ¶
Constants ¶
View Source
const OdooBaseURL = "https://github.com/odoo"
Variables ¶
This section is empty.
Functions ¶
func ReadConfValue ¶
Types ¶
type Branch ¶
type Branch struct {
Name string `json:"name"`
Version string `json:"version"`
Image string `json:"image"`
InstanceName string `json:"instance_name"`
Repos []string `json:"repos"`
BaselinePackages []string `json:"baseline_packages"`
Odoobase []string `json:"odoobase"`
}
func GetBranchLatest ¶
func GetBranchLatest() *Branch
func GetBranches ¶
func GetBranches() []*Branch
func GetVersion ¶
type OdaConf ¶
type OdaConf struct {
Database OdaDatabase `json:"database" yaml:"database"`
Dirs OdaDirs `json:"dirs" yaml:"dirs"`
Incus OdaIncus `json:"incus" yaml:"incus"`
System OdaSystem `json:"system" yaml:"system"`
}
func LoadOdaConfig ¶
func LoadOdaConfigUser ¶
func NewOdaConfig ¶
func NewOdaConfig() *OdaConf
type OdaDatabase ¶
type OdaProject ¶
type OdaProject struct {
Version string `json:"version"`
}
func LoadProjectConfig ¶
func LoadProjectConfig() (*OdaProject, error)
func (*OdaProject) WriteConfig ¶
func (p *OdaProject) WriteConfig(configPath string) error
type OdooConfig ¶
type OdooConfig struct {
AddonsPath []string `yaml:"addons_path"`
DataDir string `yaml:"data_dir"`
AdminPasswd string `yaml:"admin_passwd"`
WithoutDemo string `yaml:"without_demo"`
CsvInternalSep string `yaml:"csv_internal_sep"`
Reportgz string `yaml:"reportgz"`
ServerWideModules string `yaml:"server_wide_modules"`
DbHost string `yaml:"db_host"`
DbPort string `yaml:"db_port"`
DbMaxconn int `yaml:"db_maxconn"`
DbUser string `yaml:"db_user"`
DbPassword string `yaml:"db_password"`
DbName string `yaml:"db_name"`
DbTemplate string `yaml:"db_template"`
DbSslmode string `yaml:"db_sslmode"`
ListDb bool `yaml:"list_db"`
Proxy bool `yaml:"proxy"`
ProxyMode bool `yaml:"proxy_mode"`
Logfile string `yaml:"logfile"`
LogLevel string `yaml:"log_level"`
LogHandler string `yaml:"log_handler"`
Workers int `yaml:"workers"`
}
func BuildOdooConfig ¶
func BuildOdooConfig(kvals map[string]string) *OdooConfig
func LoadOdooConfig ¶
func LoadOdooConfig(cwd string) (*OdooConfig, error)
func NewOdooConfig ¶
func NewOdooConfig() *OdooConfig
Click to show internal directories.
Click to hide internal directories.