Documentation
¶
Index ¶
- Constants
- type Component
- func (t *Component) GetInfo() module.ComponentInfo
- func (t *Component) Handle(_ context.Context, _ module.Handler, port string, _ any) module.Result
- func (t *Component) Instance() module.Component
- func (t *Component) OnControl(ctx context.Context, msg any) error
- func (t *Component) OnReconcile(ctx context.Context, node v1alpha1.TinyNode) error
- func (t *Component) OnSettings(_ context.Context, msg any) error
- func (t *Component) Ports() []module.Port
- type Context
- type ControlRunning
- type ControlStopped
- type Settings
Constants ¶
View Source
const ( ComponentName = "signal" OutPort string = "out" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
func (*Component) GetInfo ¶
func (t *Component) GetInfo() module.ComponentInfo
func (*Component) OnReconcile ¶ added in v0.2.0
OnReconcile restores send context from metadata and resumes any orphaned blocking call (pod restart while OutPort was still pending).
func (*Component) OnSettings ¶ added in v0.2.0
OnSettings receives Settings from the SettingsPort and marks settingsFromPort to suppress later reconciles from restoring stale data.
type ControlRunning ¶ added in v0.1.215
type ControlRunning struct {
Context Context `json:"context" required:"true" title:"Context" readonly:"true"`
Reset bool `json:"reset" format:"button" title:"Reset" required:"true"`
}
ControlRunning is the _control port schema when the signal is running
type ControlStopped ¶ added in v0.1.215
type ControlStopped struct {
Context Context `json:"context" required:"true" title:"Context"`
Send bool `json:"send" format:"button" title:"Send" required:"true"`
}
ControlStopped is the _control port schema when the signal is not running
Click to show internal directories.
Click to hide internal directories.