kafkachannel

package
v0.40.9 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address added in v0.38.10

func Address(ctx context.Context, name string, timings ...time.Duration) (*duckv1.Addressable, error)

Address returns a Channel's address.

func AsDestinationRef added in v0.38.10

func AsDestinationRef(name string) *duckv1.Destination

AsRef returns a KRef for a Channel without namespace.

func AsRef added in v0.38.10

func AsRef(name string) *duckv1.KReference

AsRef returns a KRef for a Channel without namespace.

func GVK added in v0.38.10

func GVR

func Install

func Install(name string, opts ...manifest.CfgFn) feature.StepFn

Install will create a KafkaChannel resource, using the latest version, augmented with the config fn options.

func IsReady

func IsReady(name string, timings ...time.Duration) feature.StepFn

IsReady tests to see if a KafkaChannel becomes ready within the time given.

func ValidateAddress added in v0.38.10

func ValidateAddress(name string, validate addressable.ValidateAddressFn, timings ...time.Duration) feature.StepFn

ValidateAddress validates the address retured by Address

func WithNumPartitions

func WithNumPartitions(numPartitions string) manifest.CfgFn

WithNumPartitions adds the numPartitions config to a KafkaChannel spec.

func WithReplicationFactor

func WithReplicationFactor(replicationFactor string) manifest.CfgFn

WithReplicationFactor adds the replicationFactor config to a KafkaChannel spec.

func WithRetentionDuration

func WithRetentionDuration(retentionDuration string) manifest.CfgFn

WithRetentionDuration adds the retentionDuration config to a KafkaChannel spec.

func WithVersion

func WithVersion(version string) manifest.CfgFn

WithVersion overrides the default API version

Types

type EnvConfig added in v0.38.10

type EnvConfig struct {
	ChannelGK string `envconfig:"CHANNEL_GROUP_KIND" default:"KafkaChannel.messaging.knative.dev" required:"true"`
	ChannelV  string `envconfig:"CHANNEL_VERSION" default:"v1beta1" required:"true"`
}
var EnvCfg EnvConfig

Jump to

Keyboard shortcuts

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