v1alpha1

package
v0.44.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the sources v1alpha1 API group. +k8s:deepcopy-gen=package +groupName=sinks.knative.dev

Index

Constants

View Source
const (
	// IntegrationSinkConditionReady has status True when the IntegrationSink is ready to send events.
	IntegrationSinkConditionReady = apis.ConditionReady

	IntegrationSinkConditionAddressable apis.ConditionType = "Addressable"

	// IntegrationSinkConditionDeploymentReady has status True when the IntegrationSink has been configured with a deployment.
	IntegrationSinkConditionDeploymentReady apis.ConditionType = "DeploymentReady"

	// IntegrationSinkConditionEventPoliciesReady has status True when all the applying EventPolicies for this
	// IntegrationSink are ready.
	IntegrationSinkConditionEventPoliciesReady apis.ConditionType = "EventPoliciesReady"
)
View Source
const (
	// JobSinkConditionReady has status True when the JobSink is ready to send events.
	JobSinkConditionReady = apis.ConditionReady

	JobSinkConditionAddressable apis.ConditionType = "Addressable"

	// JobSinkConditionEventPoliciesReady has status True when all the applying EventPolicies for this
	// JobSink are ready.
	JobSinkConditionEventPoliciesReady apis.ConditionType = "EventPoliciesReady"
)
View Source
const (
	ExecutionModeEnvVar = "K_EXECUTION_MODE"
)

Variables

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

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

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func SetObjectDefaults_JobSink added in v0.43.0

func SetObjectDefaults_JobSink(in *JobSink)

Types

type Aws added in v0.44.0

type Aws struct {
	S3   *v1alpha1.AWSS3  `json:"s3,omitempty"`  // S3 source configuration
	SQS  *v1alpha1.AWSSQS `json:"sqs,omitempty"` // SQS source configuration
	SNS  *v1alpha1.AWSSNS `json:"sns,omitempty"` // SNS source configuration
	Auth *v1alpha1.Auth   `json:"auth,omitempty"`
}

func (*Aws) DeepCopy added in v0.44.0

func (in *Aws) DeepCopy() *Aws

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

func (*Aws) DeepCopyInto added in v0.44.0

func (in *Aws) DeepCopyInto(out *Aws)

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

type ExecutionMode added in v0.44.0

type ExecutionMode string
const (
	ExecutionModeBatch ExecutionMode = "batch"
)

type IntegrationSink added in v0.44.0

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

	Spec   IntegrationSinkSpec   `json:"spec,omitempty"`
	Status IntegrationSinkStatus `json:"status,omitempty"`
}

IntegrationSink is the Schema for the IntegrationSink API.

func (*IntegrationSink) ConvertFrom added in v0.44.0

func (sink *IntegrationSink) ConvertFrom(ctx context.Context, obj apis.Convertible) error

ConvertFrom implements apis.Convertible Converts source from a higher version into v1beta2.IntegrationSink

func (*IntegrationSink) ConvertTo added in v0.44.0

func (sink *IntegrationSink) ConvertTo(ctx context.Context, obj apis.Convertible) error

ConvertTo implements apis.Convertible Converts source from v1alpha1.IntegrationSink into a higher version.

func (*IntegrationSink) DeepCopy added in v0.44.0

func (in *IntegrationSink) DeepCopy() *IntegrationSink

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

func (*IntegrationSink) DeepCopyInto added in v0.44.0

func (in *IntegrationSink) DeepCopyInto(out *IntegrationSink)

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

func (*IntegrationSink) DeepCopyObject added in v0.44.0

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

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

func (*IntegrationSink) GetConditionSet added in v0.44.0

func (*IntegrationSink) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*IntegrationSink) GetGroupVersionKind added in v0.44.0

func (*IntegrationSink) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns the GroupVersionKind.

func (*IntegrationSink) GetStatus added in v0.44.0

func (c *IntegrationSink) GetStatus() *duckv1.Status

GetStatus retrieves the status of the IntegrationSink. Implements the KRShaped interface.

func (*IntegrationSink) GetUntypedSpec added in v0.44.0

func (c *IntegrationSink) GetUntypedSpec() interface{}

GetUntypedSpec returns the spec of the IntegrationSink.

func (*IntegrationSink) SetDefaults added in v0.44.0

