Documentation ¶
Index ¶
- type HandlerStub
- func (*HandlerStub) Enable() bool
- func (*HandlerStub) Group() string
- func (*HandlerStub) Name() string
- func (hs *HandlerStub) ProcessDelete(msg model.Message)
- func (hs *HandlerStub) ProcessInsert(msg model.Message)
- func (hs *HandlerStub) ProcessMessage(msg model.Message)
- func (hs *HandlerStub) SendToCloud(msg *model.Message)
- func (hs *HandlerStub) Start()
- func (hs *HandlerStub) WaitforMessage()
- type PodManager
- type UpstreamController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerStub ¶
type HandlerStub struct {
// contains filtered or unexported fields
}
HandlerStub definition
func (*HandlerStub) Enable ¶ added in v1.6.1
func (*HandlerStub) Enable() bool
func (*HandlerStub) ProcessDelete ¶
func (hs *HandlerStub) ProcessDelete(msg model.Message)
ProcessDelete message
func (*HandlerStub) ProcessInsert ¶
func (hs *HandlerStub) ProcessInsert(msg model.Message)
ProcessInsert message
func (*HandlerStub) ProcessMessage ¶
func (hs *HandlerStub) ProcessMessage(msg model.Message)
ProcessMessage based on the operation type
func (*HandlerStub) SendToCloud ¶ added in v1.6.1
func (hs *HandlerStub) SendToCloud(msg *model.Message)
SendToCloud sends message to cloudhub by edgehub
func (*HandlerStub) WaitforMessage ¶
func (hs *HandlerStub) WaitforMessage()
WaitforMessage is used to receive and process message
type PodManager ¶
type PodManager struct {
// contains filtered or unexported fields
}
PodManager is a manager watch pod change event
func (*PodManager) AddPod ¶
func (pm *PodManager) AddPod(k string, v types.FakePod)
AddPod adds pod in cache
func (*PodManager) DeletePod ¶
func (pm *PodManager) DeletePod(k string)
DeletePod deletes pod in cache
func (*PodManager) ListPods ¶
func (pm *PodManager) ListPods() []types.FakePod
ListPods lists all pods in cache
type UpstreamController ¶
type UpstreamController struct {
// contains filtered or unexported fields
}
UpstreamController sends message to edghub
func NewUpstreamController ¶
func NewUpstreamController(pm *PodManager) (*UpstreamController, error)
NewUpstreamController creates a upstream controller
func (*UpstreamController) SyncPods ¶
func (dc *UpstreamController) SyncPods()
SyncPods is used to send simulation messages to edgehub periodically
Click to show internal directories.
Click to hide internal directories.