Documentation ¶
Index ¶
- type Deployer
- func (p *Deployer) Create(topoName string, templatePath string, inputs map[string]interface{}) (uint, error)
- func (p *Deployer) Install(topoId uint) error
- func (p *Deployer) Migrate(topoId uint, inputs map[string]interface{}) (uint, error)
- func (p *Deployer) Reload(topoId uint) error
- func (p *Deployer) Restart(topoId uint) error
- func (p *Deployer) Setup(topoId uint) error
- func (p *Deployer) Start(topoId uint) error
- func (p *Deployer) Stop(topoId uint) error
- func (p *Deployer) Uninstall(topoId uint) error
- type Monitor
- type PerformStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deployer ¶
type Deployer struct { DBService *db.DBService `inject:""` TemplateRep templaterep.TemplateRepository `inject:""` ClassRep classrep.ClassRepository `inject:""` Executor operation.Executor `inject:""` }
Deployer execute the deployment task.
func (*Deployer) Create ¶
func (p *Deployer) Create(topoName string, templatePath string, inputs map[string]interface{}) (uint, error)
Create a topology in db
func (*Deployer) Migrate ¶
Migrate a topology with topoId to a new topology. Update all inputs but continue to have the template of source topology.
Click to show internal directories.
Click to hide internal directories.