dapp

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2019 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dapp

type Dapp struct {
	Role       string
	Path       string
	Source     string
	Controller *InstallerEntity
	Gui        *InstallerEntity
	DBEngine   *dbengine.DBEngine
	TempPath   string
	BackupPath string
	Version    string
	Tor        *tor.Tor
	UserID     string
	Timeout    uint64 // in seconds
	OnlyCore   bool
	Product    string
	Verbose    bool
}

Dapp has a config for dapp core.

func NewDapp

func NewDapp() *Dapp

NewDapp creates a default Dapp configuration.

func (*Dapp) Configurate

func (d *Dapp) Configurate() error

Configurate configurates installed dapp.

func (*Dapp) Download

func (d *Dapp) Download() string

Download downloads dapp and returns temporary download path.

func (*Dapp) Exists

func (d *Dapp) Exists() error

Exists returns existing dapp in the host.

func (*Dapp) ReadConfig

func (d *Dapp) ReadConfig() error

ReadConfig reads dappctrl configuration file.

func (*Dapp) Remove

func (d *Dapp) Remove() error

Remove removes installed dapp core.

func (*Dapp) Stop

func (d *Dapp) Stop(ch chan bool)

Stop stops dappctrl and debengine service.

func (*Dapp) Update

func (d *Dapp) Update(oldDapp *Dapp) error

Update updates the dapp core.

type InstallerEntity

type InstallerEntity struct {
	DisplayName   string
	EntryPoint    string
	Configuration string
	Service       *service
	Settings      map[string]interface{}
}

InstallerEntity has a config for install entity.

Jump to

Keyboard shortcuts

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