Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaintenanceResponse ¶
type MaintenanceService ¶
type MaintenanceService struct { natsservice.NatsService Config MaintenanceServiceConfig // contains filtered or unexported fields }
func NewMaintenanceService ¶
func NewMaintenanceService(config MaintenanceServiceConfig, heartbeatService *heartbeat.HeartbeatSender) *MaintenanceService
NewMaintenanceService creates a new MaintenanceService
func (MaintenanceService) Run ¶
func (svc MaintenanceService) Run(ctx context.Context, params ...interface{}) error
func (*MaintenanceService) StartMaintenance ¶
func (svc *MaintenanceService) StartMaintenance(startParams *MaintenanceStartParams) error
type MaintenanceServiceConfig ¶
type MaintenanceServiceConfig struct { SSHServer string `json:"ssh_server"` SSHPort int `json:"ssh_port"` SSHUser string `json:"ssh_user"` SSHPassword string `json:"ssh_password"` SSHKeyPath string `json:"ssh_key_path"` }
MaintenanceServiceConfig is the structure of the configuration for the MaintenanceService
type MaintenanceStartParams ¶
type MaintenanceStartParams struct {
Port int `json:"port"`
}
MaintenanceStartParams is the structure of the event com.plugis.maintenance.start
Click to show internal directories.
Click to hide internal directories.