mocks

package
v0.0.0-...-ceb5cd5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertService

type AlertService struct {
	mock.Mock
}

AlertService is an autogenerated mock type for the AlertService type

func (*AlertService) Delete

func (_m *AlertService) Delete(alert models.Alert, authorEmail string) error

Delete provides a mock function with given fields: alert, authorEmail

func (*AlertService) FindByID

func (_m *AlertService) FindByID(id uint) (*models.Alert, error)

FindByID provides a mock function with given fields: id

func (*AlertService) List

func (_m *AlertService) List(_a0 string) ([]*models.Alert, error)

List provides a mock function with given fields: _a0

func (*AlertService) Save

func (_m *AlertService) Save(alert models.Alert, authorEmail string) (*models.Alert, error)

Save provides a mock function with given fields: alert, authorEmail

func (*AlertService) Update

func (_m *AlertService) Update(alert models.Alert, authorEmail string) error

Update provides a mock function with given fields: alert, authorEmail

type CryptoService

type CryptoService struct {
	mock.Mock
}

CryptoService implements CryptoService interface

func (*CryptoService) Decrypt

func (cs *CryptoService) Decrypt(cipher string) (string, error)

Decrypt implements CryptoService.Decrypt

func (*CryptoService) Encrypt

func (cs *CryptoService) Encrypt(text string) (string, error)

Encrypt implements CryptoService.Encrypt

type DeploymentService

type DeploymentService struct {
	mock.Mock
}

DeploymentService is an autogenerated mock type for the DeploymentService type

func (*DeploymentService) DeleteRouterEndpoint

func (_m *DeploymentService) DeleteRouterEndpoint(project *client.Project, environment *merlin_apiclient.Environment, routerVersion *models.RouterVersion) error

DeleteRouterEndpoint provides a mock function with given fields: project, environment, routerVersion

func (*DeploymentService) DeployRouterVersion

func (_m *DeploymentService) DeployRouterVersion(project *client.Project, environment *merlin_apiclient.Environment, routerVersion *models.RouterVersion, routerServiceAccountKey string, enricherServiceAccountKey string, ensemblerServiceAccountKey string, experimentConfig json.RawMessage, experimentPasskey string, eventsCh *utils.EventChannel) (string, error)

DeployRouterVersion provides a mock function with given fields: project, environment, routerVersion, routerServiceAccountKey, enricherServiceAccountKey, ensemblerServiceAccountKey, experimentConfig, experimentPasskey, eventsCh

func (*DeploymentService) UndeployRouterVersion

func (_m *DeploymentService) UndeployRouterVersion(project *client.Project, environment *merlin_apiclient.Environment, routerVersion *models.RouterVersion, eventsCh *utils.EventChannel) error

UndeployRouterVersion provides a mock function with given fields: project, environment, routerVersion, eventsCh

type EventService

type EventService struct {
	mock.Mock
}

EventService is an autogenerated mock type for the EventService type

func (*EventService) ClearEvents

func (_m *EventService) ClearEvents(routerID int) error

ClearEvents provides a mock function with given fields: routerID

func (*EventService) ListEvents

func (_m *EventService) ListEvents(routerID int) ([]*models.Event, error)

ListEvents provides a mock function with given fields: routerID

func (*EventService) Save

func (_m *EventService) Save(event *models.Event) error

Save provides a mock function with given fields: event

type ExperimentsService

type ExperimentsService struct {
	mock.Mock
}

ExperimentsService is an autogenerated mock type for the ExperimentsService type

func (*ExperimentsService) GetExperimentRunnerConfig

func (_m *ExperimentsService) GetExperimentRunnerConfig(engine string, cfg *manager.TuringExperimentConfig) (json.RawMessage, error)

GetExperimentRunnerConfig provides a mock function with given fields: engine, cfg

func (*ExperimentsService) ListClients

func (_m *ExperimentsService) ListClients(engine string) ([]manager.Client, error)

ListClients provides a mock function with given fields: engine

func (*ExperimentsService) ListEngines

func (_m *ExperimentsService) ListEngines() []manager.Engine

ListEngines provides a mock function with given fields:

func (*ExperimentsService) ListExperiments

func (_m *ExperimentsService) ListExperiments(engine string, clientID string) ([]manager.Experiment, error)

ListExperiments provides a mock function with given fields: engine, clientID

func (*ExperimentsService) ListVariables

func (_m *ExperimentsService) ListVariables(engine string, clientID string, experimentIDs []string) (manager.Variables, error)

ListVariables provides a mock function with given fields: engine, clientID, experimentIDs

