v1beta1

package
v1.0.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1beta1 is the v1beta1 version of the API. +kubebuilder:object:generate=true +groupName=pullup.dev

Index

Constants

View Source
const (
	DataKeyEvent    = "event"
	DataKeyResource = "resource"
	DataKeyTrigger  = "trigger"
	DataKeyAction   = "action"
)

Variables

View Source
var (
	GroupVersion  = schema.GroupVersion{Group: "pullup.dev", Version: "v1beta1"}
	SchemeBuilder = runtime.NewSchemeBuilder(AddKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)

nolint: gochecknoglobals

Functions

func AddKnownTypes

func AddKnownTypes(scheme *runtime.Scheme) error

func IsActionValid

func IsActionValid(action Action) bool

func Resource

func Resource(resource string) schema.GroupResource

Types

type Action

type Action string

+kubebuilder:validation:Enum=create;update;apply;delete

const (
	ActionCreate Action = "create"
	ActionUpdate Action = "update"
	ActionApply  Action = "apply"
	ActionDelete Action = "delete"
)

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

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

func (*GitHubPullRequestEventFilter) DeepCopyInto

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

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

func (in *JSONPatch) DeepCopy() *JSONPatch

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

func (*JSONPatch) DeepCopyInto

func (in *JSONPatch) DeepCopyInto(out *JSONPatch)

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

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

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

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

func (in *Trigger) DeepCopy() *Trigger

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

func (*Trigger) DeepCopyInto

func (in *Trigger) DeepCopyInto(out *Trigger)

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

func (*Trigger) DeepCopyObject

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

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.

Jump to

Keyboard shortcuts

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