Documentation
¶
Index ¶
- Constants
- type Component
- func (t *Component) GetInfo() module.ComponentInfo
- func (t *Component) Handle(_ context.Context, _ module.Handler, port string, _ any) any
- func (t *Component) Instance() module.Component
- func (t *Component) OnControl(ctx context.Context, msg any) error
- func (t *Component) OnDestroy(_ map[string]string)
- 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 ¶
const ( ComponentName = "ticker" 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) Handle ¶
Handle is unreachable for ticker — every port the component declares is either system (dispatched via capabilities) or source (emit-only). The stub guards against accidental routing.
func (*Component) OnReconcile ¶ added in v0.2.0
OnReconcile restores running state from node metadata if a previous instance was emitting before pod restart.
func (*Component) OnSettings ¶ added in v0.2.0
OnSettings receives settings from the SettingsPort. Marks settingsFromPort so a later reconcile won't restore stale metadata over fresh values. Preserves the existing in-memory Context if a control click set it before the CRD-driven settings catch up.
type ControlRunning ¶ added in v0.1.215
type ControlRunning struct {
Context Context `json:"context" required:"true" title:"Context" readonly:"true"`
Status string `json:"status" title:"Status" readonly:"true"`
Stop bool `json:"stop" format:"button" title:"Stop" required:"true"`
}
ControlRunning is the _control port schema when the ticker is running
type ControlStopped ¶ added in v0.1.215
type ControlStopped struct {
Context Context `json:"context" required:"true" title:"Context"`
Status string `json:"status" title:"Status" readonly:"true"`
Start bool `json:"start" format:"button" title:"Start" required:"true"`
}
ControlStopped is the _control port schema when the ticker is not running