Documentation ¶
Index ¶
- func NewPartialMockEnv(baseCtx context.Context, wg *sync.WaitGroup, startConfig config.Config, ...) (config config.Config, ctrl *controller.Controller, prod *producer.Producer, ...)
- type SecurityMock
- type VoidProducerMock
- func (v VoidProducerMock) PublishAspectDelete(id string, owner string) error
- func (v VoidProducerMock) PublishAspectUpdate(aspect models.Aspect, owner string) error
- func (v VoidProducerMock) PublishDeviceDelete(id string, owner string) error
- func (v VoidProducerMock) PublishHub(hub models.Hub) (err error)
- func (v VoidProducerMock) SendDone(msg donewait.DoneMsg) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SecurityMock ¶
type SecurityMock struct{}
func (SecurityMock) CheckBool ¶
func (s SecurityMock) CheckBool(token string, kind string, id string, action model.AuthAction) (allowed bool, err error)
func (SecurityMock) CheckMultiple ¶
func (s SecurityMock) CheckMultiple(token string, kind string, ids []string, action model.AuthAction) (result map[string]bool, err error)
type VoidProducerMock ¶
type VoidProducerMock struct{}
func (VoidProducerMock) PublishAspectDelete ¶
func (v VoidProducerMock) PublishAspectDelete(id string, owner string) error
func (VoidProducerMock) PublishAspectUpdate ¶
func (v VoidProducerMock) PublishAspectUpdate(aspect models.Aspect, owner string) error
func (VoidProducerMock) PublishDeviceDelete ¶
func (v VoidProducerMock) PublishDeviceDelete(id string, owner string) error
func (VoidProducerMock) PublishHub ¶
func (v VoidProducerMock) PublishHub(hub models.Hub) (err error)
Click to show internal directories.
Click to hide internal directories.