v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains the v1alpha1 group Webhook resources of the Bitbucket Service provider. +kubebuilder:object:generate=true +groupName=webhook.bitbucket-server.crossplane.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "webhook.bitbucket-server.crossplane.io"
	Version = "v1alpha1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	WebhookKind             = reflect.TypeOf(Webhook{}).Name()
	WebhookGroupKind        = schema.GroupKind{Group: Group, Kind: WebhookKind}.String()
	WebhookKindAPIVersion   = WebhookKind + "." + SchemeGroupVersion.String()
	WebhookGroupVersionKind = SchemeGroupVersion.WithKind(WebhookKind)
)

Webhook type metadata.

Functions

This section is empty.

Types

type BitbucketWebhook

type BitbucketWebhook struct {
	Name string `json:"name"`

	Configuration BitbucketWebhookConfiguration `json:"configuration"`

	Events []Event `json:"events"`

	URL string `json:"url"`
}

BitbucketWebhook provide a way to configure Bitbucket Server to make requests to your server (or another external service) whenever certain events occur in Bitbucket

func (*BitbucketWebhook) DeepCopy

func (in *BitbucketWebhook) DeepCopy() *BitbucketWebhook

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

func (*BitbucketWebhook) DeepCopyInto

func (in *BitbucketWebhook) DeepCopyInto(out *BitbucketWebhook)

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

type BitbucketWebhookConfiguration

type BitbucketWebhookConfiguration struct {
	// Webhook secret. Leave empty to get a secret in the connection details
	// +kubebuilder:validation:Optional
	Secret string `json:"secret"`
}

BitbucketWebhookConfiguration configures settings for a webhook configuration

func (*BitbucketWebhookConfiguration) DeepCopy

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

func (*BitbucketWebhookConfiguration) DeepCopyInto

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

type Event

type Event string

Event describes a bitbucket server event type +kubebuilder:validation:Enum="repo:refs_changed";"repo:modified"

type Webhook

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

	Spec   WebhookSpec   `json:"spec"`
	Status WebhookStatus `json:"status,omitempty"`
}

An Webhook is an SSH key with read or write access to a bitbucket git repo. +kubebuilder:subresource:status +kubebuilder:printcolumn:name="STATUS",type="string",JSONPath=".status.bindingPhase" +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.atProvider.id" +kubebuilder:printcolumn:name="CLASS",type="string",JSONPath=".spec.classRef.name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster

func (*Webhook) DeepCopy

func (in *Webhook) DeepCopy() *Webhook

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

func (*Webhook) DeepCopyInto

func (in *Webhook) DeepCopyInto(out *Webhook)

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

func (*Webhook) DeepCopyObject

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

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

func (*Webhook) GetCondition

func (mg *Webhook) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Webhook.

func (*Webhook) GetDeletionPolicy

func (mg *Webhook) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Webhook.

func (*Webhook) GetProviderConfigReference

func (mg *Webhook) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Webhook.

func (*Webhook) GetProviderReference

func (mg *Webhook) GetProviderReference() *xpv1.Reference

GetProviderReference of this Webhook. Deprecated: Use GetProviderConfigReference.

func (*Webhook) GetWriteConnectionSecretToReference

func (mg *Webhook) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Webhook.

func (Webhook) Repo

func (a Webhook) Repo() bitbucket.Repo

Repo returns current repository for webhook TODO: Move

func (*Webhook) SetConditions

func (mg *Webhook) SetConditions(c ...xpv1.Condition)

SetConditions of this Webhook.

func (*Webhook) SetDeletionPolicy

func (mg *Webhook) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Webhook.

func (*Webhook) SetProviderConfigReference

func (mg *Webhook) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Webhook.

func (*Webhook) SetProviderReference

func (mg *Webhook) SetProviderReference(r *xpv1.Reference)

SetProviderReference of this Webhook. Deprecated: Use SetProviderConfigReference.

func (*Webhook) SetWriteConnectionSecretToReference

func (mg *Webhook) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Webhook.

func (Webhook) Webhook

func (a Webhook) Webhook() bitbucket.Webhook

Webhook returns the bitbucket rest client of the object TODO: Move

type WebhookList

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

WebhookList contains a list of Webhook

func (*WebhookList) DeepCopy

func (in *WebhookList) DeepCopy() *WebhookList

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

func (*WebhookList) DeepCopyInto

func (in *WebhookList) DeepCopyInto(out *WebhookList)

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

func (*WebhookList) DeepCopyObject

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

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

func (*WebhookList) GetItems

func (l *WebhookList) GetItems() []resource.Managed

GetItems of this WebhookList.

type WebhookObservation

type WebhookObservation struct {
	// Consider stats here?
	ID int `json:"id,omitempty"`
}

WebhookObservation are the observable fields of an Webhook.

func (*WebhookObservation) DeepCopy

func (in *WebhookObservation) DeepCopy() *WebhookObservation

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

func (*WebhookObservation) DeepCopyInto

func (in *WebhookObservation) DeepCopyInto(out *WebhookObservation)

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

type WebhookParameters

type WebhookParameters struct {
	// The project key is the short name for the project for a
	// repository. Typically the key for a project called "Foo Bar"
	// would be "FB".
	// +immutable
	ProjectKey string `json:"projectKey"`

	// The repoName is the name of the git repository.
	// +immutable
	RepoName string `json:"repoName"`

	Webhook BitbucketWebhook `json:"webhook"`
}

WebhookParameters are the configurable fields of a Webhook.

func (*WebhookParameters) DeepCopy

func (in *WebhookParameters) DeepCopy() *WebhookParameters

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

func (*WebhookParameters) DeepCopyInto

func (in *WebhookParameters) DeepCopyInto(out *WebhookParameters)

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

type WebhookSpec

type WebhookSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ForProvider       WebhookParameters `json:"forProvider"`
}

An WebhookSpec defines the desired state of an Webhook.

func (*WebhookSpec) DeepCopy

func (in *WebhookSpec) DeepCopy() *WebhookSpec

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

func (*WebhookSpec) DeepCopyInto

func (in *WebhookSpec) DeepCopyInto(out *WebhookSpec)

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

type WebhookStatus

type WebhookStatus struct {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          WebhookObservation `json:"atProvider,omitempty"`
}

An WebhookStatus represents the observed state of an Webhook.

func (*WebhookStatus) DeepCopy

func (in *WebhookStatus) DeepCopy() *WebhookStatus

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

func (*WebhookStatus) DeepCopyInto

func (in *WebhookStatus) DeepCopyInto(out *WebhookStatus)

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