func (sink *IntegrationSink) SetDefaults(ctx context.Context)

func (*IntegrationSink) Validate added in v0.44.0

func (sink *IntegrationSink) Validate(ctx context.Context) *apis.FieldError

type IntegrationSinkList added in v0.44.0

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

IntegrationSinkList contains a list of IntegrationSink

func (*IntegrationSinkList) DeepCopy added in v0.44.0

func (in *IntegrationSinkList) DeepCopy() *IntegrationSinkList

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

func (*IntegrationSinkList) DeepCopyInto added in v0.44.0

func (in *IntegrationSinkList) DeepCopyInto(out *IntegrationSinkList)

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

func (*IntegrationSinkList) DeepCopyObject added in v0.44.0

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

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

type IntegrationSinkSpec added in v0.44.0

type IntegrationSinkSpec struct {
	Aws *Aws `json:"aws,omitempty"` // AWS source configuration
	Log *Log `json:"log,omitempty"` // Log sink configuration
}

func (*IntegrationSinkSpec) DeepCopy added in v0.44.0

func (in *IntegrationSinkSpec) DeepCopy() *IntegrationSinkSpec

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

func (*IntegrationSinkSpec) DeepCopyInto added in v0.44.0

func (in *IntegrationSinkSpec) DeepCopyInto(out *IntegrationSinkSpec)

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

func (*IntegrationSinkSpec) SetDefaults added in v0.44.0

func (sink *IntegrationSinkSpec) SetDefaults(ctx context.Context)

func (*IntegrationSinkSpec) Validate added in v0.44.0

func (spec *IntegrationSinkSpec) Validate(ctx context.Context) *apis.FieldError

type IntegrationSinkStatus added in v0.44.0

type IntegrationSinkStatus struct {
	duckv1.Status `json:",inline"`

	// AddressStatus is the part where the JobSink fulfills the Addressable contract.
	// It exposes the endpoint as an URI to get events delivered.
	// +optional
	duckv1.AddressStatus `json:",inline"`

	// AppliedEventPoliciesStatus contains the list of EventPolicies which apply to this JobSink
	// +optional
	eventingduckv1.AppliedEventPoliciesStatus `json:",inline"`
}

func (*IntegrationSinkStatus) DeepCopy added in v0.44.0

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

func (*IntegrationSinkStatus) DeepCopyInto added in v0.44.0

func (in *IntegrationSinkStatus) DeepCopyInto(out *IntegrationSinkStatus)

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

func (*IntegrationSinkStatus) GetCondition added in v0.44.0

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

func (*IntegrationSinkStatus) GetTopLevelCondition added in v0.44.0

func (ps *IntegrationSinkStatus) GetTopLevelCondition() *apis.Condition

GetTopLevelCondition returns the top level Condition.

func (*IntegrationSinkStatus) InitializeConditions added in v0.44.0

func (s *IntegrationSinkStatus) InitializeConditions()

InitializeConditions sets relevant unset conditions to Unknown state.

func (*IntegrationSinkStatus) IsReady added in v0.44.0

func (s *IntegrationSinkStatus) IsReady() bool

IsReady returns true if the resource is ready overall.

func (*IntegrationSinkStatus) MarkAddressableReady added in v0.44.0

func (s *IntegrationSinkStatus) MarkAddressableReady()

MarkAddressableReady marks the Addressable condition to True.

func (*IntegrationSinkStatus) MarkEventPoliciesFailed added in v0.44.0

func (s *IntegrationSinkStatus) MarkEventPoliciesFailed(reason, messageFormat string, messageA ...interface{})

MarkEventPoliciesFailed marks the EventPoliciesReady condition to False with the given reason and message.

func (*IntegrationSinkStatus) MarkEventPoliciesTrue added in v0.44.0

func (s *IntegrationSinkStatus) MarkEventPoliciesTrue()

MarkEventPoliciesTrue marks the EventPoliciesReady condition to True.

func (*IntegrationSinkStatus) MarkEventPoliciesTrueWithReason added in v0.44.0

func (s *IntegrationSinkStatus) MarkEventPoliciesTrueWithReason(reason, messageFormat string, messageA ...interface{})

MarkEventPoliciesTrueWithReason marks the EventPoliciesReady condition to True with the given reason and message.

