mocks

package
v0.0.0-...-1c5d739 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

type Facade struct {
	mock.Mock
}

Facade is an autogenerated mock type for the Facade type

func (*Facade) GetServicesForScheduling

func (_m *Facade) GetServicesForScheduling(_a0 datastore.Context, _a1 []string) []*service.Service

GetServicesForScheduling provides a mock function with given fields: _a0, _a1

func (*Facade) GetTenantIDs

func (_m *Facade) GetTenantIDs(ctx datastore.Context) ([]string, error)

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

func (_m *Facade) UpdateService(ctx datastore.Context, svc service.Service) error

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

type ServiceStateManager struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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