Versions in this module Expand all Collapse all v1 v1.6.2 Sep 20, 2019 v1.6.1 Sep 20, 2019 Changes in this version + func ExecuteCommands(ctx context.Context, d Service, commands []schema.Command) (err error) + func GenerateCA(config *schema.GeneralConfig) error + func GenerateCerts(config *schema.GeneralConfig, subject string) error + type ApplicationStatus struct + func (app *ApplicationStatus) Get() int + func (app *ApplicationStatus) SetCode(status int) + type CopyFiler interface + CopyFile func(ctx context.Context, local, remote string) error + type GenericDevice struct + AppConfig *schema.GeneralConfig + Host schema.Host + func (d *GenericDevice) SetConfig(config *schema.GeneralConfig) + func (d *GenericDevice) SetHost(host schema.Host) + type HandlerFunc func(service Service) error + type MTAPI struct + func (d *MTAPI) Close() error + func (d *MTAPI) GetPasswords() []string + func (d *MTAPI) GetPort() string + func (d *MTAPI) GetUser() string + func (d *MTAPI) HandleSequence(ctx context.Context, handler HandlerFunc) error + func (d MTAPI) GetDevice() *GenericDevice + func (d MTAPI) RunCmd(body string, expect *regexp.Regexp) (result string, err error) + type NewServiceFunc func(config *schema.GeneralConfig, host schema.Host) Service + type SSH struct + func (d *SSH) Close() error + func (d *SSH) CopyFile(ctx context.Context, local, remote string) error + func (d *SSH) GetDevice() *GenericDevice + func (d *SSH) GetPasswords() []string + func (d *SSH) GetPort() string + func (d *SSH) GetUser() string + func (d *SSH) HandleSequence(ctx context.Context, handler HandlerFunc) (err error) + func (d *SSH) RunCmd(body string, expect *regexp.Regexp) (result string, err error) + type Service interface + Close func() error + GetDevice func() *GenericDevice + GetPasswords func() []string + GetPort func() string + GetUser func() string + HandleSequence func(ctx context.Context, handler HandlerFunc) error + RunCmd func(string, *regexp.Regexp) (string, error) + SetConfig func(*schema.GeneralConfig) + SetHost func(schema.Host) + func NewMTAPIService(config *schema.GeneralConfig, host schema.Host) Service + func NewSSHService(config *schema.GeneralConfig, host schema.Host) Service