v1beta1

package
v0.34.7 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 12 Imported by: 34

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API. +k8s:deepcopy-gen=package +groupName=eventing.knative.dev

Index

Constants

View Source
const (
	EventTypeConditionReady                           = apis.ConditionReady
	EventTypeConditionBrokerExists apis.ConditionType = "BrokerExists"
	EventTypeConditionBrokerReady  apis.ConditionType = "BrokerReady"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: eventing.GroupName, Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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
	// TODO might be removed https://github.com/knative/eventing/issues/2750
	Status EventTypeStatus `json:"status,omitempty"`
}

EventType represents a type of event that can be consumed from a Broker.

func (*EventType) CheckImmutableFields

func (et *EventType) CheckImmutableFields(ctx context.Context, original *EventType) *apis.FieldError

func (*EventType) ConvertFrom

func (sink *EventType) ConvertFrom(ctx context.Context, from apis.Convertible) error

ConvertFrom implements apis.Convertible

func (*EventType) ConvertTo

func (source *EventType) ConvertTo(ctx context.Context, to apis.Convertible) error

ConvertTo implements apis.Convertible

func (*EventType) DeepCopy

func (in *EventType) DeepCopy() *EventType

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

func (*EventType) DeepCopyInto

func (in *EventType) DeepCopyInto(out *EventType)

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

func (*EventType) DeepCopyObject

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

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

func (*EventType) GetConditionSet added in v0.15.0

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 added in v0.15.0

func (t *EventType) GetStatus() *duckv1.Status

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

func (et *EventType) SetDefaults(ctx context.Context)

func (*EventType) Validate

func (et *EventType) Validate(ctx context.Context) *apis.FieldError

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"`
	// TODO remove https://github.com/knative/eventing/issues/2750
	// Broker refers to the Broker that can provide the EventType.
	// +optional
	Broker string `json:"broker,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 added in v0.15.0

func (et *EventTypeStatus) GetCondition(t apis.ConditionType) *apis.Condition

GetCondition returns the condition currently associated with the given type, or nil.

func (*EventTypeStatus) GetTopLevelCondition added in v0.15.0

func (et *EventTypeStatus) GetTopLevelCondition() *apis.Condition

GetTopLevelCondition returns the top level Condition.

func (*EventTypeStatus) InitializeConditions added in v0.15.0

func (et *EventTypeStatus) InitializeConditions()

InitializeConditions sets relevant unset conditions to Unknown state.

func (*EventTypeStatus) IsReady added in v0.15.0

func (et *EventTypeStatus) IsReady() bool

IsReady returns true if the resource is ready overall.

func (*EventTypeStatus) MarkBrokerDoesNotExist added in v0.15.0

func (et *EventTypeStatus) MarkBrokerDoesNotExist()

func (*EventTypeStatus) MarkBrokerExists added in v0.15.0

func (et *EventTypeStatus) MarkBrokerExists()

func (*EventTypeStatus) MarkBrokerExistsUnknown added in v0.15.0

func (et *EventTypeStatus) MarkBrokerExistsUnknown(reason, messageFormat string, messageA ...interface{})

func (*EventTypeStatus) MarkBrokerFailed added in v0.15.0

func (et *EventTypeStatus) MarkBrokerFailed(reason, messageFormat string, messageA ...interface{})

func (*EventTypeStatus) MarkBrokerNotConfigured added in v0.15.0

func (et *EventTypeStatus) MarkBrokerNotConfigured()

func (*EventTypeStatus) MarkBrokerReady added in v0.15.0

func (et *EventTypeStatus) MarkBrokerReady()

func (*EventTypeStatus) MarkBrokerUnknown added in v0.15.0

func (et *EventTypeStatus) MarkBrokerUnknown(reason, messageFormat string, messageA ...interface{})

func (*EventTypeStatus) PropagateBrokerStatus added in v0.15.0

func (et *EventTypeStatus) PropagateBrokerStatus(bs *eventingv1.BrokerStatus)

Jump to

Keyboard shortcuts

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