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
- Variables
- type BitbucketWebhook
- type BitbucketWebhookConfiguration
- type Event
- type Webhook
- func (in *Webhook) DeepCopy() *Webhook
- func (in *Webhook) DeepCopyInto(out *Webhook)
- func (in *Webhook) DeepCopyObject() runtime.Object
- func (mg *Webhook) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Webhook) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Webhook) GetProviderConfigReference() *xpv1.Reference
- func (mg *Webhook) GetProviderReference() *xpv1.Reference
- func (mg *Webhook) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (a Webhook) Repo() bitbucket.Repo
- func (mg *Webhook) SetConditions(c ...xpv1.Condition)
- func (mg *Webhook) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Webhook) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Webhook) SetProviderReference(r *xpv1.Reference)
- func (mg *Webhook) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- func (a Webhook) Webhook() bitbucket.Webhook
- type WebhookList
- type WebhookObservation
- type WebhookParameters
- type WebhookSpec
- type WebhookStatus
Constants ¶
const ( Group = "webhook.bitbucket-server.crossplane.io" Version = "v1alpha1" )
Package type metadata.
Variables ¶
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} )
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 ¶
func (in *BitbucketWebhookConfiguration) DeepCopy() *BitbucketWebhookConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BitbucketWebhookConfiguration.
func (*BitbucketWebhookConfiguration) DeepCopyInto ¶
func (in *BitbucketWebhookConfiguration) DeepCopyInto(out *BitbucketWebhookConfiguration)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Webhook.
func (*Webhook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Webhook) DeepCopyObject ¶
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 ¶
GetProviderConfigReference of this Webhook.
func (*Webhook) GetProviderReference ¶
GetProviderReference of this Webhook. Deprecated: Use GetProviderConfigReference.
func (*Webhook) GetWriteConnectionSecretToReference ¶
func (mg *Webhook) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Webhook.
func (*Webhook) SetConditions ¶
SetConditions of this Webhook.
func (*Webhook) SetDeletionPolicy ¶
func (mg *Webhook) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Webhook.
func (*Webhook) SetProviderConfigReference ¶
SetProviderConfigReference of this Webhook.
func (*Webhook) SetProviderReference ¶
SetProviderReference of this Webhook. Deprecated: Use SetProviderConfigReference.
func (*Webhook) SetWriteConnectionSecretToReference ¶
func (mg *Webhook) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Webhook.
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.