func (*IntegrationSinkStatus) MarkEventPoliciesUnknown added in v0.44.0

func (s *IntegrationSinkStatus) MarkEventPoliciesUnknown(reason, messageFormat string, messageA ...interface{})

MarkEventPoliciesUnknown marks the EventPoliciesReady condition to Unknown with the given reason and message.

func (*IntegrationSinkStatus) PropagateDeploymentStatus added in v0.44.0

func (s *IntegrationSinkStatus) PropagateDeploymentStatus(d *appsv1.DeploymentStatus)

func (*IntegrationSinkStatus) SetAddress added in v0.44.0

func (s *IntegrationSinkStatus) SetAddress(address *duckv1.Addressable)

type JobSink

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

	Spec   JobSinkSpec   `json:"spec,omitempty"`
	Status JobSinkStatus `json:"status,omitempty"`
}

JobSink is the Schema for the JobSink API.

func (*JobSink) ConvertFrom

func (sink *JobSink) ConvertFrom(ctx context.Context, obj apis.Convertible) error

ConvertFrom implements apis.Convertible Converts source from a higher version into v1beta2.JobSink

func (*JobSink) ConvertTo

func (sink *JobSink) ConvertTo(ctx context.Context, obj apis.Convertible) error

ConvertTo implements apis.Convertible Converts source from v1alpha1.JobSink into a higher version.

func (*JobSink) DeepCopy

func (in *JobSink) DeepCopy() *JobSink

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

func (*JobSink) DeepCopyInto

func (in *JobSink) DeepCopyInto(out *JobSink)

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

func (*JobSink) DeepCopyObject

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

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

func (*JobSink) GetConditionSet

func (*JobSink) GetConditionSet() apis.ConditionSet

GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.

func (*JobSink) GetGroupVersionKind

func (sink *JobSink) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns the GroupVersionKind.

func (*JobSink) GetStatus

func (sink *JobSink) GetStatus() *duckv1.Status

GetStatus retrieves the status of the JobSink. Implements the KRShaped interface.

func (*JobSink) GetUntypedSpec

func (sink *JobSink) GetUntypedSpec() interface{}

GetUntypedSpec returns the spec of the JobSink.

func (*JobSink) SetDefaults

func (sink *JobSink) SetDefaults(ctx context.Context)

func (*JobSink) SetJobStatusSelector

func (e *JobSink) SetJobStatusSelector()

func (*JobSink) Validate

func (sink *JobSink) Validate(ctx context.Context) *apis.FieldError

type JobSinkList

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

JobSinkList contains a list of JobSink.

func (*JobSinkList) DeepCopy

func (in *JobSinkList) DeepCopy() *JobSinkList

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

func (*JobSinkList) DeepCopyInto

func (in *JobSinkList) DeepCopyInto(out *JobSinkList)

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

func (*JobSinkList) DeepCopyObject

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

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

type JobSinkSpec

type JobSinkSpec struct {
	// Job to run when an event occur.
	// +optional
	Job *batchv1.Job `json:"job,omitempty"`
}

JobSinkSpec defines the desired state of the JobSink.

func (*JobSinkSpec) DeepCopy

func (in *JobSinkSpec) DeepCopy() *JobSinkSpec

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

func (*JobSinkSpec) DeepCopyInto

func (in *JobSinkSpec) DeepCopyInto(out *JobSinkSpec)

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

func (*JobSinkSpec) Validate

func (sink *JobSinkSpec) Validate(ctx context.Context) *apis.FieldError

type JobSinkStatus

type JobSinkStatus struct {
	duckv1.Status `json:",inline"`

	// AddressStatus is the part where the JobSink fulfills the Addressable contract.
	// It exposes the endpoint as an URI to get events delivered.
	// +optional
	duckv1.AddressStatus `json:",inline"`

	// +optional
	JobStatus JobStatus `json:"job,omitempty"`

	// AppliedEventPoliciesStatus contains the list of EventPolicies which apply to this JobSink
	// +optional
	eventingduckv1.AppliedEventPoliciesStatus `json:",inline"`
}

JobSinkStatus defines the observed state of JobSink.

func (*JobSinkStatus) DeepCopy

func (in *JobSinkStatus) DeepCopy() *JobSinkStatus

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

