Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the sources v1alpha1 API group +k8s:conversion-gen=github.com/tom24d/eventing-dockerhub/pkg/apis/sources +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=sources.knative.dev
Index ¶
- Constants
- Variables
- func DockerHubCloudEventsEventType(dhEventType string) string
- func DockerHubEventSource(repoName string) string
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type DockerHubSource
- func (in *DockerHubSource) DeepCopy() *DockerHubSource
- func (in *DockerHubSource) DeepCopyInto(out *DockerHubSource)
- func (in *DockerHubSource) DeepCopyObject() runtime.Object
- func (*DockerHubSource) GetConditionSet() apis.ConditionSet
- func (*DockerHubSource) GetGroupVersionKind() schema.GroupVersionKind
- func (d *DockerHubSource) GetStatus() *duckv1.Status
- func (d *DockerHubSource) SetDefaults(ctx context.Context)
- func (s *DockerHubSource) Validate(ctx context.Context) *apis.FieldError
- type DockerHubSourceList
- type DockerHubSourceSpec
- type DockerHubSourceStatus
- func (in *DockerHubSourceStatus) DeepCopy() *DockerHubSourceStatus
- func (in *DockerHubSourceStatus) DeepCopyInto(out *DockerHubSourceStatus)
- func (s *DockerHubSourceStatus) GetCondition(t apis.ConditionType) *apis.Condition
- func (s *DockerHubSourceStatus) InitializeConditions()
- func (s *DockerHubSourceStatus) IsReady() bool
- func (s *DockerHubSourceStatus) MarkEndpoint(uri *apis.URL)
- func (s *DockerHubSourceStatus) MarkNoEndpoint(reason, messageFormat string, messageA ...interface{})
- func (s *DockerHubSourceStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
- func (s *DockerHubSourceStatus) MarkSink(uri *apis.URL)
Constants ¶
const ( // DockerHubSourceConditionReady has status True when the // DockerHubSource is ready to receive webhook and send events. DockerHubSourceConditionReady = apis.ConditionReady // DockerHubSourceConditionSinkProvided has status True when the // DockerHubSource has been configured with a sink target. DockerHubSourceConditionSinkProvided apis.ConditionType = "SinkProvided" // DockerHubSourceConditionEndpointProvided has status True when the // backing knative service gets ready. DockerHubSourceConditionEndpointProvided apis.ConditionType = "EndpointProvided" )
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{Group: sources.GroupName, Version: "v1alpha1"} SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func DockerHubEventSource ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type DockerHubSource ¶
type DockerHubSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` //Spec Spec DockerHubSourceSpec `json:"spec,omitempty"` //Status Status DockerHubSourceStatus `json:"status,omitempty"` }
DockerHubSource is the Schema for the dockerhubsources API
func (*DockerHubSource) DeepCopy ¶
func (in *DockerHubSource) DeepCopy() *DockerHubSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerHubSource.
func (*DockerHubSource) DeepCopyInto ¶
func (in *DockerHubSource) DeepCopyInto(out *DockerHubSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DockerHubSource) DeepCopyObject ¶
func (in *DockerHubSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*DockerHubSource) GetConditionSet ¶
func (*DockerHubSource) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*DockerHubSource) GetGroupVersionKind ¶
func (*DockerHubSource) GetGroupVersionKind() schema.GroupVersionKind
func (*DockerHubSource) GetStatus ¶
func (d *DockerHubSource) GetStatus() *duckv1.Status
GetStatus retrieves the status of the DockerHubSource. Implements the KRShaped interface.
func (*DockerHubSource) SetDefaults ¶
func (d *DockerHubSource) SetDefaults(ctx context.Context)
func (*DockerHubSource) Validate ¶
func (s *DockerHubSource) Validate(ctx context.Context) *apis.FieldError
Validate validates DockerHubSource.
type DockerHubSourceList ¶
type DockerHubSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []DockerHubSource `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*DockerHubSourceList) DeepCopy ¶
func (in *DockerHubSourceList) DeepCopy() *DockerHubSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerHubSourceList.
func (*DockerHubSourceList) DeepCopyInto ¶
func (in *DockerHubSourceList) DeepCopyInto(out *DockerHubSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DockerHubSourceList) DeepCopyObject ¶
func (in *DockerHubSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DockerHubSourceSpec ¶
type DockerHubSourceSpec struct { // DisableAutoCallback flag allows users to make their own validation callback. //If unspecified this will default to false. DisableAutoCallback bool `json:"disableAutoCallback,omitempty"` // inherits duck/v1 SourceSpec, which currently provides: // Sink - a reference to an object that will resolve to a domain name or // a URI directly to use as the sink. // CloudEventOverrides - defines overrides to control the output format // and modifications of the event sent to the sink. duckv1.SourceSpec `json:",inline"` }
func (*DockerHubSourceSpec) DeepCopy ¶
func (in *DockerHubSourceSpec) DeepCopy() *DockerHubSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerHubSourceSpec.
func (*DockerHubSourceSpec) DeepCopyInto ¶
func (in *DockerHubSourceSpec) DeepCopyInto(out *DockerHubSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DockerHubSourceSpec) Validate ¶
func (sspec *DockerHubSourceSpec) Validate(ctx context.Context) *apis.FieldError
Validate validates SampleSourceSpec.
type DockerHubSourceStatus ¶
type DockerHubSourceStatus struct { // inherits duck/v1 SourceStatus, 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. // * SinkURI - the current active sink URI that has been configured for the // Source. duckv1.SourceStatus `json:",inline"` // AutoCallbackDisabled represents the state of itself. AutoCallbackDisabled bool `json:"autoCallbackDisabled,omitempty"` // URL holds the information needed to connect this up to receive events. // +optional URL *apis.URL `json:"url,omitempty"` // ReceiveAdapterServiceName holds the information of knative service name to recreate service when accidentally deleted. // +optional ReceiveAdapterServiceName string `json:"receiveAdapterServiceName,omitempty"` }
func (*DockerHubSourceStatus) DeepCopy ¶
func (in *DockerHubSourceStatus) DeepCopy() *DockerHubSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerHubSourceStatus.
func (*DockerHubSourceStatus) DeepCopyInto ¶
func (in *DockerHubSourceStatus) DeepCopyInto(out *DockerHubSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DockerHubSourceStatus) GetCondition ¶
func (s *DockerHubSourceStatus) GetCondition(t apis.ConditionType) *apis.Condition
GetCondition returns the condition currently associated with the given type, or nil.
func (*DockerHubSourceStatus) InitializeConditions ¶
func (s *DockerHubSourceStatus) InitializeConditions()
InitializeConditions sets relevant unset conditions to Unknown state.
func (*DockerHubSourceStatus) IsReady ¶
func (s *DockerHubSourceStatus) IsReady() bool
IsReady returns true if the resource is ready overall.
func (*DockerHubSourceStatus) MarkEndpoint ¶
func (s *DockerHubSourceStatus) MarkEndpoint(uri *apis.URL)
MarkEndpoint sets the URL endpoint that the source has been provided.
func (*DockerHubSourceStatus) MarkNoEndpoint ¶
func (s *DockerHubSourceStatus) MarkNoEndpoint(reason, messageFormat string, messageA ...interface{})
MarkNoSink sets the condition that the source does not have a sink configured.
func (*DockerHubSourceStatus) MarkNoSink ¶
func (s *DockerHubSourceStatus) MarkNoSink(reason, messageFormat string, messageA ...interface{})
MarkNoSink sets the condition that the source does not have a sink configured.
func (*DockerHubSourceStatus) MarkSink ¶
func (s *DockerHubSourceStatus) MarkSink(uri *apis.URL)
MarkSink sets the condition that the source has a sink configured.