Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=sources.aikas.org
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cloudschedulersource.GroupName, Version: "v1alpha1"}
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 CloudSchedulerSource ¶
type CloudSchedulerSource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudSchedulerSourceSpec `json:"spec"` Status CloudSchedulerSourceStatus `json:"status"` }
CloudSchedulerSource is a specification for a CloudSchedulerSource resource
func (*CloudSchedulerSource) DeepCopy ¶
func (in *CloudSchedulerSource) DeepCopy() *CloudSchedulerSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSource.
func (*CloudSchedulerSource) DeepCopyInto ¶
func (in *CloudSchedulerSource) DeepCopyInto(out *CloudSchedulerSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudSchedulerSource) DeepCopyObject ¶
func (in *CloudSchedulerSource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CloudSchedulerSource) GetGroupVersionKind ¶
func (csr *CloudSchedulerSource) GetGroupVersionKind() schema.GroupVersionKind
type CloudSchedulerSourceList ¶
type CloudSchedulerSourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []CloudSchedulerSource `json:"items"` }
CloudSchedulerSourceList is a list of CloudSchedulerSource resources
func (*CloudSchedulerSourceList) DeepCopy ¶
func (in *CloudSchedulerSourceList) DeepCopy() *CloudSchedulerSourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSourceList.
func (*CloudSchedulerSourceList) DeepCopyInto ¶
func (in *CloudSchedulerSourceList) DeepCopyInto(out *CloudSchedulerSourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudSchedulerSourceList) DeepCopyObject ¶
func (in *CloudSchedulerSourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudSchedulerSourceSpec ¶
type CloudSchedulerSourceSpec struct { // ServiceAccountName holds the name of the Kubernetes service account // as which the underlying K8s resources should be run. If unspecified // this will default to the "default" service account for the namespace // in which the CloudSchedulerSource exists. // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` // GoogleCloudProject is the ID of the Google Cloud Project that the PubSub Topic exists in. GoogleCloudProject string `json:"googleCloudProject,omitempty"` // Location where to create the Job in. Location string `json:"location"` // Schedule in cron format, for example: "* * * * *" would be run // every minute. Schedule string `json:"schedule"` // Timezone to apply to the schedule. If omitted, uses UTC TimeZone string `json:"timezone,omitempty"` // Which method to use to call. GET,PUT or POST. If omitted uses POST // +optional HTTPMethod string `json:"httpMethod,omitempty"` // What data to send in the call body (PUT/POST). // +optional Body string `json:"body,omitempty"` // Sink is a reference to an object that will resolve to a domain name to use // as the sink. // +optional Sink *corev1.ObjectReference `json:"sink,omitempty"` }
CloudSchedulerSourceSpec is the spec for a CloudSchedulerSource resource
func (*CloudSchedulerSourceSpec) DeepCopy ¶
func (in *CloudSchedulerSourceSpec) DeepCopy() *CloudSchedulerSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSourceSpec.
func (*CloudSchedulerSourceSpec) DeepCopyInto ¶
func (in *CloudSchedulerSourceSpec) DeepCopyInto(out *CloudSchedulerSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudSchedulerSourceStatus ¶
type CloudSchedulerSourceStatus struct { // TODO: add conditions and other stuff here... // Job is the URI for the created Cloud Scheduler Job Job string `json:"job"` // SinkURI is the current active sink URI that has been configured // for the CloudSchedulerSource // +optional SinkURI string `json:"sinkUri,omitempty"` }
CloudSchedulerSourceStatus is the status for a CloudSchedulerSource resource
func (*CloudSchedulerSourceStatus) DeepCopy ¶
func (in *CloudSchedulerSourceStatus) DeepCopy() *CloudSchedulerSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSourceStatus.
func (*CloudSchedulerSourceStatus) DeepCopyInto ¶
func (in *CloudSchedulerSourceStatus) DeepCopyInto(out *CloudSchedulerSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.