Documentation ¶
Overview ¶
Package ssh is a generated GoMock package.
Index ¶
- func MakeHandler(service Service, logger kitlog.Logger, ml machineLearning.Service) http.Handler
- func NewCommand(store Store, stateStore telegram.Store, telegram telegram.Service) telegram.Command
- func NewSSHExecute(service Service, store Store, telegramStore telegram.Store, ...) telegram.Commandlet
- func NewSshSelectCommand(store Store, telegramStore telegram.Store, telegramService telegram.Service) telegram.Commandlet
- type MockService
- type MockServiceMockRecorder
- type Service
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeHandler ¶
MakeHandler retuns a http rest request handler for sensu the machine learning service can be nil if you do not wish to save the request message
func NewCommand ¶
func NewSSHExecute ¶
func NewSshSelectCommand ¶
Types ¶
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockService) ExecuteRemoteCommand ¶
func (m *MockService) ExecuteRemoteCommand(ctx context.Context, chatId uint32, commandName, address string) error
ExecuteRemoteCommand mocks base method
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService
func (*MockServiceMockRecorder) ExecuteRemoteCommand ¶
func (mr *MockServiceMockRecorder) ExecuteRemoteCommand(ctx, chatId, commandName, address interface{}) *gomock.Call
ExecuteRemoteCommand indicates an expected call of ExecuteRemoteCommand
type Service ¶
type Service interface { ExecuteRemoteCommand(ctx context.Context, chatId uint32, commandName, address string) error // contains filtered or unexported methods }
func NewInstrumentService ¶
type Store ¶
type Store interface {
// contains filtered or unexported methods
}
func NewMongoStore ¶
func NewMongoStore(db *mgo.Database) Store
Click to show internal directories.
Click to hide internal directories.