package
4.17.1+incompatible
Repository: https://github.com/lftakakura/maestro.git
Documentation: pkg.go.dev
# Functions
ContainLogMessage validates that the specified log message exists in the given entries.
GetDefaultConfig returns the configuration at ./config/test.yaml.
JSONFor tests.
MockAnySetDescription mocks the set description call.
MockCountNumberOfVersions mocks the call to select how many versions are of a scheduler.
MockCreateRooms mocks the creation of rooms on redis.
MockCreateRoomsWithPorts mocks the creation of rooms on redis when scheduler has port range.
MockCreateScheduler mocks the creation of a scheduler.
MockDeleteOldVersions mocks the deletions of old versions.
MockDeleteRedisKey mocks a delete operation on redis.
MockGetCurrentOperationKey mocks get current operation on redis.
MockGetPortsFromPool mocks the function that chooses random ports to be used as HostPort in the pods.
MockGetRegisteredRooms mocks the call that gets all rooms on redis.
MockInsertIntoVersionsTable mocks insert into scheduler_versions table.
MockInsertScheduler inserts a new scheduler into database.
MockOperationManager mocks the redis operations of opManager.
MockOperationManagerStart mocks the start of operation.
MockPopulatePortPool mocks the InitAvailablePorts function.
MockRedisLock mocks a lock creation on redis.
MockRemoveRoomsFromRedis mocks the room creation from pod.
MockRemoveRoomStatusFromRedis removes room only from redis.
MockReturnRedisLock mocks the script that returns the lock.
MockSelectConfigYamls mocks the LoadSchedulers function.
MockSelectPreviousSchedulerVersion mocks the query that gets the scheduler before current one.
MockSelectScheduler selects a scheduler on database.
MockSelectSchedulerNames mocks the ListSchedulersNames function.
MockSelectSchedulerVersions mocks the select to list scheduler versions.
MockSelectYaml mocks the select of yaml from database.
MockSelectYamlWithVersion mocks the select of a yaml version.
MockSetDescription mocks the set description call.
MockStdout to read result from tests.
MockUpdateSchedulersTable mocks update on schedulers table.
MockUpdateSchedulerStatus mocks the scheduler update query on database.
MockUpdateSchedulerStatusAndDo mocks the scheduler update query on database.
No description provided by the author
# Structs
No description provided by the author
DummyMiddleware implements http.Handler but does nothing.
FakeMetricsReporter is a fake metric reporter for testing.
# Type aliases
JSON test type.