Documentation ¶
Index ¶
- type Schedule
- func (s *Schedule) Destroy(name string) error
- func (s *Schedule) Install(component module.Component) error
- func (s *Schedule) Invoke(name string, port string, data []byte) (v1alpha1.TinyNodeStatus, error)
- func (s *Schedule) SetLogger(l logr.Logger) *Schedule
- func (s *Schedule) SetManager(m manager.ResourceInterface) *Schedule
- func (s *Schedule) Start(ctx context.Context, inputCh chan *runner.Msg, outsideCh chan *runner.Msg, ...) error
- func (s *Schedule) Upsert(node v1alpha1.TinyNode) (v1alpha1.TinyNodeStatus, error)
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
type Schedule struct {
// contains filtered or unexported fields
}
func (*Schedule) SetManager ¶ added in v0.1.25
func (s *Schedule) SetManager(m manager.ResourceInterface) *Schedule
type Scheduler ¶
type Scheduler interface { //Install makes component available for running nodes Install(component module.Component) error //Upsert creates a new instance by using unique name, if instance is already running - updates it Upsert(node v1alpha1.TinyNode) (v1alpha1.TinyNodeStatus, error) //Invoke sends data to the port of the given instance Invoke(name string, port string, data []byte) (v1alpha1.TinyNodeStatus, error) //Destroy stops the instance Destroy(name string) error //Start starts scheduler Start(ctx context.Context, inputCh chan *runner.Msg, outputCh chan *runner.Msg, callbacks ...tracker.Callback) error }
Click to show internal directories.
Click to hide internal directories.