Documentation
¶
Index ¶
- Variables
- type InstanceManager
- func (m *InstanceManager) Add(instance api.BigBlueButtonInstance) error
- func (m *InstanceManager) Exists(instance api.BigBlueButtonInstance) (bool, error)
- func (m *InstanceManager) Get(URL string) (api.BigBlueButtonInstance, error)
- func (m *InstanceManager) List() ([]string, error)
- func (m *InstanceManager) ListInstances() ([]api.BigBlueButtonInstance, error)
- func (m *InstanceManager) Remove(URL string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ExistsFunc is the function that will be called when the mock instance manager is used. ExistsFunc func(instance api.BigBlueButtonInstance) (bool, error) // ListFunc is the function that will be called when the mock instance manager is used. ListFunc func() ([]string, error) // AddFunc is the function that will be called when the mock instance manager is used. AddFunc func(instance api.BigBlueButtonInstance) error // RemoveFunc is the function that will be called when the mock instance manager is used. RemoveFunc func(URL string) error // GetFunc is the function that will be called when the mock instance manager is used. GetFunc func(URL string) (api.BigBlueButtonInstance, error) // ListInstancesFunc is the function that will be called when the mock instance manager is used. ListInstancesFunc func() ([]api.BigBlueButtonInstance, error) )
Functions ¶
This section is empty.
Types ¶
type InstanceManager ¶
type InstanceManager struct{}
InstanceManager is a mock implementation of the InstanceManager interface.
func (*InstanceManager) Add ¶
func (m *InstanceManager) Add(instance api.BigBlueButtonInstance) error
Add is a mock implementation that adds a new instance.
func (*InstanceManager) Exists ¶
func (m *InstanceManager) Exists(instance api.BigBlueButtonInstance) (bool, error)
Exists is a mock implementation that returns true if the instance exists.
func (*InstanceManager) Get ¶
func (m *InstanceManager) Get(URL string) (api.BigBlueButtonInstance, error)
Get is a mock implementation that returns an instance.
func (*InstanceManager) List ¶
func (m *InstanceManager) List() ([]string, error)
List is a mock implementation that returns a list of all instances.
func (*InstanceManager) ListInstances ¶
func (m *InstanceManager) ListInstances() ([]api.BigBlueButtonInstance, error)
ListInstances is a mock implementation that returns all instances.
func (*InstanceManager) Remove ¶
func (m *InstanceManager) Remove(URL string) error
Remove is a mock implementation that removes an instance.
Click to show internal directories.
Click to hide internal directories.