Documentation ¶
Index ¶
- type Facade
- func (_m *Facade) GetServicesForScheduling(_a0 datastore.Context, _a1 []string) []*service.Service
- func (_m *Facade) GetTenantIDs(ctx datastore.Context) ([]string, error)
- func (_m *Facade) ScheduleServiceBatch(_a0 datastore.Context, _a1 []*servicestatemanager.CancellableService, ...) ([]string, error)
- func (_m *Facade) SetServicesCurrentState(ctx datastore.Context, currentState service.ServiceCurrentState, ...)
- func (_m *Facade) UpdateService(ctx datastore.Context, svc service.Service) error
- func (_m *Facade) WaitSingleService(_a0 *service.Service, _a1 service.DesiredState, _a2 <-chan interface{}) error
- type ServiceStateManager
- func (_m *ServiceStateManager) AddTenant(tenantID string) error
- func (_m *ServiceStateManager) RemoveTenant(tenantID string) error
- func (_m *ServiceStateManager) ScheduleServices(svcs []*service.Service, tenantID string, desiredState service.DesiredState, ...) error
- func (_m *ServiceStateManager) SyncCurrentStates(svcIDs []string)
- func (_m *ServiceStateManager) Wait(tenantID string)
- func (_m *ServiceStateManager) WaitScheduled(tenantID string, serviceIDs ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Facade ¶
Facade is an autogenerated mock type for the Facade type
func (*Facade) GetServicesForScheduling ¶
GetServicesForScheduling provides a mock function with given fields: _a0, _a1
func (*Facade) GetTenantIDs ¶
GetTenantIDs provides a mock function with given fields: ctx
func (*Facade) ScheduleServiceBatch ¶
func (_m *Facade) ScheduleServiceBatch(_a0 datastore.Context, _a1 []*servicestatemanager.CancellableService, _a2 string, _a3 service.DesiredState) ([]string, error)
ScheduleServiceBatch provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Facade) SetServicesCurrentState ¶
func (_m *Facade) SetServicesCurrentState(ctx datastore.Context, currentState service.ServiceCurrentState, serviceIDs ...string)
SetServicesCurrentState provides a mock function with given fields: ctx, currentState, serviceIDs
func (*Facade) UpdateService ¶
UpdateService provides a mock function with given fields: ctx, svc
func (*Facade) WaitSingleService ¶
func (_m *Facade) WaitSingleService(_a0 *service.Service, _a1 service.DesiredState, _a2 <-chan interface{}) error
WaitSingleService provides a mock function with given fields: _a0, _a1, _a2
type ServiceStateManager ¶
ServiceStateManager is an autogenerated mock type for the ServiceStateManager type
func (*ServiceStateManager) AddTenant ¶
func (_m *ServiceStateManager) AddTenant(tenantID string) error
AddTenant provides a mock function with given fields: tenantID
func (*ServiceStateManager) RemoveTenant ¶
func (_m *ServiceStateManager) RemoveTenant(tenantID string) error
RemoveTenant provides a mock function with given fields: tenantID
func (*ServiceStateManager) ScheduleServices ¶
func (_m *ServiceStateManager) ScheduleServices(svcs []*service.Service, tenantID string, desiredState service.DesiredState, emergency bool) error
ScheduleServices provides a mock function with given fields: svcs, tenantID, desiredState, emergency
func (*ServiceStateManager) SyncCurrentStates ¶
func (_m *ServiceStateManager) SyncCurrentStates(svcIDs []string)
SyncCurrentStates provides a mock function with given fields: svcIDs
func (*ServiceStateManager) Wait ¶
func (_m *ServiceStateManager) Wait(tenantID string)
Wait provides a mock function with given fields: tenantID
func (*ServiceStateManager) WaitScheduled ¶
func (_m *ServiceStateManager) WaitScheduled(tenantID string, serviceIDs ...string)
WaitScheduled provides a mock function with given fields: tenantID, serviceIDs