Documentation ¶
Index ¶
- type Emitter
- func (e *Emitter) InstanceCreated(ctx context.Context, instance *instancev1.Instance) error
- func (e *Emitter) InstanceEnded(ctx context.Context, instance *instancev1.Instance) error
- func (e *Emitter) InstanceStateChanged(ctx context.Context, instance *instancev1.Instance, old json.RawMessage, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Emitter ¶
type Emitter struct {
// contains filtered or unexported fields
}
func NewEmitter ¶
NewEmitter creates an new Emitter that emitts events in the cloud event Kafka format to the configured Kafka brokers
func (*Emitter) InstanceCreated ¶
InstanceCreated emitts an InstanceCreatedEvent
func (*Emitter) InstanceEnded ¶
InstanceEnded emitts an InstanceEndedEvent
func (*Emitter) InstanceStateChanged ¶
func (e *Emitter) InstanceStateChanged( ctx context.Context, instance *instancev1.Instance, old json.RawMessage, new json.RawMessage, ) error
InstanceStateChanged emitts an InstanceStateChangedEvent
Click to show internal directories.
Click to hide internal directories.