semantic_legacy

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPartialMockEnv

func NewPartialMockEnv(baseCtx context.Context, wg *sync.WaitGroup, startConfig config.Config, t *testing.T) (config config.Config, ctrl *controller.Controller, prod *producer.Producer, err error)

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)

func (VoidProducerMock) SendDone added in v0.0.11

func (v VoidProducerMock) SendDone(msg donewait.DoneMsg) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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