Documentation ¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API. +kubebuilder:object:generate=true +groupName=pullup.dev
Index ¶
- Constants
- Variables
- func AddKnownTypes(scheme *runtime.Scheme) error
- func IsActionValid(action Action) bool
- func Resource(resource string) schema.GroupResource
- type Action
- type EventSourceFilter
- type EventSourceSpec
- type EventSourceStatus
- type EventSourceTrigger
- type GitHubPullRequestEventFilter
- type GitHubPullRequestEventType
- type GitHubPushEventFilter
- type GitHubRepository
- type GitHubWebhook
- type GitHubWebhookList
- type GitHubWebhookSpec
- type GitHubWebhookStatus
- type HTTPWebhook
- type HTTPWebhookList
- type HTTPWebhookSpec
- type HTTPWebhookStatus
- type JSONPatch
- type JSONPatchOperation
- type ObjectReference
- type ResourceTemplate
- type ResourceTemplateList
- type ResourceTemplateSpec
- type ResourceTemplateStatus
- type SecretValue
- type Trigger
- type TriggerList
- type TriggerPatch
- type TriggerSpec
- type TriggerStatus
Constants ¶
const ( DataKeyEvent = "event" DataKeyResource = "resource" DataKeyTrigger = "trigger" DataKeyAction = "action" )
Variables ¶
var ( GroupVersion = schema.GroupVersion{Group: "pullup.dev", Version: "v1beta1"} SchemeBuilder = runtime.NewSchemeBuilder(AddKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
nolint: gochecknoglobals
Functions ¶
func AddKnownTypes ¶
func IsActionValid ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Types ¶
type EventSourceFilter ¶
type EventSourceFilter struct { Include []string `json:"include,omitempty"` Exclude []string `json:"exclude,omitempty"` }
func (*EventSourceFilter) DeepCopy ¶
func (in *EventSourceFilter) DeepCopy() *EventSourceFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceFilter.
func (*EventSourceFilter) DeepCopyInto ¶
func (in *EventSourceFilter) DeepCopyInto(out *EventSourceFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventSourceSpec ¶
type EventSourceSpec struct { Action Action `json:"action,omitempty"` Triggers []EventSourceTrigger `json:"triggers,omitempty"` }
func (*EventSourceSpec) DeepCopy ¶
func (in *EventSourceSpec) DeepCopy() *EventSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceSpec.
func (*EventSourceSpec) DeepCopyInto ¶
func (in *EventSourceSpec) DeepCopyInto(out *EventSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventSourceStatus ¶
type EventSourceStatus struct{}
func (*EventSourceStatus) DeepCopy ¶
func (in *EventSourceStatus) DeepCopy() *EventSourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceStatus.
func (*EventSourceStatus) DeepCopyInto ¶
func (in *EventSourceStatus) DeepCopyInto(out *EventSourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventSourceTrigger ¶
type EventSourceTrigger struct { Name string `json:"name"` Namespace string `json:"namespace,omitempty"` Transform *extv1.JSON `json:"transform,omitempty"` }
func (*EventSourceTrigger) DeepCopy ¶
func (in *EventSourceTrigger) DeepCopy() *EventSourceTrigger
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventSourceTrigger.
func (*EventSourceTrigger) DeepCopyInto ¶
func (in *EventSourceTrigger) DeepCopyInto(out *EventSourceTrigger)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubPullRequestEventFilter ¶
type GitHubPullRequestEventFilter struct { Branches *EventSourceFilter `json:"branches,omitempty"` Labels *EventSourceFilter `json:"labels,omitempty"` Types []GitHubPullRequestEventType `json:"types,omitempty"` }
func (*GitHubPullRequestEventFilter) DeepCopy ¶
func (in *GitHubPullRequestEventFilter) DeepCopy() *GitHubPullRequestEventFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubPullRequestEventFilter.
func (*GitHubPullRequestEventFilter) DeepCopyInto ¶
func (in *GitHubPullRequestEventFilter) DeepCopyInto(out *GitHubPullRequestEventFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubPullRequestEventType ¶
type GitHubPullRequestEventType string
+kubebuilder:validation:Enum=assigned;unassigned;labeled;unlabeled;opened;edited;closed;reopened;synchronize;ready_for_review;locked;unlocked;review_requested;review_request_removed
type GitHubPushEventFilter ¶
type GitHubPushEventFilter struct { Branches *EventSourceFilter `json:"branches,omitempty"` Tags *EventSourceFilter `json:"tags,omitempty"` }
func (*GitHubPushEventFilter) DeepCopy ¶
func (in *GitHubPushEventFilter) DeepCopy() *GitHubPushEventFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubPushEventFilter.
func (*GitHubPushEventFilter) DeepCopyInto ¶
func (in *GitHubPushEventFilter) DeepCopyInto(out *GitHubPushEventFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubRepository ¶
type GitHubRepository struct { Name string `json:"name"` Push *GitHubPushEventFilter `json:"push,omitempty"` PullRequest *GitHubPullRequestEventFilter `json:"pullRequest,omitempty"` }
func (*GitHubRepository) DeepCopy ¶
func (in *GitHubRepository) DeepCopy() *GitHubRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubRepository.
func (*GitHubRepository) DeepCopyInto ¶
func (in *GitHubRepository) DeepCopyInto(out *GitHubRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubWebhook ¶
type GitHubWebhook struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status GitHubWebhookStatus `json:"status,omitempty"` Spec GitHubWebhookSpec `json:"spec,omitempty"` }
func (*GitHubWebhook) DeepCopy ¶
func (in *GitHubWebhook) DeepCopy() *GitHubWebhook
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubWebhook.
func (*GitHubWebhook) DeepCopyInto ¶
func (in *GitHubWebhook) DeepCopyInto(out *GitHubWebhook)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHubWebhook) DeepCopyObject ¶
func (in *GitHubWebhook) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitHubWebhookList ¶
type GitHubWebhookList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GitHubWebhook `json:"items"` }
func (*GitHubWebhookList) DeepCopy ¶
func (in *GitHubWebhookList) DeepCopy() *GitHubWebhookList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubWebhookList.
func (*GitHubWebhookList) DeepCopyInto ¶
func (in *GitHubWebhookList) DeepCopyInto(out *GitHubWebhookList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHubWebhookList) DeepCopyObject ¶
func (in *GitHubWebhookList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitHubWebhookSpec ¶
type GitHubWebhookSpec struct { EventSourceSpec `json:",inline"` Repositories []GitHubRepository `json:"repositories"` }
func (*GitHubWebhookSpec) DeepCopy ¶
func (in *GitHubWebhookSpec) DeepCopy() *GitHubWebhookSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubWebhookSpec.
func (*GitHubWebhookSpec) DeepCopyInto ¶
func (in *GitHubWebhookSpec) DeepCopyInto(out *GitHubWebhookSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubWebhookStatus ¶
type GitHubWebhookStatus struct {
EventSourceStatus `json:",inline"`
}
func (*GitHubWebhookStatus) DeepCopy ¶
func (in *GitHubWebhookStatus) DeepCopy() *GitHubWebhookStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubWebhookStatus.
func (*GitHubWebhookStatus) DeepCopyInto ¶
func (in *GitHubWebhookStatus) DeepCopyInto(out *GitHubWebhookStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPWebhook ¶
type HTTPWebhook struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status HTTPWebhookStatus `json:"status,omitempty"` Spec HTTPWebhookSpec `json:"spec,omitempty"` }
func (*HTTPWebhook) DeepCopy ¶
func (in *HTTPWebhook) DeepCopy() *HTTPWebhook
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPWebhook.
func (*HTTPWebhook) DeepCopyInto ¶
func (in *HTTPWebhook) DeepCopyInto(out *HTTPWebhook)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPWebhook) DeepCopyObject ¶
func (in *HTTPWebhook) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPWebhookList ¶
type HTTPWebhookList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HTTPWebhook `json:"items"` }
func (*HTTPWebhookList) DeepCopy ¶
func (in *HTTPWebhookList) DeepCopy() *HTTPWebhookList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPWebhookList.
func (*HTTPWebhookList) DeepCopyInto ¶
func (in *HTTPWebhookList) DeepCopyInto(out *HTTPWebhookList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HTTPWebhookList) DeepCopyObject ¶
func (in *HTTPWebhookList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HTTPWebhookSpec ¶
type HTTPWebhookSpec struct { EventSourceSpec `json:",inline"` Schema *extv1.JSON `json:"schema,omitempty"` SecretToken *SecretValue `json:"secretToken,omitempty"` }
func (*HTTPWebhookSpec) DeepCopy ¶
func (in *HTTPWebhookSpec) DeepCopy() *HTTPWebhookSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPWebhookSpec.
func (*HTTPWebhookSpec) DeepCopyInto ¶
func (in *HTTPWebhookSpec) DeepCopyInto(out *HTTPWebhookSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPWebhookStatus ¶
type HTTPWebhookStatus struct {
EventSourceStatus `json:",inline"`
}
func (*HTTPWebhookStatus) DeepCopy ¶
func (in *HTTPWebhookStatus) DeepCopy() *HTTPWebhookStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPWebhookStatus.
func (*HTTPWebhookStatus) DeepCopyInto ¶
func (in *HTTPWebhookStatus) DeepCopyInto(out *HTTPWebhookStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JSONPatch ¶
type JSONPatch struct { Operation JSONPatchOperation `json:"op"` Path string `json:"path"` From string `json:"from,omitempty"` Value *extv1.JSON `json:"value,omitempty"` }
func (*JSONPatch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JSONPatch.
func (*JSONPatch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JSONPatchOperation ¶
type JSONPatchOperation string
+kubebuilder:validation:Enum=add;remove;replace;copy;move;test
const ( JSONPatchOpAdd JSONPatchOperation = "add" JSONPatchOpRemove JSONPatchOperation = "remove" JSONPatchOpReplace JSONPatchOperation = "replace" JSONPatchOpCopy JSONPatchOperation = "copy" JSONPatchOpMove JSONPatchOperation = "move" JSONPatchOpTest JSONPatchOperation = "test" )
type ObjectReference ¶
type ObjectReference struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Namespace string `json:"namespace,omitempty"` Name string `json:"name"` }
func (*ObjectReference) DeepCopy ¶
func (in *ObjectReference) DeepCopy() *ObjectReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectReference.
func (*ObjectReference) DeepCopyInto ¶
func (in *ObjectReference) DeepCopyInto(out *ObjectReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ObjectReference) GroupVersionKind ¶
func (in ObjectReference) GroupVersionKind() schema.GroupVersionKind
func (ObjectReference) NamespacedName ¶
func (in ObjectReference) NamespacedName() types.NamespacedName
func (ObjectReference) String ¶
func (in ObjectReference) String() string
type ResourceTemplate ¶
type ResourceTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status ResourceTemplateStatus `json:"status,omitempty"` Spec ResourceTemplateSpec `json:"spec,omitempty"` }
func (*ResourceTemplate) DeepCopy ¶
func (in *ResourceTemplate) DeepCopy() *ResourceTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTemplate.
func (*ResourceTemplate) DeepCopyInto ¶
func (in *ResourceTemplate) DeepCopyInto(out *ResourceTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceTemplate) DeepCopyObject ¶
func (in *ResourceTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceTemplateList ¶
type ResourceTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ResourceTemplate `json:"items"` }
func (*ResourceTemplateList) DeepCopy ¶
func (in *ResourceTemplateList) DeepCopy() *ResourceTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTemplateList.
func (*ResourceTemplateList) DeepCopyInto ¶
func (in *ResourceTemplateList) DeepCopyInto(out *ResourceTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResourceTemplateList) DeepCopyObject ¶
func (in *ResourceTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResourceTemplateSpec ¶
type ResourceTemplateSpec struct { TriggerRef *ObjectReference `json:"triggerRef,omitempty"` Patches []TriggerPatch `json:"patches,omitempty"` Data extv1.JSON `json:"data,omitempty"` }
func (*ResourceTemplateSpec) DeepCopy ¶
func (in *ResourceTemplateSpec) DeepCopy() *ResourceTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTemplateSpec.
func (*ResourceTemplateSpec) DeepCopyInto ¶
func (in *ResourceTemplateSpec) DeepCopyInto(out *ResourceTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceTemplateStatus ¶
type ResourceTemplateStatus struct { LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"` Active []ObjectReference `json:"active,omitempty"` }
func (*ResourceTemplateStatus) DeepCopy ¶
func (in *ResourceTemplateStatus) DeepCopy() *ResourceTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceTemplateStatus.
func (*ResourceTemplateStatus) DeepCopyInto ¶
func (in *ResourceTemplateStatus) DeepCopyInto(out *ResourceTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretValue ¶
type SecretValue struct {
SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"`
}
func (*SecretValue) DeepCopy ¶
func (in *SecretValue) DeepCopy() *SecretValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretValue.
func (*SecretValue) DeepCopyInto ¶
func (in *SecretValue) DeepCopyInto(out *SecretValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Trigger ¶
type Trigger struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Status TriggerStatus `json:"status,omitempty"` Spec TriggerSpec `json:"spec,omitempty"` }
func (*Trigger) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Trigger.
func (*Trigger) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Trigger) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerList ¶
type TriggerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Trigger `json:"items"` }
func (*TriggerList) DeepCopy ¶
func (in *TriggerList) DeepCopy() *TriggerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerList.
func (*TriggerList) DeepCopyInto ¶
func (in *TriggerList) DeepCopyInto(out *TriggerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggerList) DeepCopyObject ¶
func (in *TriggerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TriggerPatch ¶
type TriggerPatch struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` SourceName string `json:"sourceName,omitempty"` TargetName string `json:"targetName,omitempty"` // +kubebuilder:validation:Type=object Merge *extv1.JSON `json:"merge,omitempty"` JSONPatch []JSONPatch `json:"jsonPatch,omitempty"` }
func (*TriggerPatch) DeepCopy ¶
func (in *TriggerPatch) DeepCopy() *TriggerPatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerPatch.
func (*TriggerPatch) DeepCopyInto ¶
func (in *TriggerPatch) DeepCopyInto(out *TriggerPatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerSpec ¶
type TriggerSpec struct { ResourceName string `json:"resourceName"` Patches []TriggerPatch `json:"patches,omitempty"` Schema *extv1.JSON `json:"schema,omitempty"` }
func (*TriggerSpec) DeepCopy ¶
func (in *TriggerSpec) DeepCopy() *TriggerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerSpec.
func (*TriggerSpec) DeepCopyInto ¶
func (in *TriggerSpec) DeepCopyInto(out *TriggerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TriggerStatus ¶
type TriggerStatus struct{}
func (*TriggerStatus) DeepCopy ¶
func (in *TriggerStatus) DeepCopy() *TriggerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerStatus.
func (*TriggerStatus) DeepCopyInto ¶
func (in *TriggerStatus) DeepCopyInto(out *TriggerStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.