Documentation ¶
Index ¶
- type Bus
- type Config
- type Coupler
- func (c *Coupler) BrokenPlug(plug *integrationv1alpha2.Plug) error
- func (c *Coupler) BrokenSocket(socket *integrationv1alpha2.Socket) error
- func (c *Coupler) Configure(options Options)
- func (c *Coupler) Couple(client *client.Client, ctx *context.Context, req *ctrl.Request, ...) (ctrl.Result, error)
- func (c *Coupler) CoupledPlug(plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, ...) error
- func (c *Coupler) CoupledSocket(plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, ...) error
- func (c *Coupler) CreatedPlug(plug *integrationv1alpha2.Plug) error
- func (c *Coupler) CreatedSocket(socket *integrationv1alpha2.Socket) error
- func (c *Coupler) Decouple(client *client.Client, ctx *context.Context, req *ctrl.Request, ...) (ctrl.Result, error)
- func (c *Coupler) DecoupledPlug(plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, ...) error
- func (c *Coupler) DecoupledSocket(plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, ...) error
- func (c *Coupler) DeletedPlug(plug *integrationv1alpha2.Plug) error
- func (c *Coupler) DeletedSocket(socket *integrationv1alpha2.Socket) error
- func (c *Coupler) RegisterEvents(events *Events)
- func (c *Coupler) Start()
- func (c *Coupler) Stop()
- func (c *Coupler) Update(client *client.Client, ctx *context.Context, req *ctrl.Request, ...) (ctrl.Result, error)
- func (c *Coupler) UpdatedPlug(plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, ...) error
- func (c *Coupler) UpdatedSocket(plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, ...) error
- func (c *Coupler) Wait()
- type Event
- type Events
- type Handlers
- func (h *Handlers) HandlePlugBroken(ctx *context.Context, plug *integrationv1alpha2.Plug) error
- func (h *Handlers) HandlePlugCoupled(ctx *context.Context, plug *integrationv1alpha2.Plug, ...) error
- func (h *Handlers) HandlePlugCreated(ctx *context.Context, plug *integrationv1alpha2.Plug) error
- func (h *Handlers) HandlePlugDecoupled(ctx *context.Context, plug *integrationv1alpha2.Plug, ...) error
- func (h *Handlers) HandlePlugDeleted(ctx *context.Context, plug *integrationv1alpha2.Plug) error
- func (h *Handlers) HandlePlugUpdated(ctx *context.Context, plug *integrationv1alpha2.Plug, ...) error
- func (h *Handlers) HandleSocketBroken(ctx *context.Context, socket *integrationv1alpha2.Socket) error
- func (h *Handlers) HandleSocketCoupled(ctx *context.Context, plug *integrationv1alpha2.Plug, ...) error
- func (h *Handlers) HandleSocketCreated(ctx *context.Context, socket *integrationv1alpha2.Socket) error
- func (h *Handlers) HandleSocketDecoupled(ctx *context.Context, plug *integrationv1alpha2.Plug, ...) error
- func (h *Handlers) HandleSocketDeleted(ctx *context.Context, socket *integrationv1alpha2.Socket) error
- func (h *Handlers) HandleSocketUpdated(ctx *context.Context, plug *integrationv1alpha2.Plug, ...) error
- type Kind
- type Options
- type Topic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coupler ¶
var GlobalCoupler Coupler = CreateGlobalCoupler()
func CreateGlobalCoupler ¶
func CreateGlobalCoupler() Coupler
func NewCoupler ¶
func (*Coupler) BrokenPlug ¶
func (c *Coupler) BrokenPlug( plug *integrationv1alpha2.Plug, ) error
func (*Coupler) BrokenSocket ¶
func (c *Coupler) BrokenSocket( socket *integrationv1alpha2.Socket, ) error
func (*Coupler) CoupledPlug ¶
func (c *Coupler) CoupledPlug( plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, plugConfig Config, socketConfig Config, ) error
func (*Coupler) CoupledSocket ¶
func (c *Coupler) CoupledSocket( plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, plugConfig Config, socketConfig Config, ) error
func (*Coupler) CreatedPlug ¶
func (c *Coupler) CreatedPlug(plug *integrationv1alpha2.Plug) error
func (*Coupler) CreatedSocket ¶
func (c *Coupler) CreatedSocket( socket *integrationv1alpha2.Socket, ) error
func (*Coupler) DecoupledPlug ¶
func (c *Coupler) DecoupledPlug( plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, plugConfig Config, socketConfig Config, ) error
func (*Coupler) DecoupledSocket ¶
func (c *Coupler) DecoupledSocket( plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, plugConfig Config, socketConfig Config, ) error
func (*Coupler) DeletedPlug ¶
func (c *Coupler) DeletedPlug( plug *integrationv1alpha2.Plug, ) error
func (*Coupler) DeletedSocket ¶
func (c *Coupler) DeletedSocket( socket *integrationv1alpha2.Socket, ) error
func (*Coupler) RegisterEvents ¶
func (*Coupler) Update ¶
func (c *Coupler) Update( client *client.Client, ctx *context.Context, req *ctrl.Request, log *logr.Logger, plugNamespacedName *integrationv1alpha2.NamespacedName, plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, socketInterface *integrationv1alpha2.Interface, ) (ctrl.Result, error)
func (*Coupler) UpdatedPlug ¶
func (c *Coupler) UpdatedPlug( plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, plugConfig Config, socketConfig Config, ) error
func (*Coupler) UpdatedSocket ¶
func (c *Coupler) UpdatedSocket( plug *integrationv1alpha2.Plug, socket *integrationv1alpha2.Socket, plugConfig Config, socketConfig Config, ) error
type Events ¶
type Events struct { OnPlugBroken func(data interface{}) error OnPlugCoupled func(data interface{}) error OnPlugCreated func(data interface{}) error OnPlugDecoupled func(data interface{}) error OnPlugDeleted func(data interface{}) error OnPlugUpdated func(data interface{}) error OnSocketBroken func(data interface{}) error OnSocketCoupled func(data interface{}) error OnSocketCreated func(data interface{}) error OnSocketDecoupled func(data interface{}) error OnSocketDeleted func(data interface{}) error OnSocketUpdated func(data interface{}) error }
type Handlers ¶
type Handlers struct { }
func NewHandlers ¶
func NewHandlers() *Handlers
func (*Handlers) HandlePlugBroken ¶
func (*Handlers) HandlePlugCoupled ¶
func (*Handlers) HandlePlugCreated ¶
func (*Handlers) HandlePlugDecoupled ¶
func (*Handlers) HandlePlugDeleted ¶
func (*Handlers) HandlePlugUpdated ¶
func (*Handlers) HandleSocketBroken ¶
func (*Handlers) HandleSocketCoupled ¶
func (*Handlers) HandleSocketCreated ¶
func (*Handlers) HandleSocketDecoupled ¶
func (*Handlers) HandleSocketDeleted ¶
func (*Handlers) HandleSocketUpdated ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.