v1alpha1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group Consumer resources of the NATS provider. +kubebuilder:object:generate=true +groupName=nats.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "nats.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	ConsumerKind             = reflect.TypeOf(Consumer{}).Name()
	ConsumerGroupKind        = schema.GroupKind{Group: Group, Kind: ConsumerKind}.String()
	ConsumerKindAPIVersion   = ConsumerKind + "." + SchemeGroupVersion.String()
	ConsumerGroupVersionKind = SchemeGroupVersion.WithKind(ConsumerKind)
)

Consumer type metadata.

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ConsumerSpec   `json:"spec"`
	Status ConsumerStatus `json:"status,omitempty"`
}

A Consumer is an example API type. +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="DOMAIN",type="string",JSONPath=".spec.forProvider.domain" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:printcolumn:name="PUSH CONSUMER",type="string",priority=1,JSONPath=".status.atProvider.state.pushBound" +kubebuilder:printcolumn:name="STREAM",type="string",priority=1,JSONPath=".status.atProvider.state.streamName" +kubebuilder:printcolumn:name="UNPROCESSED",type="string",priority=1,JSONPath=".status.atProvider.state.numPending" +kubebuilder:printcolumn:name="REDELIVERERD",type="string",priority=1,JSONPath=".status.atProvider.state.numRedelivered" +kubebuilder:printcolumn:name="ACK PENDING",type="string",priority=1,JSONPath=".status.atProvider.state.numAckPending" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,nats}

func (*Consumer) DeepCopy

func (in *Consumer) DeepCopy() *Consumer

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Consumer.

func (*Consumer) DeepCopyInto

func (in *Consumer) DeepCopyInto(out *Consumer)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Consumer) DeepCopyObject

func (in *Consumer) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Consumer) GetCondition

func (mg *Consumer) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Consumer.

func (*Consumer) GetDeletionPolicy

func (mg *Consumer) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Consumer.

func (*Consumer) GetProviderConfigReference

func (mg *Consumer) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Consumer.

func (*Consumer) GetProviderReference

func (mg *Consumer) GetProviderReference() *xpv1.Reference

GetProviderReference of this Consumer. Deprecated: Use GetProviderConfigReference.

func (*Consumer) GetPublishConnectionDetailsTo

func (mg *Consumer) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Consumer.

func (*Consumer) GetWriteConnectionSecretToReference

func (mg *Consumer) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Consumer.

func (*Consumer) SetConditions

func (mg *Consumer) SetConditions(c ...xpv1.Condition)

SetConditions of this Consumer.

func (*Consumer) SetDeletionPolicy

func (mg *Consumer) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Consumer.

func (*Consumer) SetProviderConfigReference

func (mg *Consumer) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Consumer.

func (*Consumer) SetProviderReference

func (mg *Consumer) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Consumer. Deprecated: Use SetProviderConfigReference.

func (*Consumer) SetPublishConnectionDetailsTo

func (mg *Consumer) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Consumer.

func (*Consumer) SetWriteConnectionSecretToReference

func (mg *Consumer) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Consumer.

type ConsumerList

type ConsumerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Consumer `json:"items"`
}

ConsumerList contains a list of consumer

func (*ConsumerList) DeepCopy

func (in *ConsumerList) DeepCopy() *ConsumerList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerList.

func (*ConsumerList) DeepCopyInto

func (in *ConsumerList) DeepCopyInto(out *ConsumerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ConsumerList) DeepCopyObject

func (in *ConsumerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*ConsumerList) GetItems

func (l *ConsumerList) GetItems() []resource.Managed

GetItems of this ConsumerList.

type ConsumerObservation

type ConsumerObservation struct {
	// State is the current state of the consumer
	State consumer.ConsumerObservationState `json:"state,omitempty"`
}

ConsumerObservation are the observable fields of a consumer.

func (*ConsumerObservation) DeepCopy

func (in *ConsumerObservation) DeepCopy() *ConsumerObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerObservation.

func (*ConsumerObservation) DeepCopyInto

func (in *ConsumerObservation) DeepCopyInto(out *ConsumerObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConsumerParameters

type ConsumerParameters struct {
	// Stream is the name of the Jetstream stream the consumer is created for.
	// +kubebuilder:validation:Required
	Stream string `json:"stream"`

	// Domain is the domain of the Jetstream stream the consumer is created for.
	// +kubebuilder:validation:Optional
	Domain string `json:"domain,omitempty"`

	// Config is the consumer configuration.
	// +kubebuilder:validation:Required
	Config consumer.ConsumerConfig `json:"config"`
}

ConsumerParameters are the configurable fields of a consumer.

func (*ConsumerParameters) DeepCopy

func (in *ConsumerParameters) DeepCopy() *ConsumerParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerParameters.

func (*ConsumerParameters) DeepCopyInto

func (in *ConsumerParameters) DeepCopyInto(out *ConsumerParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConsumerSpec

type ConsumerSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       ConsumerParameters `json:"forProvider"`
}

A ConsumerSpec defines the desired state of a consumer.

func (*ConsumerSpec) DeepCopy

func (in *ConsumerSpec) DeepCopy() *ConsumerSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerSpec.

func (*ConsumerSpec) DeepCopyInto

func (in *ConsumerSpec) DeepCopyInto(out *ConsumerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConsumerStatus

type ConsumerStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          ConsumerObservation `json:"atProvider,omitempty"`
}

A ConsumerStatus represents the observed state of a consumer.

func (*ConsumerStatus) DeepCopy

func (in *ConsumerStatus) DeepCopy() *ConsumerStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConsumerStatus.

func (*ConsumerStatus) DeepCopyInto

func (in *ConsumerStatus) DeepCopyInto(out *ConsumerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Directories

Path Synopsis
+k8s:deepcopy-gen=package
+k8s:deepcopy-gen=package

Jump to

Keyboard shortcuts

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