Documentation
¶
Overview ¶
Package duck contains a partial schema of the Strimzi APIs +kubebuilder:object:generate=true +groupName=kafka.strimzi.io
Package duck contains duck-types for accessing Strimzi resources
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Kafka
- type KafkaConnect
- type KafkaConnectList
- type KafkaConnectStatus
- type KafkaConnectStatusConditions
- type KafkaConnector
- type KafkaConnectorList
- type KafkaList
- type KafkaStatus
- type KafkaStatusListener
- type KafkaTopic
- type KafkaTopicList
Constants ¶
const ( StrimziGroup = "kafka.strimzi.io" StrimziVersion = "v1beta2" StrimziKindTopic = "KafkaTopic" StrimziKindKafkaCluster = "Kafka" StrimziKafkaClusterLabel = "strimzi.io/cluster" StrimziListenerTypePlain = "plain" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: StrimziGroup, Version: StrimziVersion} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a shortcut to SchemeBuilder.AddToScheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type Kafka ¶
type Kafka struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status KafkaStatus `json:"status,omitempty"` }
Kafka is the duck of a Kafka.
func (*Kafka) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kafka.
func (*Kafka) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Kafka) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaConnect ¶
type KafkaConnect struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status KafkaConnectStatus `json:"status,omitempty"` }
KafkaConnect is the duck of a KafkaConnect
func (*KafkaConnect) DeepCopy ¶
func (in *KafkaConnect) DeepCopy() *KafkaConnect
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConnect.
func (*KafkaConnect) DeepCopyInto ¶
func (in *KafkaConnect) DeepCopyInto(out *KafkaConnect)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaConnect) DeepCopyObject ¶
func (in *KafkaConnect) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaConnectList ¶
type KafkaConnectList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KafkaConnect `json:"items"` }
KafkaConnectList contains a list of KafkaConnect
func (*KafkaConnectList) DeepCopy ¶
func (in *KafkaConnectList) DeepCopy() *KafkaConnectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConnectList.
func (*KafkaConnectList) DeepCopyInto ¶
func (in *KafkaConnectList) DeepCopyInto(out *KafkaConnectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaConnectList) DeepCopyObject ¶
func (in *KafkaConnectList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaConnectStatus ¶
type KafkaConnectStatus struct { Conditions []KafkaConnectStatusConditions `json:"conditions,omitempty"` LabelSelector string `json:"labelSelector,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` Replicas int64 `json:"replicas,omitempty"` URL string `json:"url,omitempty"` }
KafkaConnectStatus contains the relevant info of the KafkaConnect status
func (*KafkaConnectStatus) DeepCopy ¶
func (in *KafkaConnectStatus) DeepCopy() *KafkaConnectStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConnectStatus.
func (*KafkaConnectStatus) DeepCopyInto ¶
func (in *KafkaConnectStatus) DeepCopyInto(out *KafkaConnectStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KafkaConnectStatusConditions ¶
type KafkaConnectStatusConditions struct { LastTransitionTime string `json:"lastTransitionTime,omitempty"` Message string `json:"message,omitempty"` Reason string `json:"reason,omitempty"` Status string `json:"status,omitempty"` Type string `json:"type,omitempty"` }
KafkaConnectStatusConditions contains listener information
func (*KafkaConnectStatusConditions) DeepCopy ¶
func (in *KafkaConnectStatusConditions) DeepCopy() *KafkaConnectStatusConditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConnectStatusConditions.
func (*KafkaConnectStatusConditions) DeepCopyInto ¶
func (in *KafkaConnectStatusConditions) DeepCopyInto(out *KafkaConnectStatusConditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KafkaConnector ¶
type KafkaConnector struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
KafkaConnector is the duck of a KafkaConnector
func (*KafkaConnector) DeepCopy ¶
func (in *KafkaConnector) DeepCopy() *KafkaConnector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConnector.
func (*KafkaConnector) DeepCopyInto ¶
func (in *KafkaConnector) DeepCopyInto(out *KafkaConnector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaConnector) DeepCopyObject ¶
func (in *KafkaConnector) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaConnectorList ¶
type KafkaConnectorList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KafkaConnector `json:"items"` }
KafkaConnectorList contains a list of KafkaConnector
func (*KafkaConnectorList) DeepCopy ¶
func (in *KafkaConnectorList) DeepCopy() *KafkaConnectorList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaConnectorList.
func (*KafkaConnectorList) DeepCopyInto ¶
func (in *KafkaConnectorList) DeepCopyInto(out *KafkaConnectorList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaConnectorList) DeepCopyObject ¶
func (in *KafkaConnectorList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaList ¶
type KafkaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Kafka `json:"items"` }
KafkaList contains a list of Kafka.
func (*KafkaList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaList.
func (*KafkaList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaStatus ¶
type KafkaStatus struct {
Listeners []KafkaStatusListener `json:"listeners,omitempty"`
}
KafkaStatus contains the relevant info of the Kafka status.
func (*KafkaStatus) DeepCopy ¶
func (in *KafkaStatus) DeepCopy() *KafkaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaStatus.
func (*KafkaStatus) DeepCopyInto ¶
func (in *KafkaStatus) DeepCopyInto(out *KafkaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KafkaStatusListener ¶
type KafkaStatusListener struct { BootstrapServers string `json:"bootstrapServers,omitempty"` Type string `json:"type,omitempty"` }
KafkaStatusListener contains listener information.
func (*KafkaStatusListener) DeepCopy ¶
func (in *KafkaStatusListener) DeepCopy() *KafkaStatusListener
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaStatusListener.
func (*KafkaStatusListener) DeepCopyInto ¶
func (in *KafkaStatusListener) DeepCopyInto(out *KafkaStatusListener)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KafkaTopic ¶
type KafkaTopic struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
KafkaTopic is the duck of a KafkaTopic.
func (*KafkaTopic) DeepCopy ¶
func (in *KafkaTopic) DeepCopy() *KafkaTopic
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaTopic.
func (*KafkaTopic) DeepCopyInto ¶
func (in *KafkaTopic) DeepCopyInto(out *KafkaTopic)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaTopic) DeepCopyObject ¶
func (in *KafkaTopic) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KafkaTopicList ¶
type KafkaTopicList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KafkaTopic `json:"items"` }
KafkaTopicList contains a list of KafkaTopic.
func (*KafkaTopicList) DeepCopy ¶
func (in *KafkaTopicList) DeepCopy() *KafkaTopicList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KafkaTopicList.
func (*KafkaTopicList) DeepCopyInto ¶
func (in *KafkaTopicList) DeepCopyInto(out *KafkaTopicList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KafkaTopicList) DeepCopyObject ¶
func (in *KafkaTopicList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.