mode

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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)

func Worker

func Worker(ctx context.Context, appConfig *schema.GeneralConfig, hosts chan schema.Host, errors chan schema.Error)

Worker grabs devices to handle with configured handler from hosts channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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