func (*ExperimentsService) ValidateExperimentConfig

func (_m *ExperimentsService) ValidateExperimentConfig(engine string, cfg manager.TuringExperimentConfig) error

ValidateExperimentConfig provides a mock function with given fields: engine, cfg

type MLPService

type MLPService struct {
	mock.Mock
}

MLPService implements the MLPService interface

func (*MLPService) GetEnvironment

func (m *MLPService) GetEnvironment(name string) (*merlin.Environment, error)

GetEnvironment satisfies the MLPService interface

func (*MLPService) GetEnvironments

func (m *MLPService) GetEnvironments() ([]merlin.Environment, error)

GetEnvironments satisfies the MLPService interface

func (*MLPService) GetProject

func (m *MLPService) GetProject(id int) (*mlp.Project, error)

GetProject satisfies the MLPService interface

func (*MLPService) GetSecret

func (m *MLPService) GetSecret(projectID int, name string) (string, error)

GetSecret satisfies the MLPService interface

type PodLogService

type PodLogService struct {
	mock.Mock
}

PodLogService is an autogenerated mock type for the PodLogService type

func (*PodLogService) ListPodLogs

func (_m *PodLogService) ListPodLogs(project *client.Project, router *models.Router, routerVersion *models.RouterVersion, componentType string, opts *service.PodLogOptions) ([]*service.PodLog, error)

ListPodLogs provides a mock function with given fields: project, router, routerVersion, componentType, opts

type RouterVersionsService

type RouterVersionsService struct {
	mock.Mock
}

RouterVersionsService is an autogenerated mock type for the RouterVersionsService type

func (*RouterVersionsService) Delete

func (_m *RouterVersionsService) Delete(routerVersion *models.RouterVersion) error

Delete provides a mock function with given fields: routerVersion

func (*RouterVersionsService) FindByID

func (_m *RouterVersionsService) FindByID(routerVersionID uint) (*models.RouterVersion, error)

FindByID provides a mock function with given fields: routerVersionID

func (*RouterVersionsService) FindByRouterIDAndVersion

func (_m *RouterVersionsService) FindByRouterIDAndVersion(routerID uint, version uint) (*models.RouterVersion, error)

FindByRouterIDAndVersion provides a mock function with given fields: routerID, version

func (*RouterVersionsService) FindLatestVersionbyRouterID

func (_m *RouterVersionsService) FindLatestVersionbyRouterID(routerID uint) (*models.RouterVersion, error)

FindLatestVersionbyRouterID provides a mock function with given fields: routerID

func (*RouterVersionsService) ListRouterVersions

func (_m *RouterVersionsService) ListRouterVersions(routerID uint) ([]*models.RouterVersion, error)

ListRouterVersions provides a mock function with given fields: routerID

func (*RouterVersionsService) ListRouterVersionsWithStatus

func (_m *RouterVersionsService) ListRouterVersionsWithStatus(routerID uint, status models.RouterVersionStatus) ([]*models.RouterVersion, error)

ListRouterVersionsWithStatus provides a mock function with given fields: routerID, status

func (*RouterVersionsService) Save

func (_m *RouterVersionsService) Save(routerVersion *models.RouterVersion) (*models.RouterVersion, error)

Save provides a mock function with given fields: routerVersion

type RoutersService

type RoutersService struct {
	mock.Mock
}

RoutersService is an autogenerated mock type for the RoutersService type

func (*RoutersService) Delete

func (_m *RoutersService) Delete(router *models.Router) error

Delete provides a mock function with given fields: router

func (*RoutersService) FindByID

func (_m *RoutersService) FindByID(routerID uint) (*models.Router, error)

FindByID provides a mock function with given fields: routerID

func (*RoutersService) FindByProjectAndEnvironmentAndName

func (_m *RoutersService) FindByProjectAndEnvironmentAndName(projectID int, environmentName string, routerName string) (*models.Router, error)

FindByProjectAndEnvironmentAndName provides a mock function with given fields: projectID, environmentName, routerName

func (*RoutersService) FindByProjectAndName

func (_m *RoutersService) FindByProjectAndName(projectID int, routerName string) (*models.Router, error)

FindByProjectAndName provides a mock function with given fields: projectID, routerName

func (*RoutersService) ListRouters

func (_m *RoutersService) ListRouters(projectID int, environmentName string) ([]*models.Router, error)

ListRouters provides a mock function with given fields: projectID, environmentName

func (*RoutersService) Save

func (_m *RoutersService) Save(router *models.Router) (*models.Router, error)

Save provides a mock function with given fields: router

Jump to

Keyboard shortcuts

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