Documentation ¶
Index ¶
- Constants
- type Event
- type EventBus
- type EventOption
- func WithArg(val string) EventOption
- func WithArgs(args []string) EventOption
- func WithData(data map[string]string) EventOption
- func WithExitCode(code int) EventOption
- func WithKeyPair(key string, val string) EventOption
- func WithName(name string) EventOption
- func WithSource(source string) EventOption
- func WithSourcePlugin(plug *plugin.Plugin) EventOption
- func WithTarget(target string) EventOption
- type IEventBus
- type IListener
Constants ¶
View Source
const ( InternalNamespace = "keds" PluginNamespace = "plugin" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { *pb.PluginEvent SourcePlugin *plugin.Plugin }
func CreateEventServerQuit ¶
func NewEventWithOptions ¶
func NewEventWithOptions(opts ...EventOption) *Event
func (*Event) ApplyOptions ¶
func (e *Event) ApplyOptions(opts ...EventOption)
func (*Event) Proto ¶
func (e *Event) Proto() *pb.PluginEvent
type EventBus ¶
type EventBus struct {
// contains filtered or unexported fields
}
func NewEventBus ¶
func NewEventBus() *EventBus
func (*EventBus) AddListener ¶
type EventOption ¶
type EventOption func(e *Event)
func WithArg ¶
func WithArg(val string) EventOption
func WithArgs ¶
func WithArgs(args []string) EventOption
func WithData ¶
func WithData(data map[string]string) EventOption
func WithExitCode ¶
func WithExitCode(code int) EventOption
func WithKeyPair ¶
func WithKeyPair(key string, val string) EventOption
func WithName ¶
func WithName(name string) EventOption
func WithSource ¶
func WithSource(source string) EventOption
func WithSourcePlugin ¶
func WithSourcePlugin(plug *plugin.Plugin) EventOption
func WithTarget ¶
func WithTarget(target string) EventOption
Click to show internal directories.
Click to hide internal directories.