Documentation ¶
Index ¶
- func NewApiServerSource(name, namespace string, o ...ApiServerSourceOption) *v1alpha2.ApiServerSource
- func NewContainerSource(name, namespace string, o ...ContainerSourceOption) *v1alpha2.ContainerSource
- func NewPingSource(name, namespace string, o ...PingSourceOption) *v1alpha2.PingSource
- func NewSinkBinding(name, namespace string, o ...SinkBindingOption) *sourcesv1alpha2.SinkBinding
- type ApiServerSourceOption
- type ContainerSourceOption
- type PingSourceOption
- type SinkBindingOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiServerSource ¶
func NewApiServerSource(name, namespace string, o ...ApiServerSourceOption) *v1alpha2.ApiServerSource
NewApiServerSource creates a v1alpha2 ApiServer with ApiServerOptions
func NewContainerSource ¶
func NewContainerSource(name, namespace string, o ...ContainerSourceOption) *v1alpha2.ContainerSource
NewContainerSource creates a v1alpha2 ContainerSource with ContainerSourceOptions
func NewPingSource ¶ added in v0.20.0
func NewPingSource(name, namespace string, o ...PingSourceOption) *v1alpha2.PingSource
NewPingSource creates a PingSource with PingSourceOption.
func NewSinkBinding ¶
func NewSinkBinding(name, namespace string, o ...SinkBindingOption) *sourcesv1alpha2.SinkBinding
NewSinkBinding creates a SinkBinding with v1alpha2 SinkBindingOptions
Types ¶
type ApiServerSourceOption ¶
type ApiServerSourceOption func(*v1alpha2.ApiServerSource)
ApiServerSourceOption enables further configuration of a v1alpha2 ApiServer.
func WithApiServerSourceSpec ¶
func WithApiServerSourceSpec(spec v1alpha2.ApiServerSourceSpec) ApiServerSourceOption
type ContainerSourceOption ¶
type ContainerSourceOption func(*v1alpha2.ContainerSource)
ContainerSourceOption enables further configuration of a ContainerSource.
func WithContainerSourceSpec ¶
func WithContainerSourceSpec(spec v1alpha2.ContainerSourceSpec) ContainerSourceOption
type PingSourceOption ¶ added in v0.20.0
type PingSourceOption func(*v1alpha2.PingSource)
PingSourceOption enables further configuration of a CronJob.
func WithPingSourceSpec ¶ added in v0.20.0
func WithPingSourceSpec(spec v1alpha2.PingSourceSpec) PingSourceOption
type SinkBindingOption ¶
type SinkBindingOption func(*sourcesv1alpha2.SinkBinding)
SinkBindingOption enables further configuration of a v1alpha2 SinkBinding.
func WithCloudEventOverrides ¶
func WithCloudEventOverrides(overrides duckv1.CloudEventOverrides) SinkBindingOption
WithCloudEventOverrides assigns the CloudEventsOverrides of the SinkBinding.
func WithSink ¶
func WithSink(sink duckv1.Destination) SinkBindingOption
WithSink assigns the sink of the SinkBinding.
func WithSubject ¶
func WithSubject(subject tracker.Reference) SinkBindingOption
WithSubject assigns the subject of the SinkBinding.