v1beta3

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	EventTypeConditionReady                              = apis.ConditionReady
	EventTypeConditionReferenceExists apis.ConditionType = "ReferenceExists"
)

Variables

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

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

type EventAttributeDefinition struct {
	// Name is the name of the CloudEvents attribute.
	Name string `json:"name"`
	// Required determines whether this attribute must be set on corresponding CloudEvents.
	Required bool `json:"required"`
	// Value is a string representing the allowable values for the EventType attribute.
	// It may be a single value such as "/apis/v1/namespaces/default/pingsource/ps", or it could be a template
	// for the allowed values, such as "/apis/v1/namespaces/{namespace}/pingsource/{sourceName}.
	// To specify a section of the string value which may change between different CloudEvents
	// you can use curly brackets {} and optionally a variable name between them.
	Value string `json:"value,omitempty"`
}

func (*EventAttributeDefinition) DeepCopy added in v0.41.0

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

func (*EventAttributeDefinition) DeepCopyInto added in v0.41.0

func (in *EventAttributeDefinition) DeepCopyInto(out *EventAttributeDefinition)

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

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 (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

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

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 {
	// 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"`
	// Attributes is an array of CloudEvent attributes and extension attributes.
	Attributes []EventAttributeDefinition `json:"attributes"`
}

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

func (*EventTypeSpec) ValidateAttributes added in v0.41.0

func (ets *EventTypeSpec) ValidateAttributes() *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{})

func (*EventTypeStatus) MarkReferenceNotSet added in v0.42.0

func (et *EventTypeStatus) MarkReferenceNotSet()

Jump to

Keyboard shortcuts

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