Documentation ¶
Index ¶
- Constants
- type ApiError
- type BackupInfo
- type ExportedConfig
- type Info
- type Launcher
- func (t *Launcher) AddServiceFlags(cmd *cobra.Command) error
- func (t *Launcher) Apply() error
- func (t *Launcher) Attach() error
- func (t *Launcher) BackupTo(ctx context.Context, location string) error
- func (t *Launcher) Cleanup(ctx context.Context) error
- func (t *Launcher) Close()
- func (t *Launcher) Create(ctx context.Context) error
- func (t *Launcher) Down(ctx context.Context) error
- func (t *Launcher) Gen(ctx context.Context) error
- func (t *Launcher) GenConfigJson() error
- func (t *Launcher) GenDockerComposeYaml() error
- func (t *Launcher) GetBackupDir() string
- func (t *Launcher) GetDataDir() string
- func (t *Launcher) GetExternalIp() string
- func (t *Launcher) GetInfo() Info
- func (t *Launcher) GetNetwork() types.Network
- func (t *Launcher) GetNetworkDir() string
- func (t *Launcher) GetService(name string) (types.Service, error)
- func (t *Launcher) Pull(ctx context.Context) error
- func (t *Launcher) Restart(ctx context.Context) error
- func (t *Launcher) Run() error
- func (t *Launcher) Setup(ctx context.Context, pull bool) error
- func (t *Launcher) Start(ctx context.Context) error
- func (t *Launcher) Status(ctx context.Context, name string) (string, error)
- func (t *Launcher) Stop(ctx context.Context) error
- func (t *Launcher) Update(ctx context.Context)
- func (t *Launcher) UsingDefaultPassword() bool
- type Request
- type ServiceConfig
- type WalletsInfo
Constants ¶
View Source
const ( DefaultWalletPassword = "OpenDEX!Rocks" ServiceStuckThreshold = 100 StatusQueryInterval = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupInfo ¶
type ExportedConfig ¶
type ExportedConfig struct { Timestamp string `json:"timestamp"` Network string `json:"network"` Services []ServiceConfig `json:"services"` }
type Info ¶
type Info struct { Wallets WalletsInfo `json:"wallets"` Backup BackupInfo `json:"backup"` }
type Launcher ¶
type Launcher struct { Logger *logrus.Entry Services map[string]types.Service ServicesOrder []string ServicesConfig map[string]interface{} HomeDir string Network types.Network NetworkDir string DataDir string LogsDir string BackupDir string DefaultBackupDir string DockerComposeFile string ConfigFile string PasswordUnsetMarker string ExternalIp string LogFile *os.File // contains filtered or unexported fields }
func NewLauncher ¶
func (*Launcher) GenConfigJson ¶
func (*Launcher) GenDockerComposeYaml ¶
func (*Launcher) GetBackupDir ¶
func (*Launcher) GetDataDir ¶
func (*Launcher) GetExternalIp ¶
func (*Launcher) GetNetwork ¶
func (*Launcher) GetNetworkDir ¶
func (*Launcher) UsingDefaultPassword ¶
type ServiceConfig ¶
type WalletsInfo ¶
Click to show internal directories.
Click to hide internal directories.