Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API. +k8s:deepcopy-gen=package +groupName=messaging.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterAlternateKafkaChannelConditionSet(conditionSet apis.ConditionSet)
- func Resource(resource string) schema.GroupResource
- type KafkaChannel
- func (sink *KafkaChannel) ConvertFrom(_ context.Context, channel apis.Convertible) error
- func (channel *KafkaChannel) ConvertTo(_ context.Context, sink apis.Convertible) error
- func (in *KafkaChannel) DeepCopy() *KafkaChannel
- func (in *KafkaChannel) DeepCopyInto(out *KafkaChannel)
- func (in *KafkaChannel) DeepCopyObject() runtime.Object
- func (*KafkaChannel) GetConditionSet() apis.ConditionSet
- func (c *KafkaChannel) GetGroupVersionKind() schema.GroupVersionKind
- func (k *KafkaChannel) GetStatus() *duckv1.Status
- func (c *KafkaChannel) SetDefaults(ctx context.Context)
- func (c *KafkaChannel) Validate(ctx context.Context) *apis.FieldError
- type KafkaChannelList
- type KafkaChannelSpec
- type KafkaChannelStatus
- func (in *KafkaChannelStatus) DeepCopy() *KafkaChannelStatus
- func (in *KafkaChannelStatus) DeepCopyInto(out *KafkaChannelStatus)
- func (cs *KafkaChannelStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (*KafkaChannelStatus) GetConditionSet() apis.ConditionSet
- func (cs *KafkaChannelStatus) InitializeConditions()
- func (cs *KafkaChannelStatus) IsReady() bool
- func (cs *KafkaChannelStatus) MarkChannelServiceFailed(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkChannelServiceTrue()
- func (cs *KafkaChannelStatus) MarkConfigFailed(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkConfigTrue()
- func (cs *KafkaChannelStatus) MarkDispatcherFailed(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkDispatcherUnknown(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkEndpointsFailed(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkEndpointsTrue()
- func (cs *KafkaChannelStatus) MarkServiceFailed(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkServiceTrue()
- func (cs *KafkaChannelStatus) MarkServiceUnknown(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkTopicFailed(reason, messageFormat string, messageA ...interface{})
- func (cs *KafkaChannelStatus) MarkTopicTrue()
- func (cs *KafkaChannelStatus) PropagateDispatcherStatus(ds *appsv1.DeploymentStatus)
- func (cs *KafkaChannelStatus) SetAddress(url *apis.URL)
Constants ¶
const ( // KafkaChannelConditionReady has status True when all subconditions below have been set to True. KafkaChannelConditionReady = apis.ConditionReady // KafkaChannelConditionDispatcherReady has status True when a Dispatcher deployment is ready // Keyed off appsv1.DeploymentAvailable, which means minimum available replicas required are up // and running for at least minReadySeconds. KafkaChannelConditionDispatcherReady apis.ConditionType = "DispatcherReady" // KafkaChannelConditionServiceReady has status True when a k8s Service is ready. This // basically just means it exists because there's no meaningful status in Service. See Endpoints // below. KafkaChannelConditionServiceReady apis.ConditionType = "ServiceReady" // KafkaChannelConditionEndpointsReady has status True when a k8s Service Endpoints are backed // by at least one endpoint. KafkaChannelConditionEndpointsReady apis.ConditionType = "EndpointsReady" // KafkaChannelConditionAddressable has status true when this KafkaChannel meets // the Addressable contract and has a non-empty URL. KafkaChannelConditionAddressable apis.ConditionType = "Addressable" // KafkaChannelConditionServiceReady has status True when a k8s Service representing the channel is ready. // Because this uses ExternalName, there are no endpoints to check. KafkaChannelConditionChannelServiceReady apis.ConditionType = "ChannelServiceReady" // KafkaChannelConditionTopicReady has status True when the Kafka topic to use by the channel exists. KafkaChannelConditionTopicReady apis.ConditionType = "TopicReady" // KafkaChannelConditionConfigReady has status True when the Kafka configuration to use by the channel exists and is valid // (ie. the connection has been established). KafkaChannelConditionConfigReady apis.ConditionType = "ConfigurationReady" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: messaging.GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func RegisterAlternateKafkaChannelConditionSet ¶
func RegisterAlternateKafkaChannelConditionSet(conditionSet apis.ConditionSet)
RegisterAlternateKafkaChannelConditionSet register a different apis.ConditionSet.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type KafkaChannel ¶
type KafkaChannel struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired state of the Channel. Spec KafkaChannelSpec `json:"spec,omitempty"` // Status represents the current state of the KafkaChannel. This data may be out of // date. // +optional Status KafkaChannelStatus `json:"status,omitempty"` }
KafkaChannel is a resource representing a Kafka Channel.
func (*KafkaChannel) ConvertFrom ¶
func (sink *KafkaChannel) ConvertFrom(_ context.Context, channel apis.Convertible) error
ConvertFrom implements apis.Convertible
func (*KafkaChannel) ConvertTo ¶
func (channel *KafkaChannel) ConvertTo(_ context.Context, sink apis.Convertible) error
ConvertTo implements apis.Convertible
func (*KafkaChannel) DeepCopy ¶
func (in *KafkaChannel) DeepCopy() *KafkaChannel
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaChannel.
func (*KafkaChannel) DeepCopyInto ¶
func (in *KafkaChannel) DeepCopyInto(out *KafkaChannel)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaChannel) DeepCopyObject ¶
func (in *KafkaChannel) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KafkaChannel) GetConditionSet ¶
func (*KafkaChannel) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*KafkaChannel) GetGroupVersionKind ¶
func (c *KafkaChannel) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns GroupVersionKind for KafkaChannels
func (*KafkaChannel) GetStatus ¶
func (k *KafkaChannel) GetStatus() *duckv1.Status
GetStatus retrieves the duck status for this resource. Implements the KRShaped interface.
func (*KafkaChannel) SetDefaults ¶
func (c *KafkaChannel) SetDefaults(ctx context.Context)
func (*KafkaChannel) Validate ¶
func (c *KafkaChannel) Validate(ctx context.Context) *apis.FieldError
type KafkaChannelList ¶
type KafkaChannelList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []KafkaChannel `json:"items"` }
KafkaChannelList is a collection of KafkaChannels.
func (*KafkaChannelList) DeepCopy ¶
func (in *KafkaChannelList) DeepCopy() *KafkaChannelList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaChannelList.
func (*KafkaChannelList) DeepCopyInto ¶
func (in *KafkaChannelList) DeepCopyInto(out *KafkaChannelList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaChannelList) DeepCopyObject ¶
func (in *KafkaChannelList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaChannelSpec ¶
type KafkaChannelSpec struct { // NumPartitions is the number of partitions of a Kafka topic. By default, it is set to 1. NumPartitions int32 `json:"numPartitions"` // ReplicationFactor is the replication factor of a Kafka topic. By default, it is set to 1. ReplicationFactor int16 `json:"replicationFactor"` // Channel conforms to Duck type Channelable. eventingduck.ChannelableSpec `json:",inline"` }
KafkaChannelSpec defines the specification for a KafkaChannel.
func (*KafkaChannelSpec) DeepCopy ¶
func (in *KafkaChannelSpec) DeepCopy() *KafkaChannelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaChannelSpec.
func (*KafkaChannelSpec) DeepCopyInto ¶
func (in *KafkaChannelSpec) DeepCopyInto(out *KafkaChannelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaChannelSpec) SetDefaults ¶
func (cs *KafkaChannelSpec) SetDefaults(ctx context.Context)
func (*KafkaChannelSpec) Validate ¶
func (cs *KafkaChannelSpec) Validate(ctx context.Context) *apis.FieldError
type KafkaChannelStatus ¶
type KafkaChannelStatus struct { // Channel conforms to Duck type Channelable. eventingduck.ChannelableStatus `json:",inline"` }
KafkaChannelStatus represents the current state of a KafkaChannel.
func (*KafkaChannelStatus) DeepCopy ¶
func (in *KafkaChannelStatus) DeepCopy() *KafkaChannelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaChannelStatus.
func (*KafkaChannelStatus) DeepCopyInto ¶
func (in *KafkaChannelStatus) DeepCopyInto(out *KafkaChannelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaChannelStatus) GetCondition ¶
func (cs *KafkaChannelStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*KafkaChannelStatus) GetConditionSet ¶
func (*KafkaChannelStatus) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource.
func (*KafkaChannelStatus) InitializeConditions ¶
func (cs *KafkaChannelStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*KafkaChannelStatus) IsReady ¶
func (cs *KafkaChannelStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*KafkaChannelStatus) MarkChannelServiceFailed ¶
func (cs *KafkaChannelStatus) MarkChannelServiceFailed(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkChannelServiceTrue ¶
func (cs *KafkaChannelStatus) MarkChannelServiceTrue()
func (*KafkaChannelStatus) MarkConfigFailed ¶
func (cs *KafkaChannelStatus) MarkConfigFailed(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkConfigTrue ¶
func (cs *KafkaChannelStatus) MarkConfigTrue()
func (*KafkaChannelStatus) MarkDispatcherFailed ¶
func (cs *KafkaChannelStatus) MarkDispatcherFailed(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkDispatcherUnknown ¶
func (cs *KafkaChannelStatus) MarkDispatcherUnknown(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkEndpointsFailed ¶
func (cs *KafkaChannelStatus) MarkEndpointsFailed(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkEndpointsTrue ¶
func (cs *KafkaChannelStatus) MarkEndpointsTrue()
func (*KafkaChannelStatus) MarkServiceFailed ¶
func (cs *KafkaChannelStatus) MarkServiceFailed(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkServiceTrue ¶
func (cs *KafkaChannelStatus) MarkServiceTrue()
func (*KafkaChannelStatus) MarkServiceUnknown ¶
func (cs *KafkaChannelStatus) MarkServiceUnknown(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkTopicFailed ¶
func (cs *KafkaChannelStatus) MarkTopicFailed(reason, messageFormat string, messageA ...interface{})
func (*KafkaChannelStatus) MarkTopicTrue ¶
func (cs *KafkaChannelStatus) MarkTopicTrue()
func (*KafkaChannelStatus) PropagateDispatcherStatus ¶
func (cs *KafkaChannelStatus) PropagateDispatcherStatus(ds *appsv1.DeploymentStatus)
TODO: Unify this with the ones from Eventing. Say: Broker, Trigger.
func (*KafkaChannelStatus) SetAddress ¶
func (cs *KafkaChannelStatus) SetAddress(url *apis.URL)
SetAddress sets the address (as part of Addressable contract) and marks the correct condition.