Documentation ¶
Index ¶
- type AlertService
- func (_m *AlertService) Delete(alert models.Alert, authorEmail string) error
- func (_m *AlertService) FindByID(id uint) (*models.Alert, error)
- func (_m *AlertService) List(_a0 string) ([]*models.Alert, error)
- func (_m *AlertService) Save(alert models.Alert, authorEmail string) (*models.Alert, error)
- func (_m *AlertService) Update(alert models.Alert, authorEmail string) error
- type CryptoService
- type DeploymentService
- func (_m *DeploymentService) DeleteRouterEndpoint(project *client.Project, environment *merlin_apiclient.Environment, ...) error
- func (_m *DeploymentService) DeployRouterVersion(project *client.Project, environment *merlin_apiclient.Environment, ...) (string, error)
- func (_m *DeploymentService) UndeployRouterVersion(project *client.Project, environment *merlin_apiclient.Environment, ...) error
- type EventService
- type ExperimentsService
- func (_m *ExperimentsService) GetExperimentRunnerConfig(engine string, cfg *manager.TuringExperimentConfig) (json.RawMessage, error)
- func (_m *ExperimentsService) ListClients(engine string) ([]manager.Client, error)
- func (_m *ExperimentsService) ListEngines() []manager.Engine
- func (_m *ExperimentsService) ListExperiments(engine string, clientID string) ([]manager.Experiment, error)
- func (_m *ExperimentsService) ListVariables(engine string, clientID string, experimentIDs []string) (manager.Variables, error)
- func (_m *ExperimentsService) ValidateExperimentConfig(engine string, cfg manager.TuringExperimentConfig) error
- type MLPService
- type PodLogService
- type RouterVersionsService
- func (_m *RouterVersionsService) Delete(routerVersion *models.RouterVersion) error
- func (_m *RouterVersionsService) FindByID(routerVersionID uint) (*models.RouterVersion, error)
- func (_m *RouterVersionsService) FindByRouterIDAndVersion(routerID uint, version uint) (*models.RouterVersion, error)
- func (_m *RouterVersionsService) FindLatestVersionbyRouterID(routerID uint) (*models.RouterVersion, error)
- func (_m *RouterVersionsService) ListRouterVersions(routerID uint) ([]*models.RouterVersion, error)
- func (_m *RouterVersionsService) ListRouterVersionsWithStatus(routerID uint, status models.RouterVersionStatus) ([]*models.RouterVersion, error)
- func (_m *RouterVersionsService) Save(routerVersion *models.RouterVersion) (*models.RouterVersion, error)
- type RoutersService
- func (_m *RoutersService) Delete(router *models.Router) error
- func (_m *RoutersService) FindByID(routerID uint) (*models.Router, error)
- func (_m *RoutersService) FindByProjectAndEnvironmentAndName(projectID int, environmentName string, routerName string) (*models.Router, error)
- func (_m *RoutersService) FindByProjectAndName(projectID int, routerName string) (*models.Router, error)
- func (_m *RoutersService) ListRouters(projectID int, environmentName string) ([]*models.Router, error)
- func (_m *RoutersService) Save(router *models.Router) (*models.Router, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertService ¶
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
type CryptoService ¶
CryptoService implements CryptoService interface
type DeploymentService ¶
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 ¶
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
type ExperimentsService ¶
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 ¶
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
type PodLogService ¶
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 ¶
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 ¶
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