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 ¶
type Binding struct { CreateJobRunner CreateAddressResolver CreateKubeClients }
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.
type CreateAddressResolver ¶
type CreateAddressResolver func(kube k8s.Clients) k8s.ReferenceAddressResolver
CreateAddressResolver creates a k8s.ReferenceAddressResolver.
type CreateJobRunner ¶
CreateJobRunner creates a k8s.JobRunner.
type CreateKubeClients ¶
type CreateKubeClients func(props *event.Properties) (k8s.Clients, error)
CreateKubeClients creates k8s.Clients.
Click to show internal directories.
Click to hide internal directories.