Documentation ¶
Index ¶
- func ChangePassword(ctx context.Context, newService service.NewServiceFunc, ...) error
- func CustomAPI(ctx context.Context, newService service.NewServiceFunc, ...) error
- func CustomSSH(ctx context.Context, newService service.NewServiceFunc, ...) error
- func ErrorCollector(appConfig *schema.GeneralConfig, errors chan schema.Error, ...)
- func InitSecureAPIHandler(ctx context.Context, newService service.NewServiceFunc, ...) error
- func Worker(ctx context.Context, appConfig *schema.GeneralConfig, hosts chan schema.Host, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
func ChangePassword(ctx context.Context, newService service.NewServiceFunc, config *schema.GeneralConfig, host schema.Host, newPass string) error
ChangePassword mode changes device's admin password.
func CustomAPI ¶
func CustomAPI(ctx context.Context, newService service.NewServiceFunc, config *schema.GeneralConfig, host schema.Host) error
CustomAPI executes custom sequence of commands using Mikrotik SSL API.
func CustomSSH ¶
func CustomSSH(ctx context.Context, newService service.NewServiceFunc, config *schema.GeneralConfig, host schema.Host) error
CustomSSH executes custom sequence of commands using SSH protocol.
func ErrorCollector ¶
func ErrorCollector(appConfig *schema.GeneralConfig, errors chan schema.Error, status *service.ApplicationStatus)
ErrorCollector collects and parde all errors produced by workers.
func InitSecureAPIHandler ¶
func InitSecureAPIHandler(ctx context.Context, newService service.NewServiceFunc, config *schema.GeneralConfig, host schema.Host) error
InitSecureAPIHandler mode initializes device for secure API usage (copies and sets up certificate)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.