mock

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

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

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

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.

Jump to

Keyboard shortcuts

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