sender

package
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedTargetType = errors.New("unsupported target type")

ErrUnsupportedTargetType is an error if user pass unsupported event target type. Only supporting: reachable or addressable.

Functions

This section is empty.

Types

type Binding

Binding holds injectable dependencies.

func (*Binding) DefaultNamespace

func (b *Binding) DefaultNamespace(props *event.Properties) (string, error)

DefaultNamespace returns a default namespace of connected K8s cluster or error if such namespace can't be determined.

func (*Binding) New

func (b *Binding) New(target *event.Target) (event.Sender, error)

New creates a new Sender.

type CreateAddressResolver

type CreateAddressResolver func(kube k8s.Clients) k8s.ReferenceAddressResolver

CreateAddressResolver creates a k8s.ReferenceAddressResolver.

type CreateJobRunner

type CreateJobRunner func(kube k8s.Clients) k8s.JobRunner

CreateJobRunner creates a k8s.JobRunner.

type CreateKubeClients

type CreateKubeClients func(props *event.Properties) (k8s.Clients, error)

CreateKubeClients creates k8s.Clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL