Documentation
¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package +groupName=eventing.triggermesh.io
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Broker
- type Memory
- type MemoryBroker
- func (in *MemoryBroker) DeepCopy() *MemoryBroker
- func (in *MemoryBroker) DeepCopyInto(out *MemoryBroker)
- func (in *MemoryBroker) DeepCopyObject() runtime.Object
- func (b *MemoryBroker) GetConditionSet() apis.ConditionSet
- func (t *MemoryBroker) GetGroupVersionKind() schema.GroupVersionKind
- func (t *MemoryBroker) GetOwnedObjectsSuffix() string
- func (t *MemoryBroker) GetReconcilableBrokerSpec() *Broker
- func (t *MemoryBroker) GetReconcilableBrokerStatus() ReconcilableBrokerStatus
- func (t *MemoryBroker) GetStatus() *duckv1.Status
- func (b *MemoryBroker) IsReady() bool
- type MemoryBrokerList
- type MemoryBrokerSpec
- type MemoryBrokerStatus
- func (in *MemoryBrokerStatus) DeepCopy() *MemoryBrokerStatus
- func (in *MemoryBrokerStatus) DeepCopyInto(out *MemoryBrokerStatus)
- func (bs *MemoryBrokerStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (bs *MemoryBrokerStatus) GetConditionSet() apis.ConditionSet
- func (bs *MemoryBrokerStatus) GetTopLevelCondition() *apis.Condition
- func (bs *MemoryBrokerStatus) InitializeConditions()
- func (bs *MemoryBrokerStatus) MarkBrokerDeploymentFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerDeploymentUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerEndpointsFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerEndpointsTrue()
- func (bs *MemoryBrokerStatus) MarkBrokerEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerRoleBindingFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerRoleBindingReady()
- func (bs *MemoryBrokerStatus) MarkBrokerRoleBindingUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerServiceAccountFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerServiceAccountReady()
- func (bs *MemoryBrokerStatus) MarkBrokerServiceAccountUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerServiceFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkBrokerServiceReady()
- func (bs *MemoryBrokerStatus) MarkBrokerServiceUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkConfigSecretFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) MarkConfigSecretReady()
- func (bs *MemoryBrokerStatus) MarkConfigSecretUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *MemoryBrokerStatus) PropagateBrokerDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
- func (bs *MemoryBrokerStatus) SetAddress(url *apis.URL)
- type Observability
- type ReconcilableBroker
- type ReconcilableBrokerStatus
- type Redis
- type RedisBroker
- func (in *RedisBroker) DeepCopy() *RedisBroker
- func (in *RedisBroker) DeepCopyInto(out *RedisBroker)
- func (in *RedisBroker) DeepCopyObject() runtime.Object
- func (b *RedisBroker) GetConditionSet() apis.ConditionSet
- func (t *RedisBroker) GetGroupVersionKind() schema.GroupVersionKind
- func (t *RedisBroker) GetOwnedObjectsSuffix() string
- func (t *RedisBroker) GetReconcilableBrokerSpec() *Broker
- func (t *RedisBroker) GetReconcilableBrokerStatus() ReconcilableBrokerStatus
- func (t *RedisBroker) GetStatus() *duckv1.Status
- func (b *RedisBroker) IsReady() bool
- func (b *RedisBroker) IsUserProvidedRedis() bool
- type RedisBrokerList
- type RedisBrokerSpec
- type RedisBrokerStatus
- func (in *RedisBrokerStatus) DeepCopy() *RedisBrokerStatus
- func (in *RedisBrokerStatus) DeepCopyInto(out *RedisBrokerStatus)
- func (bs *RedisBrokerStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (bs *RedisBrokerStatus) GetConditionSet() apis.ConditionSet
- func (bs *RedisBrokerStatus) GetTopLevelCondition() *apis.Condition
- func (bs *RedisBrokerStatus) InitializeConditions()
- func (bs *RedisBrokerStatus) MarkBrokerDeploymentFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerDeploymentUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerEndpointsFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerEndpointsTrue()
- func (bs *RedisBrokerStatus) MarkBrokerEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerRoleBindingFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerRoleBindingReady()
- func (bs *RedisBrokerStatus) MarkBrokerRoleBindingUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerServiceAccountFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerServiceAccountReady()
- func (bs *RedisBrokerStatus) MarkBrokerServiceAccountUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerServiceFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkBrokerServiceReady()
- func (bs *RedisBrokerStatus) MarkBrokerServiceUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkConfigSecretFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkConfigSecretReady()
- func (bs *RedisBrokerStatus) MarkConfigSecretUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisDeploymentFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisDeploymentUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisEndpointsFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisEndpointsTrue()
- func (bs *RedisBrokerStatus) MarkRedisEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisServiceFailed(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisServiceReady()
- func (bs *RedisBrokerStatus) MarkRedisServiceUnknown(reason, messageFormat string, messageA ...interface{})
- func (bs *RedisBrokerStatus) MarkRedisUserProvided()
- func (bs *RedisBrokerStatus) PropagateBrokerDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
- func (bs *RedisBrokerStatus) PropagateRedisDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
- func (bs *RedisBrokerStatus) SetAddress(url *apis.URL)
- type RedisConnection
- type SecretValueFromSource
- type Trigger
- func (in *Trigger) DeepCopy() *Trigger
- func (in *Trigger) DeepCopyInto(out *Trigger)
- func (in *Trigger) DeepCopyObject() runtime.Object
- func (*Trigger) GetConditionSet() apis.ConditionSet
- func (t *Trigger) GetGroupVersionKind() schema.GroupVersionKind
- func (t *Trigger) GetStatus() *duckv1.Status
- func (t *Trigger) GetUntypedSpec() interface{}
- func (t *Trigger) ReferencesBroker(broker kmeta.OwnerRefable) bool
- func (t *Trigger) Validate(ctx context.Context) *apis.FieldError
- type TriggerList
- type TriggerSpec
- type TriggerStatus
- func (in *TriggerStatus) DeepCopy() *TriggerStatus
- func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)
- func (ts *TriggerStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (ts *TriggerStatus) GetTopLevelCondition() *apis.Condition
- func (ts *TriggerStatus) InitializeConditions()
- func (ts *TriggerStatus) IsReady() bool
- func (ts *TriggerStatus) MarkBrokerFailed(reason, messageFormat string, messageA ...interface{})
- func (ts *TriggerStatus) MarkBrokerNotConfigured()
- func (ts *TriggerStatus) MarkBrokerUnknown(reason, messageFormat string, messageA ...interface{})
- func (ts *TriggerStatus) MarkDeadLetterSinkNotConfigured()
- func (ts *TriggerStatus) MarkDeadLetterSinkResolvedFailed(reason, messageFormat string, messageA ...interface{})
- func (ts *TriggerStatus) MarkDeadLetterSinkResolvedSucceeded()
- func (ts *TriggerStatus) MarkTargetResolvedFailed(reason, messageFormat string, messageA ...interface{})
- func (ts *TriggerStatus) MarkTargetResolvedSucceeded()
- func (ts *TriggerStatus) MarkTargetResolvedUnknown(reason, messageFormat string, messageA ...interface{})
- func (ts *TriggerStatus) PropagateBrokerCondition(bc *apis.Condition)
Constants ¶
const ( MemoryBrokerConditionReady = apis.ConditionReady MemoryBrokerBrokerDeployment apis.ConditionType = "BrokerDeploymentReady" MemoryBrokerBrokerServiceAccount apis.ConditionType = "BrokerServiceAccountReady" MemoryBrokerBrokerRoleBinding apis.ConditionType = "MemoryBrokerBrokerRoleBinding" MemoryBrokerBrokerService apis.ConditionType = "BrokerServiceReady" MemoryBrokerBrokerServiceEndpointsConditionReady apis.ConditionType = "BrokerEndpointsReady" MemoryBrokerConfigSecret apis.ConditionType = "BrokerConfigSecretReady" MemoryBrokerConditionAddressable apis.ConditionType = "Addressable" )
const ( RedisBrokerConditionReady = apis.ConditionReady RedisBrokerRedisDeployment apis.ConditionType = "RedisDeploymentReady" RedisBrokerRedisService apis.ConditionType = "RedisServiceReady" RedisBrokerRedisServiceEndpointsConditionReady apis.ConditionType = "RedisEndpointsReady" RedisBrokerBrokerDeployment apis.ConditionType = "BrokerDeploymentReady" RedisBrokerBrokerServiceAccount apis.ConditionType = "BrokerServiceAccountReady" RedisBrokerBrokerRoleBinding apis.ConditionType = "RedisBrokerBrokerRoleBinding" RedisBrokerBrokerService apis.ConditionType = "BrokerServiceReady" RedisBrokerBrokerServiceEndpointsConditionReady apis.ConditionType = "BrokerEndpointsReady" RedisBrokerConfigSecret apis.ConditionType = "BrokerConfigSecretReady" RedisBrokerConditionAddressable apis.ConditionType = "Addressable" RedisBrokerReasonUserProvided string = "ReasonUserProvidedRedis" )
const ( // TriggerConditionReady has status True when all subconditions below have been set to True. TriggerConditionReady = apis.ConditionReady TriggerConditionBroker apis.ConditionType = "BrokerReady" TriggerConditionTargetResolved apis.ConditionType = "TargetResolved" TriggerConditionDeadLetterSinkResolved apis.ConditionType = "DeadLetterSinkResolved" // TriggerAnyFilter Constant to represent that we should allow anything. TriggerAnyFilter = "" )
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: eventing.GroupName, Version: "v1alpha1"} // SchemeBuilder creates a Scheme builder that is used to register types for this custom API. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme registers the types stored in SchemeBuilder. 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 Broker ¶
type Broker struct {
Port *int `json:"port,omitempty"`
Observability *Observability `json:"observability,omitempty"`
}
func (*Broker) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Broker.
func (*Broker) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Memory ¶
type Memory struct {
// Maximum number of items the stream can host.
BufferSize *int `json:"streamMaxLen,omitempty"`
}
func (*Memory) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Memory.
func (*Memory) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemoryBroker ¶
type MemoryBroker struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec defines the desired state of the broker.
Spec MemoryBrokerSpec `json:"spec,omitempty"`
// Status represents the current state of the broker. This data may be out of
// date.
// +optional
Status MemoryBrokerStatus `json:"status,omitempty"`
}
MemoryBroker is a Memory based broker implementation that collects a pool of events that are consumable using Triggers. Brokers provide a well-known endpoint for event delivery that senders can use with minimal knowledge of the event routing strategy. Subscribers use Triggers to request delivery of events from a broker's pool to a specific URL or Addressable endpoint.
func (*MemoryBroker) DeepCopy ¶
func (in *MemoryBroker) DeepCopy() *MemoryBroker
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryBroker.
func (*MemoryBroker) DeepCopyInto ¶
func (in *MemoryBroker) DeepCopyInto(out *MemoryBroker)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemoryBroker) DeepCopyObject ¶
func (in *MemoryBroker) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MemoryBroker) GetConditionSet ¶
func (b *MemoryBroker) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*MemoryBroker) GetGroupVersionKind ¶
func (t *MemoryBroker) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns GroupVersionKind for Brokers
func (*MemoryBroker) GetOwnedObjectsSuffix ¶
func (t *MemoryBroker) GetOwnedObjectsSuffix() string
GetOwnedObjectsSuffix returns a string to be appended for created/owned objects.
func (*MemoryBroker) GetReconcilableBrokerSpec ¶
func (t *MemoryBroker) GetReconcilableBrokerSpec() *Broker
GetReconcilableBrokerSpec returns the all brokers common Broker spec.
func (*MemoryBroker) GetReconcilableBrokerStatus ¶
func (t *MemoryBroker) GetReconcilableBrokerStatus() ReconcilableBrokerStatus
GetReconcilableBrokerStatus returns a status interface that allows generic reconciler to manage it.
func (*MemoryBroker) GetStatus ¶
func (t *MemoryBroker) GetStatus() *duckv1.Status
GetStatus retrieves the status of the Broker. Implements the KRShaped interface.
func (*MemoryBroker) IsReady ¶
func (b *MemoryBroker) IsReady() bool
IsReady returns true if the resource is ready overall and the latest spec has been observed.
type MemoryBrokerList ¶
type MemoryBrokerList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
Items []MemoryBroker `json:"items"`
}
MemoryBrokerList is a collection of Brokers.
func (*MemoryBrokerList) DeepCopy ¶
func (in *MemoryBrokerList) DeepCopy() *MemoryBrokerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryBrokerList.
func (*MemoryBrokerList) DeepCopyInto ¶
func (in *MemoryBrokerList) DeepCopyInto(out *MemoryBrokerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemoryBrokerList) DeepCopyObject ¶
func (in *MemoryBrokerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MemoryBrokerSpec ¶
type MemoryBrokerSpec struct {
Memory *Memory `json:"memory,omitempty"`
Broker Broker `json:"broker,omitempty"`
}
func (*MemoryBrokerSpec) DeepCopy ¶
func (in *MemoryBrokerSpec) DeepCopy() *MemoryBrokerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryBrokerSpec.
func (*MemoryBrokerSpec) DeepCopyInto ¶
func (in *MemoryBrokerSpec) DeepCopyInto(out *MemoryBrokerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MemoryBrokerStatus ¶
type MemoryBrokerStatus struct {
// inherits duck/v1 Status, which currently provides:
// * ObservedGeneration - the 'Generation' of the Broker that was last processed by the controller.
// * Conditions - the latest available observations of a resource's current state.
duckv1.Status `json:",inline"`
// Broker is Addressable. It exposes the endpoint as an URI to get events
// delivered into the Broker mesh.
// +optional
Address duckv1.Addressable `json:"address,omitempty"`
}
MemoryBrokerStatus represents the current state of a Memory broker.
func (*MemoryBrokerStatus) DeepCopy ¶
func (in *MemoryBrokerStatus) DeepCopy() *MemoryBrokerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MemoryBrokerStatus.
func (*MemoryBrokerStatus) DeepCopyInto ¶
func (in *MemoryBrokerStatus) DeepCopyInto(out *MemoryBrokerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MemoryBrokerStatus) GetCondition ¶
func (bs *MemoryBrokerStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*MemoryBrokerStatus) GetConditionSet ¶
func (bs *MemoryBrokerStatus) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource.
func (*MemoryBrokerStatus) GetTopLevelCondition ¶
func (bs *MemoryBrokerStatus) GetTopLevelCondition() *apis.Condition
GetTopLevelCondition returns the top level Condition.
func (*MemoryBrokerStatus) InitializeConditions ¶
func (bs *MemoryBrokerStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*MemoryBrokerStatus) MarkBrokerDeploymentFailed ¶
func (bs *MemoryBrokerStatus) MarkBrokerDeploymentFailed(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerDeploymentUnknown ¶
func (bs *MemoryBrokerStatus) MarkBrokerDeploymentUnknown(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerEndpointsFailed ¶
func (bs *MemoryBrokerStatus) MarkBrokerEndpointsFailed(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerEndpointsTrue ¶
func (bs *MemoryBrokerStatus) MarkBrokerEndpointsTrue()
func (*MemoryBrokerStatus) MarkBrokerEndpointsUnknown ¶
func (bs *MemoryBrokerStatus) MarkBrokerEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerRoleBindingFailed ¶
func (bs *MemoryBrokerStatus) MarkBrokerRoleBindingFailed(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerRoleBindingReady ¶
func (bs *MemoryBrokerStatus) MarkBrokerRoleBindingReady()
func (*MemoryBrokerStatus) MarkBrokerRoleBindingUnknown ¶
func (bs *MemoryBrokerStatus) MarkBrokerRoleBindingUnknown(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerServiceAccountFailed ¶
func (bs *MemoryBrokerStatus) MarkBrokerServiceAccountFailed(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerServiceAccountReady ¶
func (bs *MemoryBrokerStatus) MarkBrokerServiceAccountReady()
func (*MemoryBrokerStatus) MarkBrokerServiceAccountUnknown ¶
func (bs *MemoryBrokerStatus) MarkBrokerServiceAccountUnknown(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerServiceFailed ¶
func (bs *MemoryBrokerStatus) MarkBrokerServiceFailed(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkBrokerServiceReady ¶
func (bs *MemoryBrokerStatus) MarkBrokerServiceReady()
func (*MemoryBrokerStatus) MarkBrokerServiceUnknown ¶
func (bs *MemoryBrokerStatus) MarkBrokerServiceUnknown(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkConfigSecretFailed ¶
func (bs *MemoryBrokerStatus) MarkConfigSecretFailed(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) MarkConfigSecretReady ¶
func (bs *MemoryBrokerStatus) MarkConfigSecretReady()
func (*MemoryBrokerStatus) MarkConfigSecretUnknown ¶
func (bs *MemoryBrokerStatus) MarkConfigSecretUnknown(reason, messageFormat string, messageA ...interface{})
func (*MemoryBrokerStatus) PropagateBrokerDeploymentAvailability ¶
func (bs *MemoryBrokerStatus) PropagateBrokerDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
func (*MemoryBrokerStatus) SetAddress ¶
func (bs *MemoryBrokerStatus) SetAddress(url *apis.URL)
SetAddress makes this Broker addressable by setting the URI. It also sets the BrokerConditionAddressable to true.
type Observability ¶
type Observability struct {
ValueFromConfigMap string `json:"valueFromConfigMap"`
}
func (*Observability) DeepCopy ¶
func (in *Observability) DeepCopy() *Observability
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Observability.
func (*Observability) DeepCopyInto ¶
func (in *Observability) DeepCopyInto(out *Observability)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReconcilableBroker ¶
type ReconcilableBroker interface {
kmeta.OwnerRefable
GetReconcilableBrokerStatus() ReconcilableBrokerStatus
GetOwnedObjectsSuffix() string
GetReconcilableBrokerSpec() *Broker
}
type ReconcilableBrokerStatus ¶
type ReconcilableBrokerStatus interface {
// Secret as config status management.
MarkConfigSecretFailed(reason, messageFormat string, messageA ...interface{})
MarkConfigSecretReady()
// ServiceAccount status management.
MarkBrokerServiceAccountFailed(reason, messageFormat string, messageA ...interface{})
MarkBrokerServiceAccountReady()
// RoleBinding status management.
MarkBrokerRoleBindingFailed(reason, messageFormat string, messageA ...interface{})
MarkBrokerRoleBindingReady()
// Broker Deployment status management.
MarkBrokerDeploymentFailed(reason, messageFormat string, messageA ...interface{})
PropagateBrokerDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
// Broker Service status management
MarkBrokerServiceFailed(reason, messageFormat string, messageA ...interface{})
MarkBrokerServiceReady()
// Broker Endpoints status management.
MarkBrokerEndpointsTrue()
MarkBrokerEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
MarkBrokerEndpointsFailed(reason, messageFormat string, messageA ...interface{})
}
type Redis ¶
type Redis struct {
// Redis connection data.
Connection *RedisConnection `json:"connection,omitempty"`
// Stream name used by the broker.
Stream *string `json:"stream,omitempty"`
// Maximum number of items the stream can host.
StreamMaxLen *int `json:"streamMaxLen,omitempty"`
}
func (*Redis) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBroker ¶
type RedisBroker struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec defines the desired state of the broker.
Spec RedisBrokerSpec `json:"spec,omitempty"`
// Status represents the current state of the broker. This data may be out of
// date.
// +optional
Status RedisBrokerStatus `json:"status,omitempty"`
}
RedisBroker is a Redis based broker implementation that collects a pool of events that are consumable using Triggers. Brokers provide a well-known endpoint for event delivery that senders can use with minimal knowledge of the event routing strategy. Subscribers use Triggers to request delivery of events from a broker's pool to a specific URL or Addressable endpoint.
func (*RedisBroker) DeepCopy ¶
func (in *RedisBroker) DeepCopy() *RedisBroker
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBroker.
func (*RedisBroker) DeepCopyInto ¶
func (in *RedisBroker) DeepCopyInto(out *RedisBroker)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisBroker) DeepCopyObject ¶
func (in *RedisBroker) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*RedisBroker) GetConditionSet ¶
func (b *RedisBroker) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*RedisBroker) GetGroupVersionKind ¶
func (t *RedisBroker) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns GroupVersionKind for Brokers
func (*RedisBroker) GetOwnedObjectsSuffix ¶
func (t *RedisBroker) GetOwnedObjectsSuffix() string
GetOwnedObjectsSuffix returns a string to be appended for created/owned objects.
func (*RedisBroker) GetReconcilableBrokerSpec ¶
func (t *RedisBroker) GetReconcilableBrokerSpec() *Broker
GetReconcilableBrokerSpec returns the all brokers common Broker spec.
func (*RedisBroker) GetReconcilableBrokerStatus ¶
func (t *RedisBroker) GetReconcilableBrokerStatus() ReconcilableBrokerStatus
GetReconcilableBrokerStatus returns a status interface that allows generic reconciler to manage it.
func (*RedisBroker) GetStatus ¶
func (t *RedisBroker) GetStatus() *duckv1.Status
GetStatus retrieves the status of the Broker. Implements the KRShaped interface.
func (*RedisBroker) IsReady ¶
func (b *RedisBroker) IsReady() bool
IsReady returns true if the resource is ready overall and the latest spec has been observed.
func (*RedisBroker) IsUserProvidedRedis ¶
func (b *RedisBroker) IsUserProvidedRedis() bool
IsExternalRedis returns if the Redis instance is user provided.
type RedisBrokerList ¶
type RedisBrokerList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
Items []RedisBroker `json:"items"`
}
RedisBrokerList is a collection of Brokers.
func (*RedisBrokerList) DeepCopy ¶
func (in *RedisBrokerList) DeepCopy() *RedisBrokerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBrokerList.
func (*RedisBrokerList) DeepCopyInto ¶
func (in *RedisBrokerList) DeepCopyInto(out *RedisBrokerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisBrokerList) DeepCopyObject ¶
func (in *RedisBrokerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RedisBrokerSpec ¶
type RedisBrokerSpec struct {
Redis *Redis `json:"redis,omitempty"`
Broker Broker `json:"broker,omitempty"`
}
func (*RedisBrokerSpec) DeepCopy ¶
func (in *RedisBrokerSpec) DeepCopy() *RedisBrokerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBrokerSpec.
func (*RedisBrokerSpec) DeepCopyInto ¶
func (in *RedisBrokerSpec) DeepCopyInto(out *RedisBrokerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisBrokerStatus ¶
type RedisBrokerStatus struct {
// inherits duck/v1 Status, which currently provides:
// * ObservedGeneration - the 'Generation' of the Broker that was last processed by the controller.
// * Conditions - the latest available observations of a resource's current state.
duckv1.Status `json:",inline"`
// Broker is Addressable. It exposes the endpoint as an URI to get events
// delivered into the Broker mesh.
// +optional
Address duckv1.Addressable `json:"address,omitempty"`
}
RedisBrokerStatus represents the current state of a Redis broker.
func (*RedisBrokerStatus) DeepCopy ¶
func (in *RedisBrokerStatus) DeepCopy() *RedisBrokerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisBrokerStatus.
func (*RedisBrokerStatus) DeepCopyInto ¶
func (in *RedisBrokerStatus) DeepCopyInto(out *RedisBrokerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RedisBrokerStatus) GetCondition ¶
func (bs *RedisBrokerStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*RedisBrokerStatus) GetConditionSet ¶
func (bs *RedisBrokerStatus) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource.
func (*RedisBrokerStatus) GetTopLevelCondition ¶
func (bs *RedisBrokerStatus) GetTopLevelCondition() *apis.Condition
GetTopLevelCondition returns the top level Condition.
func (*RedisBrokerStatus) InitializeConditions ¶
func (bs *RedisBrokerStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*RedisBrokerStatus) MarkBrokerDeploymentFailed ¶
func (bs *RedisBrokerStatus) MarkBrokerDeploymentFailed(reason, messageFormat string, messageA ...interface{})
Manage Redis broker state for Deployment, Service and Endpoint
func (*RedisBrokerStatus) MarkBrokerDeploymentUnknown ¶
func (bs *RedisBrokerStatus) MarkBrokerDeploymentUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerEndpointsFailed ¶
func (bs *RedisBrokerStatus) MarkBrokerEndpointsFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerEndpointsTrue ¶
func (bs *RedisBrokerStatus) MarkBrokerEndpointsTrue()
func (*RedisBrokerStatus) MarkBrokerEndpointsUnknown ¶
func (bs *RedisBrokerStatus) MarkBrokerEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerRoleBindingFailed ¶
func (bs *RedisBrokerStatus) MarkBrokerRoleBindingFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerRoleBindingReady ¶
func (bs *RedisBrokerStatus) MarkBrokerRoleBindingReady()
func (*RedisBrokerStatus) MarkBrokerRoleBindingUnknown ¶
func (bs *RedisBrokerStatus) MarkBrokerRoleBindingUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerServiceAccountFailed ¶
func (bs *RedisBrokerStatus) MarkBrokerServiceAccountFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerServiceAccountReady ¶
func (bs *RedisBrokerStatus) MarkBrokerServiceAccountReady()
func (*RedisBrokerStatus) MarkBrokerServiceAccountUnknown ¶
func (bs *RedisBrokerStatus) MarkBrokerServiceAccountUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerServiceFailed ¶
func (bs *RedisBrokerStatus) MarkBrokerServiceFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkBrokerServiceReady ¶
func (bs *RedisBrokerStatus) MarkBrokerServiceReady()
func (*RedisBrokerStatus) MarkBrokerServiceUnknown ¶
func (bs *RedisBrokerStatus) MarkBrokerServiceUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkConfigSecretFailed ¶
func (bs *RedisBrokerStatus) MarkConfigSecretFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkConfigSecretReady ¶
func (bs *RedisBrokerStatus) MarkConfigSecretReady()
func (*RedisBrokerStatus) MarkConfigSecretUnknown ¶
func (bs *RedisBrokerStatus) MarkConfigSecretUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisDeploymentFailed ¶
func (bs *RedisBrokerStatus) MarkRedisDeploymentFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisDeploymentUnknown ¶
func (bs *RedisBrokerStatus) MarkRedisDeploymentUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisEndpointsFailed ¶
func (bs *RedisBrokerStatus) MarkRedisEndpointsFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisEndpointsTrue ¶
func (bs *RedisBrokerStatus) MarkRedisEndpointsTrue()
func (*RedisBrokerStatus) MarkRedisEndpointsUnknown ¶
func (bs *RedisBrokerStatus) MarkRedisEndpointsUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisServiceFailed ¶
func (bs *RedisBrokerStatus) MarkRedisServiceFailed(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisServiceReady ¶
func (bs *RedisBrokerStatus) MarkRedisServiceReady()
func (*RedisBrokerStatus) MarkRedisServiceUnknown ¶
func (bs *RedisBrokerStatus) MarkRedisServiceUnknown(reason, messageFormat string, messageA ...interface{})
func (*RedisBrokerStatus) MarkRedisUserProvided ¶
func (bs *RedisBrokerStatus) MarkRedisUserProvided()
func (*RedisBrokerStatus) PropagateBrokerDeploymentAvailability ¶
func (bs *RedisBrokerStatus) PropagateBrokerDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
func (*RedisBrokerStatus) PropagateRedisDeploymentAvailability ¶
func (bs *RedisBrokerStatus) PropagateRedisDeploymentAvailability(ctx context.Context, ds *appsv1.DeploymentStatus)
func (*RedisBrokerStatus) SetAddress ¶
func (bs *RedisBrokerStatus) SetAddress(url *apis.URL)
SetAddress makes this Broker addressable by setting the URI. It also sets the BrokerConditionAddressable to true.
type RedisConnection ¶
type RedisConnection struct {
// Redis URL.
URL string `json:"url"`
// Redis username.
Username *SecretValueFromSource `json:"username,omitempty"`
// Redis password.
Password *SecretValueFromSource `json:"password,omitempty"`
// Use TLS enctrypted connection.
TLSEnabled *bool `json:"tlsEnabled,omitempty"`
// Skip TLS certificate verification.
TLSSkipVerify *bool `json:"tlsSkipVerify,omitempty"`
}
func (*RedisConnection) DeepCopy ¶
func (in *RedisConnection) DeepCopy() *RedisConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisConnection.
func (*RedisConnection) DeepCopyInto ¶
func (in *RedisConnection) DeepCopyInto(out *RedisConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretValueFromSource ¶
type SecretValueFromSource struct {
// The Secret key to select from.
SecretKeyRef corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}
SecretValueFromSource represents the source of a secret value
func (*SecretValueFromSource) DeepCopy ¶
func (in *SecretValueFromSource) DeepCopy() *SecretValueFromSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretValueFromSource.
func (*SecretValueFromSource) DeepCopyInto ¶
func (in *SecretValueFromSource) DeepCopyInto(out *SecretValueFromSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trigger ¶
type Trigger struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
// Spec defines the desired state of the Trigger.
Spec TriggerSpec `json:"spec,omitempty"`
// Status represents the current state of the Trigger. This data may be out of
// date.
// +optional
Status TriggerStatus `json:"status,omitempty"`
}
Trigger represents a request to have events delivered to a target from a Broker's event pool.
func (*Trigger) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.
func (*Trigger) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Trigger) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Trigger) GetConditionSet ¶
func (*Trigger) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Trigger) GetGroupVersionKind ¶
func (t *Trigger) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns GroupVersionKind for Triggers
func (*Trigger) GetStatus ¶
GetStatus retrieves the status of the Trigger. Implements the KRShaped interface.
func (*Trigger) GetUntypedSpec ¶
func (t *Trigger) GetUntypedSpec() interface{}
GetUntypedSpec returns the spec of the Trigger.
func (*Trigger) ReferencesBroker ¶
func (t *Trigger) ReferencesBroker(broker kmeta.OwnerRefable) bool
type TriggerList ¶
type TriggerList struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ListMeta `json:"metadata,omitempty"`
Items []Trigger `json:"items"`
}
TriggerList is a collection of Triggers.
func (*TriggerList) DeepCopy ¶
func (in *TriggerList) DeepCopy() *TriggerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerList.
func (*TriggerList) DeepCopyInto ¶
func (in *TriggerList) DeepCopyInto(out *TriggerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerList) DeepCopyObject ¶
func (in *TriggerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerSpec ¶
type TriggerSpec struct {
// Broker is the broker that this trigger receives events from.
Broker duckv1.KReference `json:"broker,omitempty"`
// Filters is an experimental field that conforms to the CNCF CloudEvents Subscriptions
// API. It's an array of filter expressions that evaluate to true or false.
// If any filter expression in the array evaluates to false, the event MUST
// NOT be sent to the target. If all the filter expressions in the array
// evaluate to true, the event MUST be attempted to be delivered. Absence of
// a filter or empty array implies a value of true. In the event of users
// specifying both Filter and Filters, then the latter will override the former.
// This will allow users to try out the effect of the new Filters field
// without compromising the existing attribute-based Filter and try it out on existing
// Trigger objects.
//
// +optional
Filters []broker.Filter `json:"filters,omitempty"`
// Target is the addressable that receives events from the Broker that pass
// the Filter. It is required.
Target duckv1.Destination `json:"target,omitempty"`
// Delivery contains the delivery spec for this specific trigger.
// +optional
Delivery *eventingduckv1.DeliverySpec `json:"delivery,omitempty"`
}
TriggerSpec defines the desired state of Trigger
func (*TriggerSpec) DeepCopy ¶
func (in *TriggerSpec) DeepCopy() *TriggerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpec.
func (*TriggerSpec) DeepCopyInto ¶
func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerSpec) Validate ¶
func (ts *TriggerSpec) Validate(ctx context.Context) (errs *apis.FieldError)
Validate the TriggerSpec.
type TriggerStatus ¶
type TriggerStatus struct {
// inherits duck/v1 Status, which currently provides:
// * ObservedGeneration - the 'Generation' of the Trigger that was last processed by the controller.
// * Conditions - the latest available observations of a resource's current state.
duckv1.Status `json:",inline"`
// TargetURI is the resolved URI of the receiver for this Trigger.
// +optional
TargetURI *apis.URL `json:"targetUri,omitempty"`
// DeliveryStatus contains a resolved URL to the dead letter sink address, and any other
// resolved delivery options.
eventingduckv1.DeliveryStatus `json:",inline"`
}
TriggerStatus represents the current state of a Trigger.
func (*TriggerStatus) DeepCopy ¶
func (in *TriggerStatus) DeepCopy() *TriggerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerStatus.
func (*TriggerStatus) DeepCopyInto ¶
func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerStatus) GetCondition ¶
func (ts *TriggerStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*TriggerStatus) GetTopLevelCondition ¶
func (ts *TriggerStatus) GetTopLevelCondition() *apis.Condition
GetTopLevelCondition returns the top level Condition.
func (*TriggerStatus) InitializeConditions ¶
func (ts *TriggerStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*TriggerStatus) IsReady ¶
func (ts *TriggerStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*TriggerStatus) MarkBrokerFailed ¶
func (ts *TriggerStatus) MarkBrokerFailed(reason, messageFormat string, messageA ...interface{})
func (*TriggerStatus) MarkBrokerNotConfigured ¶
func (ts *TriggerStatus) MarkBrokerNotConfigured()
func (*TriggerStatus) MarkBrokerUnknown ¶
func (ts *TriggerStatus) MarkBrokerUnknown(reason, messageFormat string, messageA ...interface{})
func (*TriggerStatus) MarkDeadLetterSinkNotConfigured ¶
func (ts *TriggerStatus) MarkDeadLetterSinkNotConfigured()
func (*TriggerStatus) MarkDeadLetterSinkResolvedFailed ¶
func (ts *TriggerStatus) MarkDeadLetterSinkResolvedFailed(reason, messageFormat string, messageA ...interface{})
func (*TriggerStatus) MarkDeadLetterSinkResolvedSucceeded ¶
func (ts *TriggerStatus) MarkDeadLetterSinkResolvedSucceeded()
func (*TriggerStatus) MarkTargetResolvedFailed ¶
func (ts *TriggerStatus) MarkTargetResolvedFailed(reason, messageFormat string, messageA ...interface{})
func (*TriggerStatus) MarkTargetResolvedSucceeded ¶
func (ts *TriggerStatus) MarkTargetResolvedSucceeded()
func (*TriggerStatus) MarkTargetResolvedUnknown ¶
func (ts *TriggerStatus) MarkTargetResolvedUnknown(reason, messageFormat string, messageA ...interface{})
func (*TriggerStatus) PropagateBrokerCondition ¶
func (ts *TriggerStatus) PropagateBrokerCondition(bc *apis.Condition)