Documentation ¶
Index ¶
- func IsContainerExist(name string) bool
- func RemoveContainer(name string) error
- func RemoveDatabase(dataDir string) error
- func RemoveImageContainer() error
- func StartContainer(name string) error
- func StopContainer(name string) error
- func TestAvailability() error
- type APIClient
- type Config
- type Container
- type Database
- type Details
- type Metabase
- func (m *Metabase) DownloadDatabase(force bool) error
- func (m *Metabase) DumpConfig(path string) error
- func (m *Metabase) ExtractDatabase(buf *bytes.Reader) error
- func (m *Metabase) Init(containerName string) error
- func (m *Metabase) LoadConfig(configPath string) error
- func (m *Metabase) Login(username string, password string) error
- func (m *Metabase) ResetCredentials() error
- func (m *Metabase) ResetPassword(current string, new string) error
- func (m *Metabase) ResetUsername(username string) error
- func (m *Metabase) Scan() error
- func (m *Metabase) WaitAlive() error
- type Model
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsContainerExist ¶
func RemoveContainer ¶
func RemoveDatabase ¶
func RemoveImageContainer ¶
func RemoveImageContainer() error
func StartContainer ¶
func StopContainer ¶
func TestAvailability ¶ added in v1.1.0
func TestAvailability() error
Types ¶
type Config ¶
type Config struct { Database *csconfig.DatabaseCfg `yaml:"database"` ListenAddr string `yaml:"listen_addr"` ListenPort string `yaml:"listen_port"` ListenURL string `yaml:"listen_url"` Username string `yaml:"username"` Password string `yaml:"password"` DBPath string `yaml:"metabase_db_path"` DockerGroupID string `yaml:"-"` }
type Container ¶
type Container struct { ListenAddr string ListenPort string Image string Name string ID string CLI *client.Client MBDBUri string DockerGroupID string }
func NewContainer ¶
type Database ¶
type Database struct { DBUrl string Model *Model Config *csconfig.DatabaseCfg Client *APIClient Details *Details }
func NewDatabase ¶
type Details ¶
type Details struct { Db string `json:"db"` Host string `json:"host"` Port int `json:"port"` Dbname string `json:"dbname"` User string `json:"user"` Password string `json:"password"` Ssl bool `json:"ssl"` AdditionalOptions interface{} `json:"additional-options"` TunnelEnabled bool `json:"tunnel-enabled"` }
type Metabase ¶
type Metabase struct { Config *Config Client *APIClient Container *Container Database *Database InternalDBURL string }
func SetupMetabase ¶
func (*Metabase) DownloadDatabase ¶
func (*Metabase) DumpConfig ¶
func (*Metabase) LoadConfig ¶
func (*Metabase) ResetCredentials ¶
func (*Metabase) ResetUsername ¶
Click to show internal directories.
Click to hide internal directories.