Documentation ¶
Overview ¶
Package v1beta3 is the v1beta3 version of the API. +k8s:deepcopy-gen=package +groupName=eventing.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type EventType
- func (et *EventType) CheckImmutableFields(ctx context.Context, original *EventType) *apis.FieldError
- func (sink *EventType) ConvertFrom(ctx context.Context, from apis.Convertible) error
- func (source *EventType) ConvertTo(ctx context.Context, to apis.Convertible) error
- func (in *EventType) DeepCopy() *EventType
- func (in *EventType) DeepCopyInto(out *EventType)
- func (in *EventType) DeepCopyObject() runtime.Object
- func (*EventType) GetConditionSet() apis.ConditionSet
- func (p *EventType) GetGroupVersionKind() schema.GroupVersionKind
- func (t *EventType) GetStatus() *duckv1.Status
- func (e *EventType) GetUntypedSpec() interface{}
- func (et *EventType) SetDefaults(ctx context.Context)
- func (et *EventType) Validate(ctx context.Context) *apis.FieldError
- type EventTypeList
- type EventTypeSpec
- type EventTypeStatus
- func (in *EventTypeStatus) DeepCopy() *EventTypeStatus
- func (in *EventTypeStatus) DeepCopyInto(out *EventTypeStatus)
- func (et *EventTypeStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (et *EventTypeStatus) GetTopLevelCondition() *apis.Condition
- func (et *EventTypeStatus) InitializeConditions()
- func (et *EventTypeStatus) IsReady() bool
- func (et *EventTypeStatus) MarkReferenceDoesNotExist()
- func (et *EventTypeStatus) MarkReferenceExists()
- func (et *EventTypeStatus) MarkReferenceExistsUnknown(reason, messageFormat string, messageA ...interface{})
Constants ¶
const ( EventTypeConditionReady = apis.ConditionReady EventTypeConditionReferenceExists apis.ConditionType = "ReferenceExists" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: eventing.GroupName, Version: "v1beta3"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type EventType ¶
type EventType struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired state of the EventType. Spec EventTypeSpec `json:"spec,omitempty"` // Status represents the current state of the EventType. // This data may be out of date. // +optional Status EventTypeStatus `json:"status,omitempty"` }
EventType represents a type of event that can be consumed from a Broker.
func (*EventType) CheckImmutableFields ¶
func (*EventType) ConvertFrom ¶
ConvertFrom implements apis.Convertible
func (*EventType) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventType.
func (*EventType) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventType) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*EventType) GetConditionSet ¶
func (*EventType) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*EventType) GetGroupVersionKind ¶
func (p *EventType) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns GroupVersionKind for EventType
func (*EventType) GetStatus ¶
GetStatus retrieves the status of the EventType. Implements the KRShaped interface.
func (*EventType) GetUntypedSpec ¶
func (e *EventType) GetUntypedSpec() interface{}
GetUntypedSpec returns the spec of the EventType.
func (*EventType) SetDefaults ¶
type EventTypeList ¶
type EventTypeList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []EventType `json:"items"` }
EventTypeList is a collection of EventTypes.
func (*EventTypeList) DeepCopy ¶
func (in *EventTypeList) DeepCopy() *EventTypeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTypeList.
func (*EventTypeList) DeepCopyInto ¶
func (in *EventTypeList) DeepCopyInto(out *EventTypeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventTypeList) DeepCopyObject ¶
func (in *EventTypeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type EventTypeSpec ¶
type EventTypeSpec struct { // Type represents the CloudEvents type. It is authoritative. Type string `json:"type"` // Source is a URI, it represents the CloudEvents source. // +optional Source *apis.URL `json:"source,omitempty"` // Schema is a URI, it represents the CloudEvents schemaurl extension attribute. // It may be a JSON schema, a protobuf schema, etc. It is optional. // +optional Schema *apis.URL `json:"schema,omitempty"` // SchemaData allows the CloudEvents schema to be stored directly in the // EventType. Content is dependent on the encoding. Optional attribute. // The contents are not validated or manipulated by the system. // +optional SchemaData string `json:"schemaData,omitempty"` // Broker refers to the Broker that can provide the EventType. // Deprecated: This field is deprecated and will be removed in a future release. // +optional Broker string `json:"broker,omitempty"` // Reference is a KReference to the belonging addressable. //For example, this could be a pointer to a Broker. // +optional Reference *duckv1.KReference `json:"reference,omitempty"` // Description is an optional field used to describe the EventType, in any meaningful way. // +optional Description string `json:"description,omitempty"` }
func (*EventTypeSpec) DeepCopy ¶
func (in *EventTypeSpec) DeepCopy() *EventTypeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTypeSpec.
func (*EventTypeSpec) DeepCopyInto ¶
func (in *EventTypeSpec) DeepCopyInto(out *EventTypeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventTypeSpec) SetDefaults ¶
func (ets *EventTypeSpec) SetDefaults(ctx context.Context)
func (*EventTypeSpec) Validate ¶
func (ets *EventTypeSpec) Validate(ctx context.Context) *apis.FieldError
type EventTypeStatus ¶
type EventTypeStatus struct { // inherits duck/v1 Status, which currently provides: // * ObservedGeneration - the 'Generation' of the Service that was last processed by the controller. // * Conditions - the latest available observations of a resource's current state. duckv1.Status `json:",inline"` }
EventTypeStatus represents the current state of a EventType.
func (*EventTypeStatus) DeepCopy ¶
func (in *EventTypeStatus) DeepCopy() *EventTypeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventTypeStatus.
func (*EventTypeStatus) DeepCopyInto ¶
func (in *EventTypeStatus) DeepCopyInto(out *EventTypeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*EventTypeStatus) GetCondition ¶
func (et *EventTypeStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*EventTypeStatus) GetTopLevelCondition ¶
func (et *EventTypeStatus) GetTopLevelCondition() *apis.Condition
GetTopLevelCondition returns the top level Condition.
func (*EventTypeStatus) InitializeConditions ¶
func (et *EventTypeStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*EventTypeStatus) IsReady ¶
func (et *EventTypeStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*EventTypeStatus) MarkReferenceDoesNotExist ¶
func (et *EventTypeStatus) MarkReferenceDoesNotExist()
func (*EventTypeStatus) MarkReferenceExists ¶
func (et *EventTypeStatus) MarkReferenceExists()
func (*EventTypeStatus) MarkReferenceExistsUnknown ¶
func (et *EventTypeStatus) MarkReferenceExistsUnknown(reason, messageFormat string, messageA ...interface{})