func (*JobSinkStatus) DeepCopyInto

func (in *JobSinkStatus) DeepCopyInto(out *JobSinkStatus)

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

func (*JobSinkStatus) GetCondition

func (s *JobSinkStatus) GetCondition(t apis.ConditionType) *apis.Condition

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

func (*JobSinkStatus) GetTopLevelCondition

func (ps *JobSinkStatus) GetTopLevelCondition() *apis.Condition

GetTopLevelCondition returns the top level Condition.

func (*JobSinkStatus) InitializeConditions

func (s *JobSinkStatus) InitializeConditions()

InitializeConditions sets relevant unset conditions to Unknown state.

func (*JobSinkStatus) IsReady

func (s *JobSinkStatus) IsReady() bool

IsReady returns true if the resource is ready overall.

func (*JobSinkStatus) MarkAddressableReady

func (s *JobSinkStatus) MarkAddressableReady()

MarkAddressableReady marks the Addressable condition to True.

func (*JobSinkStatus) MarkEventPoliciesFailed

func (s *JobSinkStatus) MarkEventPoliciesFailed(reason, messageFormat string, messageA ...interface{})

MarkEventPoliciesFailed marks the EventPoliciesReady condition to False with the given reason and message.

func (*JobSinkStatus) MarkEventPoliciesTrue

func (s *JobSinkStatus) MarkEventPoliciesTrue()

MarkEventPoliciesTrue marks the EventPoliciesReady condition to True.

func (*JobSinkStatus) MarkEventPoliciesTrueWithReason

func (s *JobSinkStatus) MarkEventPoliciesTrueWithReason(reason, messageFormat string, messageA ...interface{})

MarkEventPoliciesTrueWithReason marks the EventPoliciesReady condition to True with the given reason and message.

func (*JobSinkStatus) MarkEventPoliciesUnknown

func (s *JobSinkStatus) MarkEventPoliciesUnknown(reason, messageFormat string, messageA ...interface{})

MarkEventPoliciesUnknown marks the EventPoliciesReady condition to Unknown with the given reason and message.

func (*JobSinkStatus) SetAddress

func (s *JobSinkStatus) SetAddress(address *duckv1.Addressable)

type JobStatus

type JobStatus struct {
	Selector string `json:"selector,omitempty"`
}

func (*JobStatus) DeepCopy

func (in *JobStatus) DeepCopy() *JobStatus

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

func (*JobStatus) DeepCopyInto

func (in *JobStatus) DeepCopyInto(out *JobStatus)

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

type Log added in v0.44.0

type Log struct {
	LoggerName          string `json:"loggerName,omitempty" default:"log-sink"`      // Name of the logging category to use
	Level               string `json:"level,omitempty" default:"INFO"`               // Logging level to use
	LogMask             bool   `json:"logMask,omitempty" default:"false"`            // Mask sensitive information in the log
	Marker              string `json:"marker,omitempty"`                             // An optional Marker name to use
	Multiline           bool   `json:"multiline,omitempty" default:"false"`          // If enabled, outputs each information on a newline
	ShowAllProperties   bool   `json:"showAllProperties,omitempty" default:"false"`  // Show all of the exchange properties (both internal and custom)
	ShowBody            bool   `json:"showBody,omitempty" default:"true"`            // Show the message body
	ShowBodyType        bool   `json:"showBodyType,omitempty" default:"true"`        // Show the body Java type
	ShowExchangePattern bool   `json:"showExchangePattern,omitempty" default:"true"` // Show the Message Exchange Pattern (MEP)
	ShowHeaders         bool   `json:"showHeaders,omitempty" default:"false"`        // Show the headers received
	ShowProperties      bool   `json:"showProperties,omitempty" default:"false"`     // Show the exchange properties (only custom)
	ShowStreams         bool   `json:"showStreams,omitempty" default:"false"`        // Show the stream bodies
	ShowCachedStreams   bool   `json:"showCachedStreams,omitempty" default:"true"`   // Show cached stream bodies
}

func (*Log) DeepCopy added in v0.44.0

func (in *Log) DeepCopy() *Log

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

func (*Log) DeepCopyInto added in v0.44.0

func (in *Log) DeepCopyInto(out *Log)

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

Jump to

Keyboard shortcuts

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